@swc-react/menu 0.32.0 → 0.32.1-overlay.41
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 +0 -1
- package/index.dev.js +1 -3
- package/index.dev.js.map +2 -2
- package/index.js +1 -1
- package/index.js.map +2 -2
- package/next.d.ts +118 -111
- package/package.json +3 -3
package/index.d.ts
CHANGED
|
@@ -18,7 +18,6 @@ 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>;
|
|
22
21
|
}>;
|
|
23
22
|
export declare type MenuType = EventTarget & SpMenu;
|
|
24
23
|
export declare type MenuDividerType = EventTarget & SpMenuDivider;
|
package/index.dev.js
CHANGED
|
@@ -44,10 +44,8 @@ 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
|
|
51
49
|
}
|
|
52
50
|
});
|
|
53
51
|
//# 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
|
|
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 },\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,EACrB;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 p}from"@spectrum-web-components/menu";import{MenuGroup as a}from"@spectrum-web-components/menu";import{MenuItem as m}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:p,react:e,tagName:"sp-menu-divider",events:{}}),MenuGroup=t({displayName:"MenuGroup",elementClass:a,react:e,tagName:"sp-menu-group",events:{change:"change",close:"close"}}),MenuItem=t({displayName:"MenuItem",elementClass:m,react:e,tagName:"sp-menu-item",events:{spMenuItemAdded:"sp-menu-item-added"}});
|
|
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
|
|
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 },\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,oBACrB,CACJ,CAAC",
|
|
6
6
|
"names": ["React", "createComponent", "SpMenu", "SpMenuDivider", "SpMenuGroup", "SpMenuItem"]
|
|
7
7
|
}
|
package/next.d.ts
CHANGED
|
@@ -8,14 +8,13 @@ export declare const Menu: import("react").ComponentType<Partial<{
|
|
|
8
8
|
style?: import("react").CSSProperties | undefined;
|
|
9
9
|
tabIndex?: number | undefined;
|
|
10
10
|
'aria-disabled'?: (boolean | "true" | "false") | undefined;
|
|
11
|
+
accessKey?: string | undefined;
|
|
11
12
|
color?: string | undefined;
|
|
12
13
|
lang?: string | undefined;
|
|
13
|
-
'aria-
|
|
14
|
-
accessKey?: string | undefined;
|
|
15
|
-
'aria-hidden'?: (boolean | "true" | "false") | undefined;
|
|
14
|
+
'aria-describedby'?: string | undefined;
|
|
16
15
|
role?: import("react").AriaRole | undefined;
|
|
17
|
-
'aria-
|
|
18
|
-
'aria-
|
|
16
|
+
'aria-selected'?: (boolean | "true" | "false") | undefined;
|
|
17
|
+
'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
|
|
19
18
|
draggable?: (boolean | "true" | "false") | undefined;
|
|
20
19
|
hidden?: boolean | undefined;
|
|
21
20
|
translate?: "yes" | "no" | undefined;
|
|
@@ -24,9 +23,7 @@ export declare const Menu: import("react").ComponentType<Partial<{
|
|
|
24
23
|
contentEditable?: "inherit" | (boolean | "true" | "false") | undefined;
|
|
25
24
|
inputMode?: "none" | "text" | "search" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
26
25
|
nonce?: string | undefined;
|
|
27
|
-
'aria-
|
|
28
|
-
'aria-selected'?: (boolean | "true" | "false") | undefined;
|
|
29
|
-
'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
|
|
26
|
+
'aria-label'?: string | undefined;
|
|
30
27
|
'aria-activedescendant'?: string | undefined;
|
|
31
28
|
'aria-labelledby'?: string | undefined;
|
|
32
29
|
defaultChecked?: boolean | undefined;
|
|
@@ -63,7 +60,7 @@ export declare const Menu: import("react").ComponentType<Partial<{
|
|
|
63
60
|
'aria-colindex'?: number | undefined;
|
|
64
61
|
'aria-colspan'?: number | undefined;
|
|
65
62
|
'aria-controls'?: string | undefined;
|
|
66
|
-
'aria-current'?: boolean | "true" | "time" | "
|
|
63
|
+
'aria-current'?: boolean | "true" | "time" | "page" | "false" | "step" | "location" | "date" | undefined;
|
|
67
64
|
'aria-details'?: string | undefined;
|
|
68
65
|
'aria-dropeffect'?: "none" | "link" | "copy" | "execute" | "move" | "popup" | undefined;
|
|
69
66
|
'aria-errormessage'?: string | undefined;
|
|
@@ -71,16 +68,19 @@ export declare const Menu: import("react").ComponentType<Partial<{
|
|
|
71
68
|
'aria-flowto'?: string | undefined;
|
|
72
69
|
'aria-grabbed'?: (boolean | "true" | "false") | undefined;
|
|
73
70
|
'aria-haspopup'?: boolean | "true" | "dialog" | "menu" | "false" | "listbox" | "grid" | "tree" | undefined;
|
|
71
|
+
'aria-hidden'?: (boolean | "true" | "false") | undefined;
|
|
74
72
|
'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
|
|
75
73
|
'aria-keyshortcuts'?: string | undefined;
|
|
76
74
|
'aria-level'?: number | undefined;
|
|
77
75
|
'aria-live'?: "off" | "assertive" | "polite" | undefined;
|
|
76
|
+
'aria-modal'?: (boolean | "true" | "false") | undefined;
|
|
78
77
|
'aria-multiline'?: (boolean | "true" | "false") | undefined;
|
|
79
78
|
'aria-multiselectable'?: (boolean | "true" | "false") | undefined;
|
|
80
79
|
'aria-orientation'?: "horizontal" | "vertical" | undefined;
|
|
81
80
|
'aria-owns'?: string | undefined;
|
|
82
81
|
'aria-placeholder'?: string | undefined;
|
|
83
82
|
'aria-posinset'?: number | undefined;
|
|
83
|
+
'aria-pressed'?: boolean | "true" | "false" | "mixed" | undefined;
|
|
84
84
|
'aria-readonly'?: (boolean | "true" | "false") | undefined;
|
|
85
85
|
'aria-relevant'?: "text" | "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
|
|
86
86
|
'aria-required'?: (boolean | "true" | "false") | undefined;
|
|
@@ -274,14 +274,24 @@ export declare const Menu: import("react").ComponentType<Partial<{
|
|
|
274
274
|
animate: (keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions | undefined) => Animation;
|
|
275
275
|
autofocus: boolean;
|
|
276
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;
|
|
277
287
|
shadowRoot: ShadowRoot;
|
|
288
|
+
readonly parentElement: HTMLElement | null;
|
|
278
289
|
readonly renderOptions: import("lit-html").RenderOptions;
|
|
279
|
-
remove: () => void;
|
|
280
290
|
readonly childNodes: NodeListOf<ChildNode>;
|
|
281
291
|
selected: string[];
|
|
282
292
|
value: string;
|
|
283
|
-
disconnectedCallback: () => void;
|
|
284
293
|
connectedCallback: () => void;
|
|
294
|
+
disconnectedCallback: () => void;
|
|
285
295
|
readonly renderRoot: HTMLElement | ShadowRoot;
|
|
286
296
|
isUpdatePending: boolean;
|
|
287
297
|
hasUpdated: boolean;
|
|
@@ -302,14 +312,6 @@ export declare const Menu: import("react").ComponentType<Partial<{
|
|
|
302
312
|
outerText: string;
|
|
303
313
|
spellcheck: boolean;
|
|
304
314
|
attachInternals: () => ElementInternals;
|
|
305
|
-
addEventListener: {
|
|
306
|
-
<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
307
|
-
(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
308
|
-
};
|
|
309
|
-
removeEventListener: {
|
|
310
|
-
<K_1 extends keyof HTMLElementEventMap>(type: K_1, listener: (this: HTMLElement, ev: HTMLElementEventMap[K_1]) => any, options?: boolean | EventListenerOptions | undefined): void;
|
|
311
|
-
(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions | undefined): void;
|
|
312
|
-
};
|
|
313
315
|
readonly classList: DOMTokenList;
|
|
314
316
|
readonly clientHeight: number;
|
|
315
317
|
readonly clientLeft: number;
|
|
@@ -388,7 +390,6 @@ export declare const Menu: import("react").ComponentType<Partial<{
|
|
|
388
390
|
readonly nodeName: string;
|
|
389
391
|
readonly nodeType: number;
|
|
390
392
|
nodeValue: string | null;
|
|
391
|
-
readonly parentElement: HTMLElement | null;
|
|
392
393
|
readonly parentNode: ParentNode | null;
|
|
393
394
|
readonly previousSibling: ChildNode | null;
|
|
394
395
|
textContent: string | null;
|
|
@@ -424,7 +425,6 @@ export declare const Menu: import("react").ComponentType<Partial<{
|
|
|
424
425
|
readonly NOTATION_NODE: number;
|
|
425
426
|
readonly PROCESSING_INSTRUCTION_NODE: number;
|
|
426
427
|
readonly TEXT_NODE: number;
|
|
427
|
-
dispatchEvent: (event: Event) => boolean;
|
|
428
428
|
ariaAtomic: string | null;
|
|
429
429
|
ariaAutoComplete: string | null;
|
|
430
430
|
ariaBusy: string | null;
|
|
@@ -463,6 +463,7 @@ export declare const Menu: import("react").ComponentType<Partial<{
|
|
|
463
463
|
getAnimations: (options?: GetAnimationsOptions | undefined) => Animation[];
|
|
464
464
|
after: (...nodes: (string | Node)[]) => void;
|
|
465
465
|
before: (...nodes: (string | Node)[]) => void;
|
|
466
|
+
remove: () => void;
|
|
466
467
|
replaceWith: (...nodes: (string | Node)[]) => void;
|
|
467
468
|
innerHTML: string;
|
|
468
469
|
readonly nextElementSibling: Element | null;
|
|
@@ -483,7 +484,6 @@ export declare const Menu: import("react").ComponentType<Partial<{
|
|
|
483
484
|
<E_2 extends Element = Element>(selectors: string): NodeListOf<E_2>;
|
|
484
485
|
};
|
|
485
486
|
replaceChildren: (...nodes: (string | Node)[]) => void;
|
|
486
|
-
readonly assignedSlot: HTMLSlotElement | null;
|
|
487
487
|
oncopy: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
488
488
|
oncut: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
489
489
|
onpaste: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
@@ -581,11 +581,11 @@ export declare const Menu: import("react").ComponentType<Partial<{
|
|
|
581
581
|
readonly dataset: DOMStringMap;
|
|
582
582
|
isLTR: boolean;
|
|
583
583
|
hasVisibleFocusInTree: () => boolean;
|
|
584
|
-
|
|
584
|
+
closeDescendentOverlays: () => void;
|
|
585
|
+
selects: "inherit" | "multiple" | "single" | undefined;
|
|
585
586
|
valueSeparator: string;
|
|
586
587
|
selectedItems: import("menu/src").MenuItem[];
|
|
587
588
|
menuSlot: HTMLSlotElement;
|
|
588
|
-
isSubmenu: boolean;
|
|
589
589
|
focusedItemIndex: number;
|
|
590
590
|
focusInItemIndex: number;
|
|
591
591
|
readonly childItems: import("menu/src").MenuItem[];
|
|
@@ -594,6 +594,8 @@ export declare const Menu: import("react").ComponentType<Partial<{
|
|
|
594
594
|
startListeningToKeyboard: () => void;
|
|
595
595
|
handleFocusout: (event: FocusEvent) => void;
|
|
596
596
|
stopListeningToKeyboard: () => void;
|
|
597
|
+
handleSubmenuClosed: (event: Event) => void;
|
|
598
|
+
handleSubmenuOpened: (event: Event) => void;
|
|
597
599
|
selectOrToggleItem: (targetItem: import("menu/src").MenuItem) => Promise<void>;
|
|
598
600
|
handleKeydown: (event: KeyboardEvent) => void;
|
|
599
601
|
focusMenuItemByOffset: (offset: number) => import("menu/src").MenuItem;
|
|
@@ -612,14 +614,13 @@ export declare const MenuDivider: import("react").ComponentType<Partial<{
|
|
|
612
614
|
style?: import("react").CSSProperties | undefined;
|
|
613
615
|
tabIndex?: number | undefined;
|
|
614
616
|
'aria-disabled'?: (boolean | "true" | "false") | undefined;
|
|
617
|
+
accessKey?: string | undefined;
|
|
615
618
|
color?: string | undefined;
|
|
616
619
|
lang?: string | undefined;
|
|
617
|
-
'aria-
|
|
618
|
-
accessKey?: string | undefined;
|
|
619
|
-
'aria-hidden'?: (boolean | "true" | "false") | undefined;
|
|
620
|
+
'aria-describedby'?: string | undefined;
|
|
620
621
|
role?: import("react").AriaRole | undefined;
|
|
621
|
-
'aria-
|
|
622
|
-
'aria-
|
|
622
|
+
'aria-selected'?: (boolean | "true" | "false") | undefined;
|
|
623
|
+
'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
|
|
623
624
|
draggable?: (boolean | "true" | "false") | undefined;
|
|
624
625
|
hidden?: boolean | undefined;
|
|
625
626
|
translate?: "yes" | "no" | undefined;
|
|
@@ -628,9 +629,7 @@ export declare const MenuDivider: import("react").ComponentType<Partial<{
|
|
|
628
629
|
contentEditable?: "inherit" | (boolean | "true" | "false") | undefined;
|
|
629
630
|
inputMode?: "none" | "text" | "search" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
630
631
|
nonce?: string | undefined;
|
|
631
|
-
'aria-
|
|
632
|
-
'aria-selected'?: (boolean | "true" | "false") | undefined;
|
|
633
|
-
'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
|
|
632
|
+
'aria-label'?: string | undefined;
|
|
634
633
|
'aria-activedescendant'?: string | undefined;
|
|
635
634
|
'aria-labelledby'?: string | undefined;
|
|
636
635
|
defaultChecked?: boolean | undefined;
|
|
@@ -667,7 +666,7 @@ export declare const MenuDivider: import("react").ComponentType<Partial<{
|
|
|
667
666
|
'aria-colindex'?: number | undefined;
|
|
668
667
|
'aria-colspan'?: number | undefined;
|
|
669
668
|
'aria-controls'?: string | undefined;
|
|
670
|
-
'aria-current'?: boolean | "true" | "time" | "
|
|
669
|
+
'aria-current'?: boolean | "true" | "time" | "page" | "false" | "step" | "location" | "date" | undefined;
|
|
671
670
|
'aria-details'?: string | undefined;
|
|
672
671
|
'aria-dropeffect'?: "none" | "link" | "copy" | "execute" | "move" | "popup" | undefined;
|
|
673
672
|
'aria-errormessage'?: string | undefined;
|
|
@@ -675,16 +674,19 @@ export declare const MenuDivider: import("react").ComponentType<Partial<{
|
|
|
675
674
|
'aria-flowto'?: string | undefined;
|
|
676
675
|
'aria-grabbed'?: (boolean | "true" | "false") | undefined;
|
|
677
676
|
'aria-haspopup'?: boolean | "true" | "dialog" | "menu" | "false" | "listbox" | "grid" | "tree" | undefined;
|
|
677
|
+
'aria-hidden'?: (boolean | "true" | "false") | undefined;
|
|
678
678
|
'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
|
|
679
679
|
'aria-keyshortcuts'?: string | undefined;
|
|
680
680
|
'aria-level'?: number | undefined;
|
|
681
681
|
'aria-live'?: "off" | "assertive" | "polite" | undefined;
|
|
682
|
+
'aria-modal'?: (boolean | "true" | "false") | undefined;
|
|
682
683
|
'aria-multiline'?: (boolean | "true" | "false") | undefined;
|
|
683
684
|
'aria-multiselectable'?: (boolean | "true" | "false") | undefined;
|
|
684
685
|
'aria-orientation'?: "horizontal" | "vertical" | undefined;
|
|
685
686
|
'aria-owns'?: string | undefined;
|
|
686
687
|
'aria-placeholder'?: string | undefined;
|
|
687
688
|
'aria-posinset'?: number | undefined;
|
|
689
|
+
'aria-pressed'?: boolean | "true" | "false" | "mixed" | undefined;
|
|
688
690
|
'aria-readonly'?: (boolean | "true" | "false") | undefined;
|
|
689
691
|
'aria-relevant'?: "text" | "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
|
|
690
692
|
'aria-required'?: (boolean | "true" | "false") | undefined;
|
|
@@ -878,12 +880,22 @@ export declare const MenuDivider: import("react").ComponentType<Partial<{
|
|
|
878
880
|
animate: (keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions | undefined) => Animation;
|
|
879
881
|
autofocus: boolean;
|
|
880
882
|
normalize: () => void;
|
|
883
|
+
addEventListener: {
|
|
884
|
+
<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
885
|
+
(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
886
|
+
};
|
|
887
|
+
dispatchEvent: (event: Event) => boolean;
|
|
888
|
+
removeEventListener: {
|
|
889
|
+
<K_1 extends keyof HTMLElementEventMap>(type: K_1, listener: (this: HTMLElement, ev: HTMLElementEventMap[K_1]) => any, options?: boolean | EventListenerOptions | undefined): void;
|
|
890
|
+
(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions | undefined): void;
|
|
891
|
+
};
|
|
892
|
+
readonly assignedSlot: HTMLSlotElement | null;
|
|
881
893
|
shadowRoot: ShadowRoot;
|
|
894
|
+
readonly parentElement: HTMLElement | null;
|
|
882
895
|
readonly renderOptions: import("lit-html").RenderOptions;
|
|
883
|
-
remove: () => void;
|
|
884
896
|
readonly childNodes: NodeListOf<ChildNode>;
|
|
885
|
-
disconnectedCallback: () => void;
|
|
886
897
|
connectedCallback: () => void;
|
|
898
|
+
disconnectedCallback: () => void;
|
|
887
899
|
readonly renderRoot: HTMLElement | ShadowRoot;
|
|
888
900
|
isUpdatePending: boolean;
|
|
889
901
|
hasUpdated: boolean;
|
|
@@ -904,14 +916,6 @@ export declare const MenuDivider: import("react").ComponentType<Partial<{
|
|
|
904
916
|
outerText: string;
|
|
905
917
|
spellcheck: boolean;
|
|
906
918
|
attachInternals: () => ElementInternals;
|
|
907
|
-
addEventListener: {
|
|
908
|
-
<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
909
|
-
(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
910
|
-
};
|
|
911
|
-
removeEventListener: {
|
|
912
|
-
<K_1 extends keyof HTMLElementEventMap>(type: K_1, listener: (this: HTMLElement, ev: HTMLElementEventMap[K_1]) => any, options?: boolean | EventListenerOptions | undefined): void;
|
|
913
|
-
(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions | undefined): void;
|
|
914
|
-
};
|
|
915
919
|
readonly classList: DOMTokenList;
|
|
916
920
|
readonly clientHeight: number;
|
|
917
921
|
readonly clientLeft: number;
|
|
@@ -990,7 +994,6 @@ export declare const MenuDivider: import("react").ComponentType<Partial<{
|
|
|
990
994
|
readonly nodeName: string;
|
|
991
995
|
readonly nodeType: number;
|
|
992
996
|
nodeValue: string | null;
|
|
993
|
-
readonly parentElement: HTMLElement | null;
|
|
994
997
|
readonly parentNode: ParentNode | null;
|
|
995
998
|
readonly previousSibling: ChildNode | null;
|
|
996
999
|
textContent: string | null;
|
|
@@ -1026,7 +1029,6 @@ export declare const MenuDivider: import("react").ComponentType<Partial<{
|
|
|
1026
1029
|
readonly NOTATION_NODE: number;
|
|
1027
1030
|
readonly PROCESSING_INSTRUCTION_NODE: number;
|
|
1028
1031
|
readonly TEXT_NODE: number;
|
|
1029
|
-
dispatchEvent: (event: Event) => boolean;
|
|
1030
1032
|
ariaAtomic: string | null;
|
|
1031
1033
|
ariaAutoComplete: string | null;
|
|
1032
1034
|
ariaBusy: string | null;
|
|
@@ -1065,6 +1067,7 @@ export declare const MenuDivider: import("react").ComponentType<Partial<{
|
|
|
1065
1067
|
getAnimations: (options?: GetAnimationsOptions | undefined) => Animation[];
|
|
1066
1068
|
after: (...nodes: (string | Node)[]) => void;
|
|
1067
1069
|
before: (...nodes: (string | Node)[]) => void;
|
|
1070
|
+
remove: () => void;
|
|
1068
1071
|
replaceWith: (...nodes: (string | Node)[]) => void;
|
|
1069
1072
|
innerHTML: string;
|
|
1070
1073
|
readonly nextElementSibling: Element | null;
|
|
@@ -1085,7 +1088,6 @@ export declare const MenuDivider: import("react").ComponentType<Partial<{
|
|
|
1085
1088
|
<E_2 extends Element = Element>(selectors: string): NodeListOf<E_2>;
|
|
1086
1089
|
};
|
|
1087
1090
|
replaceChildren: (...nodes: (string | Node)[]) => void;
|
|
1088
|
-
readonly assignedSlot: HTMLSlotElement | null;
|
|
1089
1091
|
oncopy: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
1090
1092
|
oncut: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
1091
1093
|
onpaste: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
@@ -1193,14 +1195,13 @@ export declare const MenuGroup: import("react").ComponentType<Partial<{
|
|
|
1193
1195
|
style?: import("react").CSSProperties | undefined;
|
|
1194
1196
|
tabIndex?: number | undefined;
|
|
1195
1197
|
'aria-disabled'?: (boolean | "true" | "false") | undefined;
|
|
1198
|
+
accessKey?: string | undefined;
|
|
1196
1199
|
color?: string | undefined;
|
|
1197
1200
|
lang?: string | undefined;
|
|
1198
|
-
'aria-
|
|
1199
|
-
accessKey?: string | undefined;
|
|
1200
|
-
'aria-hidden'?: (boolean | "true" | "false") | undefined;
|
|
1201
|
+
'aria-describedby'?: string | undefined;
|
|
1201
1202
|
role?: import("react").AriaRole | undefined;
|
|
1202
|
-
'aria-
|
|
1203
|
-
'aria-
|
|
1203
|
+
'aria-selected'?: (boolean | "true" | "false") | undefined;
|
|
1204
|
+
'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
|
|
1204
1205
|
draggable?: (boolean | "true" | "false") | undefined;
|
|
1205
1206
|
hidden?: boolean | undefined;
|
|
1206
1207
|
translate?: "yes" | "no" | undefined;
|
|
@@ -1209,9 +1210,7 @@ export declare const MenuGroup: import("react").ComponentType<Partial<{
|
|
|
1209
1210
|
contentEditable?: "inherit" | (boolean | "true" | "false") | undefined;
|
|
1210
1211
|
inputMode?: "none" | "text" | "search" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
1211
1212
|
nonce?: string | undefined;
|
|
1212
|
-
'aria-
|
|
1213
|
-
'aria-selected'?: (boolean | "true" | "false") | undefined;
|
|
1214
|
-
'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
|
|
1213
|
+
'aria-label'?: string | undefined;
|
|
1215
1214
|
'aria-activedescendant'?: string | undefined;
|
|
1216
1215
|
'aria-labelledby'?: string | undefined;
|
|
1217
1216
|
defaultChecked?: boolean | undefined;
|
|
@@ -1248,7 +1247,7 @@ export declare const MenuGroup: import("react").ComponentType<Partial<{
|
|
|
1248
1247
|
'aria-colindex'?: number | undefined;
|
|
1249
1248
|
'aria-colspan'?: number | undefined;
|
|
1250
1249
|
'aria-controls'?: string | undefined;
|
|
1251
|
-
'aria-current'?: boolean | "true" | "time" | "
|
|
1250
|
+
'aria-current'?: boolean | "true" | "time" | "page" | "false" | "step" | "location" | "date" | undefined;
|
|
1252
1251
|
'aria-details'?: string | undefined;
|
|
1253
1252
|
'aria-dropeffect'?: "none" | "link" | "copy" | "execute" | "move" | "popup" | undefined;
|
|
1254
1253
|
'aria-errormessage'?: string | undefined;
|
|
@@ -1256,16 +1255,19 @@ export declare const MenuGroup: import("react").ComponentType<Partial<{
|
|
|
1256
1255
|
'aria-flowto'?: string | undefined;
|
|
1257
1256
|
'aria-grabbed'?: (boolean | "true" | "false") | undefined;
|
|
1258
1257
|
'aria-haspopup'?: boolean | "true" | "dialog" | "menu" | "false" | "listbox" | "grid" | "tree" | undefined;
|
|
1258
|
+
'aria-hidden'?: (boolean | "true" | "false") | undefined;
|
|
1259
1259
|
'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
|
|
1260
1260
|
'aria-keyshortcuts'?: string | undefined;
|
|
1261
1261
|
'aria-level'?: number | undefined;
|
|
1262
1262
|
'aria-live'?: "off" | "assertive" | "polite" | undefined;
|
|
1263
|
+
'aria-modal'?: (boolean | "true" | "false") | undefined;
|
|
1263
1264
|
'aria-multiline'?: (boolean | "true" | "false") | undefined;
|
|
1264
1265
|
'aria-multiselectable'?: (boolean | "true" | "false") | undefined;
|
|
1265
1266
|
'aria-orientation'?: "horizontal" | "vertical" | undefined;
|
|
1266
1267
|
'aria-owns'?: string | undefined;
|
|
1267
1268
|
'aria-placeholder'?: string | undefined;
|
|
1268
1269
|
'aria-posinset'?: number | undefined;
|
|
1270
|
+
'aria-pressed'?: boolean | "true" | "false" | "mixed" | undefined;
|
|
1269
1271
|
'aria-readonly'?: (boolean | "true" | "false") | undefined;
|
|
1270
1272
|
'aria-relevant'?: "text" | "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
|
|
1271
1273
|
'aria-required'?: (boolean | "true" | "false") | undefined;
|
|
@@ -1459,14 +1461,24 @@ export declare const MenuGroup: import("react").ComponentType<Partial<{
|
|
|
1459
1461
|
animate: (keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions | undefined) => Animation;
|
|
1460
1462
|
autofocus: boolean;
|
|
1461
1463
|
normalize: () => void;
|
|
1464
|
+
addEventListener: {
|
|
1465
|
+
<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
1466
|
+
(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
1467
|
+
};
|
|
1468
|
+
dispatchEvent: (event: Event) => boolean;
|
|
1469
|
+
removeEventListener: {
|
|
1470
|
+
<K_1 extends keyof HTMLElementEventMap>(type: K_1, listener: (this: HTMLElement, ev: HTMLElementEventMap[K_1]) => any, options?: boolean | EventListenerOptions | undefined): void;
|
|
1471
|
+
(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions | undefined): void;
|
|
1472
|
+
};
|
|
1473
|
+
readonly assignedSlot: HTMLSlotElement | null;
|
|
1462
1474
|
shadowRoot: ShadowRoot;
|
|
1475
|
+
readonly parentElement: HTMLElement | null;
|
|
1463
1476
|
readonly renderOptions: import("lit-html").RenderOptions;
|
|
1464
|
-
remove: () => void;
|
|
1465
1477
|
readonly childNodes: NodeListOf<ChildNode>;
|
|
1466
1478
|
selected: string[];
|
|
1467
1479
|
value: string;
|
|
1468
|
-
disconnectedCallback: () => void;
|
|
1469
1480
|
connectedCallback: () => void;
|
|
1481
|
+
disconnectedCallback: () => void;
|
|
1470
1482
|
readonly renderRoot: HTMLElement | ShadowRoot;
|
|
1471
1483
|
isUpdatePending: boolean;
|
|
1472
1484
|
hasUpdated: boolean;
|
|
@@ -1487,14 +1499,6 @@ export declare const MenuGroup: import("react").ComponentType<Partial<{
|
|
|
1487
1499
|
outerText: string;
|
|
1488
1500
|
spellcheck: boolean;
|
|
1489
1501
|
attachInternals: () => ElementInternals;
|
|
1490
|
-
addEventListener: {
|
|
1491
|
-
<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
1492
|
-
(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
1493
|
-
};
|
|
1494
|
-
removeEventListener: {
|
|
1495
|
-
<K_1 extends keyof HTMLElementEventMap>(type: K_1, listener: (this: HTMLElement, ev: HTMLElementEventMap[K_1]) => any, options?: boolean | EventListenerOptions | undefined): void;
|
|
1496
|
-
(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions | undefined): void;
|
|
1497
|
-
};
|
|
1498
1502
|
readonly classList: DOMTokenList;
|
|
1499
1503
|
readonly clientHeight: number;
|
|
1500
1504
|
readonly clientLeft: number;
|
|
@@ -1573,7 +1577,6 @@ export declare const MenuGroup: import("react").ComponentType<Partial<{
|
|
|
1573
1577
|
readonly nodeName: string;
|
|
1574
1578
|
readonly nodeType: number;
|
|
1575
1579
|
nodeValue: string | null;
|
|
1576
|
-
readonly parentElement: HTMLElement | null;
|
|
1577
1580
|
readonly parentNode: ParentNode | null;
|
|
1578
1581
|
readonly previousSibling: ChildNode | null;
|
|
1579
1582
|
textContent: string | null;
|
|
@@ -1609,7 +1612,6 @@ export declare const MenuGroup: import("react").ComponentType<Partial<{
|
|
|
1609
1612
|
readonly NOTATION_NODE: number;
|
|
1610
1613
|
readonly PROCESSING_INSTRUCTION_NODE: number;
|
|
1611
1614
|
readonly TEXT_NODE: number;
|
|
1612
|
-
dispatchEvent: (event: Event) => boolean;
|
|
1613
1615
|
ariaAtomic: string | null;
|
|
1614
1616
|
ariaAutoComplete: string | null;
|
|
1615
1617
|
ariaBusy: string | null;
|
|
@@ -1648,6 +1650,7 @@ export declare const MenuGroup: import("react").ComponentType<Partial<{
|
|
|
1648
1650
|
getAnimations: (options?: GetAnimationsOptions | undefined) => Animation[];
|
|
1649
1651
|
after: (...nodes: (string | Node)[]) => void;
|
|
1650
1652
|
before: (...nodes: (string | Node)[]) => void;
|
|
1653
|
+
remove: () => void;
|
|
1651
1654
|
replaceWith: (...nodes: (string | Node)[]) => void;
|
|
1652
1655
|
innerHTML: string;
|
|
1653
1656
|
readonly nextElementSibling: Element | null;
|
|
@@ -1668,7 +1671,6 @@ export declare const MenuGroup: import("react").ComponentType<Partial<{
|
|
|
1668
1671
|
<E_2 extends Element = Element>(selectors: string): NodeListOf<E_2>;
|
|
1669
1672
|
};
|
|
1670
1673
|
replaceChildren: (...nodes: (string | Node)[]) => void;
|
|
1671
|
-
readonly assignedSlot: HTMLSlotElement | null;
|
|
1672
1674
|
oncopy: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
1673
1675
|
oncut: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
1674
1676
|
onpaste: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
@@ -1766,11 +1768,11 @@ export declare const MenuGroup: import("react").ComponentType<Partial<{
|
|
|
1766
1768
|
readonly dataset: DOMStringMap;
|
|
1767
1769
|
isLTR: boolean;
|
|
1768
1770
|
hasVisibleFocusInTree: () => boolean;
|
|
1769
|
-
|
|
1771
|
+
closeDescendentOverlays: () => void;
|
|
1772
|
+
selects: "inherit" | "multiple" | "single" | undefined;
|
|
1770
1773
|
valueSeparator: string;
|
|
1771
1774
|
selectedItems: import("menu/src").MenuItem[];
|
|
1772
1775
|
menuSlot: HTMLSlotElement;
|
|
1773
|
-
isSubmenu: boolean;
|
|
1774
1776
|
focusedItemIndex: number;
|
|
1775
1777
|
focusInItemIndex: number;
|
|
1776
1778
|
readonly childItems: import("menu/src").MenuItem[];
|
|
@@ -1779,6 +1781,8 @@ export declare const MenuGroup: import("react").ComponentType<Partial<{
|
|
|
1779
1781
|
startListeningToKeyboard: () => void;
|
|
1780
1782
|
handleFocusout: (event: FocusEvent) => void;
|
|
1781
1783
|
stopListeningToKeyboard: () => void;
|
|
1784
|
+
handleSubmenuClosed: (event: Event) => void;
|
|
1785
|
+
handleSubmenuOpened: (event: Event) => void;
|
|
1782
1786
|
selectOrToggleItem: (targetItem: import("menu/src").MenuItem) => Promise<void>;
|
|
1783
1787
|
handleKeydown: (event: KeyboardEvent) => void;
|
|
1784
1788
|
focusMenuItemByOffset: (offset: number) => import("menu/src").MenuItem;
|
|
@@ -1797,14 +1801,13 @@ export declare const MenuItem: import("react").ComponentType<Partial<{
|
|
|
1797
1801
|
style?: import("react").CSSProperties | undefined;
|
|
1798
1802
|
tabIndex?: number | undefined;
|
|
1799
1803
|
'aria-disabled'?: (boolean | "true" | "false") | undefined;
|
|
1804
|
+
accessKey?: string | undefined;
|
|
1800
1805
|
color?: string | undefined;
|
|
1801
1806
|
lang?: string | undefined;
|
|
1802
|
-
'aria-
|
|
1803
|
-
accessKey?: string | undefined;
|
|
1804
|
-
'aria-hidden'?: (boolean | "true" | "false") | undefined;
|
|
1807
|
+
'aria-describedby'?: string | undefined;
|
|
1805
1808
|
role?: import("react").AriaRole | undefined;
|
|
1806
|
-
'aria-
|
|
1807
|
-
'aria-
|
|
1809
|
+
'aria-selected'?: (boolean | "true" | "false") | undefined;
|
|
1810
|
+
'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
|
|
1808
1811
|
draggable?: (boolean | "true" | "false") | undefined;
|
|
1809
1812
|
hidden?: boolean | undefined;
|
|
1810
1813
|
translate?: "yes" | "no" | undefined;
|
|
@@ -1813,9 +1816,7 @@ export declare const MenuItem: import("react").ComponentType<Partial<{
|
|
|
1813
1816
|
contentEditable?: "inherit" | (boolean | "true" | "false") | undefined;
|
|
1814
1817
|
inputMode?: "none" | "text" | "search" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
1815
1818
|
nonce?: string | undefined;
|
|
1816
|
-
'aria-
|
|
1817
|
-
'aria-selected'?: (boolean | "true" | "false") | undefined;
|
|
1818
|
-
'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
|
|
1819
|
+
'aria-label'?: string | undefined;
|
|
1819
1820
|
'aria-activedescendant'?: string | undefined;
|
|
1820
1821
|
'aria-labelledby'?: string | undefined;
|
|
1821
1822
|
defaultChecked?: boolean | undefined;
|
|
@@ -1852,7 +1853,7 @@ export declare const MenuItem: import("react").ComponentType<Partial<{
|
|
|
1852
1853
|
'aria-colindex'?: number | undefined;
|
|
1853
1854
|
'aria-colspan'?: number | undefined;
|
|
1854
1855
|
'aria-controls'?: string | undefined;
|
|
1855
|
-
'aria-current'?: boolean | "true" | "time" | "
|
|
1856
|
+
'aria-current'?: boolean | "true" | "time" | "page" | "false" | "step" | "location" | "date" | undefined;
|
|
1856
1857
|
'aria-details'?: string | undefined;
|
|
1857
1858
|
'aria-dropeffect'?: "none" | "link" | "copy" | "execute" | "move" | "popup" | undefined;
|
|
1858
1859
|
'aria-errormessage'?: string | undefined;
|
|
@@ -1860,16 +1861,19 @@ export declare const MenuItem: import("react").ComponentType<Partial<{
|
|
|
1860
1861
|
'aria-flowto'?: string | undefined;
|
|
1861
1862
|
'aria-grabbed'?: (boolean | "true" | "false") | undefined;
|
|
1862
1863
|
'aria-haspopup'?: boolean | "true" | "dialog" | "menu" | "false" | "listbox" | "grid" | "tree" | undefined;
|
|
1864
|
+
'aria-hidden'?: (boolean | "true" | "false") | undefined;
|
|
1863
1865
|
'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
|
|
1864
1866
|
'aria-keyshortcuts'?: string | undefined;
|
|
1865
1867
|
'aria-level'?: number | undefined;
|
|
1866
1868
|
'aria-live'?: "off" | "assertive" | "polite" | undefined;
|
|
1869
|
+
'aria-modal'?: (boolean | "true" | "false") | undefined;
|
|
1867
1870
|
'aria-multiline'?: (boolean | "true" | "false") | undefined;
|
|
1868
1871
|
'aria-multiselectable'?: (boolean | "true" | "false") | undefined;
|
|
1869
1872
|
'aria-orientation'?: "horizontal" | "vertical" | undefined;
|
|
1870
1873
|
'aria-owns'?: string | undefined;
|
|
1871
1874
|
'aria-placeholder'?: string | undefined;
|
|
1872
1875
|
'aria-posinset'?: number | undefined;
|
|
1876
|
+
'aria-pressed'?: boolean | "true" | "false" | "mixed" | undefined;
|
|
1873
1877
|
'aria-readonly'?: (boolean | "true" | "false") | undefined;
|
|
1874
1878
|
'aria-relevant'?: "text" | "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
|
|
1875
1879
|
'aria-required'?: (boolean | "true" | "false") | undefined;
|
|
@@ -2068,16 +2072,46 @@ export declare const MenuItem: import("react").ComponentType<Partial<{
|
|
|
2068
2072
|
disabled: boolean;
|
|
2069
2073
|
autofocus: boolean;
|
|
2070
2074
|
normalize: () => void;
|
|
2071
|
-
|
|
2075
|
+
addEventListener: {
|
|
2076
|
+
<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
2077
|
+
(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
2078
|
+
};
|
|
2079
|
+
dispatchEvent: (event: Event) => boolean;
|
|
2080
|
+
removeEventListener: {
|
|
2081
|
+
<K_1 extends keyof HTMLElementEventMap>(type: K_1, listener: (this: HTMLElement, ev: HTMLElementEventMap[K_1]) => any, options?: boolean | EventListenerOptions | undefined): void;
|
|
2082
|
+
(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions | undefined): void;
|
|
2083
|
+
};
|
|
2072
2084
|
open: boolean;
|
|
2085
|
+
readonly assignedSlot: HTMLSlotElement | null;
|
|
2086
|
+
shadowRoot: ShadowRoot;
|
|
2087
|
+
readonly parentElement: HTMLElement | null;
|
|
2073
2088
|
readonly renderOptions: import("lit-html").RenderOptions;
|
|
2074
|
-
active: boolean;
|
|
2075
|
-
remove: () => void;
|
|
2076
2089
|
readonly childNodes: NodeListOf<ChildNode>;
|
|
2090
|
+
active: boolean;
|
|
2091
|
+
focused: boolean;
|
|
2077
2092
|
selected: boolean;
|
|
2078
2093
|
value: string;
|
|
2079
|
-
|
|
2094
|
+
hasSubmenu: boolean;
|
|
2095
|
+
noWrap: boolean;
|
|
2096
|
+
overlayElement: import("overlay/src/OverlayBase").OverlayBase;
|
|
2097
|
+
readonly itemText: string;
|
|
2098
|
+
readonly focusElement: HTMLElement;
|
|
2099
|
+
readonly itemChildren: import("menu/src").MenuItemChildren;
|
|
2100
|
+
closeOverlay?: (() => Promise<void>) | undefined;
|
|
2101
|
+
openOverlay: () => Promise<void>;
|
|
2102
|
+
updateAriaSelected: () => void;
|
|
2103
|
+
setRole: (role: string) => void;
|
|
2080
2104
|
connectedCallback: () => void;
|
|
2105
|
+
_parentElement: HTMLElement;
|
|
2106
|
+
disconnectedCallback: () => void;
|
|
2107
|
+
triggerUpdate: () => Promise<void>;
|
|
2108
|
+
dispatchUpdate: () => void;
|
|
2109
|
+
menuData: {
|
|
2110
|
+
focusRoot?: import("menu/src").Menu | undefined;
|
|
2111
|
+
parentMenu?: import("menu/src").Menu | undefined;
|
|
2112
|
+
selectionRoot?: import("menu/src").Menu | undefined;
|
|
2113
|
+
cleanupSteps: ((item: import("menu/src").MenuItem) => void)[];
|
|
2114
|
+
};
|
|
2081
2115
|
readonly renderRoot: HTMLElement | ShadowRoot;
|
|
2082
2116
|
isUpdatePending: boolean;
|
|
2083
2117
|
hasUpdated: boolean;
|
|
@@ -2098,14 +2132,6 @@ export declare const MenuItem: import("react").ComponentType<Partial<{
|
|
|
2098
2132
|
outerText: string;
|
|
2099
2133
|
spellcheck: boolean;
|
|
2100
2134
|
attachInternals: () => ElementInternals;
|
|
2101
|
-
addEventListener: {
|
|
2102
|
-
<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
2103
|
-
(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
2104
|
-
};
|
|
2105
|
-
removeEventListener: {
|
|
2106
|
-
<K_1 extends keyof HTMLElementEventMap>(type: K_1, listener: (this: HTMLElement, ev: HTMLElementEventMap[K_1]) => any, options?: boolean | EventListenerOptions | undefined): void;
|
|
2107
|
-
(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions | undefined): void;
|
|
2108
|
-
};
|
|
2109
2135
|
readonly classList: DOMTokenList;
|
|
2110
2136
|
readonly clientHeight: number;
|
|
2111
2137
|
readonly clientLeft: number;
|
|
@@ -2184,7 +2210,6 @@ export declare const MenuItem: import("react").ComponentType<Partial<{
|
|
|
2184
2210
|
readonly nodeName: string;
|
|
2185
2211
|
readonly nodeType: number;
|
|
2186
2212
|
nodeValue: string | null;
|
|
2187
|
-
readonly parentElement: HTMLElement | null;
|
|
2188
2213
|
readonly parentNode: ParentNode | null;
|
|
2189
2214
|
readonly previousSibling: ChildNode | null;
|
|
2190
2215
|
textContent: string | null;
|
|
@@ -2220,7 +2245,6 @@ export declare const MenuItem: import("react").ComponentType<Partial<{
|
|
|
2220
2245
|
readonly NOTATION_NODE: number;
|
|
2221
2246
|
readonly PROCESSING_INSTRUCTION_NODE: number;
|
|
2222
2247
|
readonly TEXT_NODE: number;
|
|
2223
|
-
dispatchEvent: (event: Event) => boolean;
|
|
2224
2248
|
ariaAtomic: string | null;
|
|
2225
2249
|
ariaAutoComplete: string | null;
|
|
2226
2250
|
ariaBusy: string | null;
|
|
@@ -2259,6 +2283,7 @@ export declare const MenuItem: import("react").ComponentType<Partial<{
|
|
|
2259
2283
|
getAnimations: (options?: GetAnimationsOptions | undefined) => Animation[];
|
|
2260
2284
|
after: (...nodes: (string | Node)[]) => void;
|
|
2261
2285
|
before: (...nodes: (string | Node)[]) => void;
|
|
2286
|
+
remove: () => void;
|
|
2262
2287
|
replaceWith: (...nodes: (string | Node)[]) => void;
|
|
2263
2288
|
innerHTML: string;
|
|
2264
2289
|
readonly nextElementSibling: Element | null;
|
|
@@ -2279,7 +2304,6 @@ export declare const MenuItem: import("react").ComponentType<Partial<{
|
|
|
2279
2304
|
<E_2 extends Element = Element>(selectors: string): NodeListOf<E_2>;
|
|
2280
2305
|
};
|
|
2281
2306
|
replaceChildren: (...nodes: (string | Node)[]) => void;
|
|
2282
|
-
readonly assignedSlot: HTMLSlotElement | null;
|
|
2283
2307
|
oncopy: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
2284
2308
|
oncut: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
2285
2309
|
onpaste: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
@@ -2377,22 +2401,6 @@ export declare const MenuItem: import("react").ComponentType<Partial<{
|
|
|
2377
2401
|
readonly dataset: DOMStringMap;
|
|
2378
2402
|
isLTR: boolean;
|
|
2379
2403
|
hasVisibleFocusInTree: () => boolean;
|
|
2380
|
-
focused: boolean;
|
|
2381
|
-
hasSubmenu: boolean;
|
|
2382
|
-
noWrap: boolean;
|
|
2383
|
-
readonly itemText: string;
|
|
2384
|
-
readonly focusElement: HTMLElement;
|
|
2385
|
-
readonly itemChildren: import("menu/src").MenuItemChildren;
|
|
2386
|
-
closeOverlay?: (() => Promise<void>) | undefined;
|
|
2387
|
-
openOverlay: () => Promise<void>;
|
|
2388
|
-
updateAriaSelected: () => void;
|
|
2389
|
-
setRole: (role: string) => void;
|
|
2390
|
-
_parentElement: HTMLElement;
|
|
2391
|
-
triggerUpdate: () => Promise<void>;
|
|
2392
|
-
menuData: {
|
|
2393
|
-
focusRoot?: import("menu/src").Menu | undefined;
|
|
2394
|
-
selectionRoot?: import("menu/src").Menu | undefined;
|
|
2395
|
-
};
|
|
2396
2404
|
renderAnchor: (options: {
|
|
2397
2405
|
id: string;
|
|
2398
2406
|
className?: string | undefined;
|
|
@@ -2403,5 +2411,4 @@ export declare const MenuItem: import("react").ComponentType<Partial<{
|
|
|
2403
2411
|
}) => import("lit-html").TemplateResult<2 | 1>;
|
|
2404
2412
|
} & {
|
|
2405
2413
|
spMenuItemAdded: (e: Event) => void;
|
|
2406
|
-
spMenuItemRemoved: (e: Event) => void;
|
|
2407
2414
|
}> & 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.32.
|
|
3
|
+
"version": "0.32.1-overlay.41+ea2752a5d",
|
|
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.32.
|
|
33
|
+
"@spectrum-web-components/menu": "^0.32.1-overlay.41+ea2752a5d"
|
|
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": "ea2752a5dab7c3fc9f9d68148e74af23c63e2cfd"
|
|
44
44
|
}
|