@swc-react/menu 0.34.0 → 0.34.1-rc.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 +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 +126 -119
- 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,16 +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-
|
|
19
|
-
'aria-expanded'?: (boolean | "true" | "false") | undefined;
|
|
20
|
-
'aria-pressed'?: boolean | "true" | "false" | "mixed" | undefined;
|
|
16
|
+
'aria-selected'?: (boolean | "true" | "false") | undefined;
|
|
17
|
+
'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
|
|
21
18
|
draggable?: (boolean | "true" | "false") | undefined;
|
|
22
19
|
hidden?: boolean | undefined;
|
|
23
20
|
translate?: "yes" | "no" | undefined;
|
|
@@ -26,9 +23,7 @@ export declare const Menu: import("react").ComponentType<Partial<{
|
|
|
26
23
|
contentEditable?: "inherit" | (boolean | "true" | "false") | undefined;
|
|
27
24
|
inputMode?: "none" | "text" | "search" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
28
25
|
nonce?: string | undefined;
|
|
29
|
-
'aria-
|
|
30
|
-
'aria-selected'?: (boolean | "true" | "false") | undefined;
|
|
31
|
-
'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
|
|
26
|
+
'aria-label'?: string | undefined;
|
|
32
27
|
'aria-activedescendant'?: string | undefined;
|
|
33
28
|
'aria-labelledby'?: string | undefined;
|
|
34
29
|
defaultChecked?: boolean | undefined;
|
|
@@ -65,22 +60,27 @@ export declare const Menu: import("react").ComponentType<Partial<{
|
|
|
65
60
|
'aria-colindex'?: number | undefined;
|
|
66
61
|
'aria-colspan'?: number | undefined;
|
|
67
62
|
'aria-controls'?: string | undefined;
|
|
68
|
-
'aria-current'?: boolean | "true" | "time" | "
|
|
63
|
+
'aria-current'?: boolean | "true" | "time" | "page" | "false" | "step" | "location" | "date" | undefined;
|
|
69
64
|
'aria-details'?: string | undefined;
|
|
70
65
|
'aria-dropeffect'?: "none" | "link" | "copy" | "execute" | "move" | "popup" | undefined;
|
|
71
66
|
'aria-errormessage'?: string | undefined;
|
|
67
|
+
'aria-expanded'?: (boolean | "true" | "false") | undefined;
|
|
72
68
|
'aria-flowto'?: string | undefined;
|
|
73
69
|
'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;
|
|
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,12 +581,12 @@ export declare const Menu: import("react").ComponentType<Partial<{
|
|
|
581
581
|
readonly dataset: DOMStringMap;
|
|
582
582
|
isLTR: boolean;
|
|
583
583
|
hasVisibleFocusInTree: () => boolean;
|
|
584
|
+
closeDescendentOverlays: () => void;
|
|
584
585
|
ignore: boolean;
|
|
585
|
-
selects: "inherit" | "
|
|
586
|
+
selects: "inherit" | "multiple" | "single" | undefined;
|
|
586
587
|
valueSeparator: string;
|
|
587
588
|
selectedItems: import("menu/src").MenuItem[];
|
|
588
589
|
menuSlot: HTMLSlotElement;
|
|
589
|
-
isSubmenu: boolean;
|
|
590
590
|
focusedItemIndex: number;
|
|
591
591
|
focusInItemIndex: number;
|
|
592
592
|
readonly childItems: import("menu/src").MenuItem[];
|
|
@@ -595,6 +595,8 @@ export declare const Menu: import("react").ComponentType<Partial<{
|
|
|
595
595
|
startListeningToKeyboard: () => void;
|
|
596
596
|
handleFocusout: (event: FocusEvent) => void;
|
|
597
597
|
stopListeningToKeyboard: () => void;
|
|
598
|
+
handleSubmenuClosed: (event: Event) => void;
|
|
599
|
+
handleSubmenuOpened: (event: Event) => void;
|
|
598
600
|
selectOrToggleItem: (targetItem: import("menu/src").MenuItem) => Promise<void>;
|
|
599
601
|
handleKeydown: (event: KeyboardEvent) => void;
|
|
600
602
|
focusMenuItemByOffset: (offset: number) => import("menu/src").MenuItem;
|
|
@@ -613,16 +615,13 @@ export declare const MenuDivider: import("react").ComponentType<Partial<{
|
|
|
613
615
|
style?: import("react").CSSProperties | undefined;
|
|
614
616
|
tabIndex?: number | undefined;
|
|
615
617
|
'aria-disabled'?: (boolean | "true" | "false") | undefined;
|
|
618
|
+
accessKey?: string | undefined;
|
|
616
619
|
color?: string | undefined;
|
|
617
620
|
lang?: string | undefined;
|
|
618
|
-
'aria-
|
|
619
|
-
accessKey?: string | undefined;
|
|
620
|
-
'aria-hidden'?: (boolean | "true" | "false") | undefined;
|
|
621
|
+
'aria-describedby'?: string | undefined;
|
|
621
622
|
role?: import("react").AriaRole | undefined;
|
|
622
|
-
'aria-
|
|
623
|
-
'aria-
|
|
624
|
-
'aria-expanded'?: (boolean | "true" | "false") | undefined;
|
|
625
|
-
'aria-pressed'?: boolean | "true" | "false" | "mixed" | undefined;
|
|
623
|
+
'aria-selected'?: (boolean | "true" | "false") | undefined;
|
|
624
|
+
'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
|
|
626
625
|
draggable?: (boolean | "true" | "false") | undefined;
|
|
627
626
|
hidden?: boolean | undefined;
|
|
628
627
|
translate?: "yes" | "no" | undefined;
|
|
@@ -631,9 +630,7 @@ export declare const MenuDivider: import("react").ComponentType<Partial<{
|
|
|
631
630
|
contentEditable?: "inherit" | (boolean | "true" | "false") | undefined;
|
|
632
631
|
inputMode?: "none" | "text" | "search" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
633
632
|
nonce?: string | undefined;
|
|
634
|
-
'aria-
|
|
635
|
-
'aria-selected'?: (boolean | "true" | "false") | undefined;
|
|
636
|
-
'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
|
|
633
|
+
'aria-label'?: string | undefined;
|
|
637
634
|
'aria-activedescendant'?: string | undefined;
|
|
638
635
|
'aria-labelledby'?: string | undefined;
|
|
639
636
|
defaultChecked?: boolean | undefined;
|
|
@@ -670,22 +667,27 @@ export declare const MenuDivider: import("react").ComponentType<Partial<{
|
|
|
670
667
|
'aria-colindex'?: number | undefined;
|
|
671
668
|
'aria-colspan'?: number | undefined;
|
|
672
669
|
'aria-controls'?: string | undefined;
|
|
673
|
-
'aria-current'?: boolean | "true" | "time" | "
|
|
670
|
+
'aria-current'?: boolean | "true" | "time" | "page" | "false" | "step" | "location" | "date" | undefined;
|
|
674
671
|
'aria-details'?: string | undefined;
|
|
675
672
|
'aria-dropeffect'?: "none" | "link" | "copy" | "execute" | "move" | "popup" | undefined;
|
|
676
673
|
'aria-errormessage'?: string | undefined;
|
|
674
|
+
'aria-expanded'?: (boolean | "true" | "false") | undefined;
|
|
677
675
|
'aria-flowto'?: string | undefined;
|
|
678
676
|
'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
679
|
'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
|
|
680
680
|
'aria-keyshortcuts'?: string | undefined;
|
|
681
681
|
'aria-level'?: number | undefined;
|
|
682
682
|
'aria-live'?: "off" | "assertive" | "polite" | undefined;
|
|
683
|
+
'aria-modal'?: (boolean | "true" | "false") | undefined;
|
|
683
684
|
'aria-multiline'?: (boolean | "true" | "false") | undefined;
|
|
684
685
|
'aria-multiselectable'?: (boolean | "true" | "false") | undefined;
|
|
685
686
|
'aria-orientation'?: "horizontal" | "vertical" | undefined;
|
|
686
687
|
'aria-owns'?: string | undefined;
|
|
687
688
|
'aria-placeholder'?: string | undefined;
|
|
688
689
|
'aria-posinset'?: number | undefined;
|
|
690
|
+
'aria-pressed'?: boolean | "true" | "false" | "mixed" | undefined;
|
|
689
691
|
'aria-readonly'?: (boolean | "true" | "false") | undefined;
|
|
690
692
|
'aria-relevant'?: "text" | "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
|
|
691
693
|
'aria-required'?: (boolean | "true" | "false") | undefined;
|
|
@@ -879,12 +881,22 @@ export declare const MenuDivider: import("react").ComponentType<Partial<{
|
|
|
879
881
|
animate: (keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions | undefined) => Animation;
|
|
880
882
|
autofocus: boolean;
|
|
881
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;
|
|
882
894
|
shadowRoot: ShadowRoot;
|
|
895
|
+
readonly parentElement: HTMLElement | null;
|
|
883
896
|
readonly renderOptions: import("lit-html").RenderOptions;
|
|
884
|
-
remove: () => void;
|
|
885
897
|
readonly childNodes: NodeListOf<ChildNode>;
|
|
886
|
-
disconnectedCallback: () => void;
|
|
887
898
|
connectedCallback: () => void;
|
|
899
|
+
disconnectedCallback: () => void;
|
|
888
900
|
readonly renderRoot: HTMLElement | ShadowRoot;
|
|
889
901
|
isUpdatePending: boolean;
|
|
890
902
|
hasUpdated: boolean;
|
|
@@ -905,14 +917,6 @@ export declare const MenuDivider: import("react").ComponentType<Partial<{
|
|
|
905
917
|
outerText: string;
|
|
906
918
|
spellcheck: boolean;
|
|
907
919
|
attachInternals: () => ElementInternals;
|
|
908
|
-
addEventListener: {
|
|
909
|
-
<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
910
|
-
(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
911
|
-
};
|
|
912
|
-
removeEventListener: {
|
|
913
|
-
<K_1 extends keyof HTMLElementEventMap>(type: K_1, listener: (this: HTMLElement, ev: HTMLElementEventMap[K_1]) => any, options?: boolean | EventListenerOptions | undefined): void;
|
|
914
|
-
(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions | undefined): void;
|
|
915
|
-
};
|
|
916
920
|
readonly classList: DOMTokenList;
|
|
917
921
|
readonly clientHeight: number;
|
|
918
922
|
readonly clientLeft: number;
|
|
@@ -991,7 +995,6 @@ export declare const MenuDivider: import("react").ComponentType<Partial<{
|
|
|
991
995
|
readonly nodeName: string;
|
|
992
996
|
readonly nodeType: number;
|
|
993
997
|
nodeValue: string | null;
|
|
994
|
-
readonly parentElement: HTMLElement | null;
|
|
995
998
|
readonly parentNode: ParentNode | null;
|
|
996
999
|
readonly previousSibling: ChildNode | null;
|
|
997
1000
|
textContent: string | null;
|
|
@@ -1027,7 +1030,6 @@ export declare const MenuDivider: import("react").ComponentType<Partial<{
|
|
|
1027
1030
|
readonly NOTATION_NODE: number;
|
|
1028
1031
|
readonly PROCESSING_INSTRUCTION_NODE: number;
|
|
1029
1032
|
readonly TEXT_NODE: number;
|
|
1030
|
-
dispatchEvent: (event: Event) => boolean;
|
|
1031
1033
|
ariaAtomic: string | null;
|
|
1032
1034
|
ariaAutoComplete: string | null;
|
|
1033
1035
|
ariaBusy: string | null;
|
|
@@ -1066,6 +1068,7 @@ export declare const MenuDivider: import("react").ComponentType<Partial<{
|
|
|
1066
1068
|
getAnimations: (options?: GetAnimationsOptions | undefined) => Animation[];
|
|
1067
1069
|
after: (...nodes: (string | Node)[]) => void;
|
|
1068
1070
|
before: (...nodes: (string | Node)[]) => void;
|
|
1071
|
+
remove: () => void;
|
|
1069
1072
|
replaceWith: (...nodes: (string | Node)[]) => void;
|
|
1070
1073
|
innerHTML: string;
|
|
1071
1074
|
readonly nextElementSibling: Element | null;
|
|
@@ -1086,7 +1089,6 @@ export declare const MenuDivider: import("react").ComponentType<Partial<{
|
|
|
1086
1089
|
<E_2 extends Element = Element>(selectors: string): NodeListOf<E_2>;
|
|
1087
1090
|
};
|
|
1088
1091
|
replaceChildren: (...nodes: (string | Node)[]) => void;
|
|
1089
|
-
readonly assignedSlot: HTMLSlotElement | null;
|
|
1090
1092
|
oncopy: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
1091
1093
|
oncut: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
1092
1094
|
onpaste: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
@@ -1194,16 +1196,13 @@ export declare const MenuGroup: import("react").ComponentType<Partial<{
|
|
|
1194
1196
|
style?: import("react").CSSProperties | undefined;
|
|
1195
1197
|
tabIndex?: number | undefined;
|
|
1196
1198
|
'aria-disabled'?: (boolean | "true" | "false") | undefined;
|
|
1199
|
+
accessKey?: string | undefined;
|
|
1197
1200
|
color?: string | undefined;
|
|
1198
1201
|
lang?: string | undefined;
|
|
1199
|
-
'aria-
|
|
1200
|
-
accessKey?: string | undefined;
|
|
1201
|
-
'aria-hidden'?: (boolean | "true" | "false") | undefined;
|
|
1202
|
+
'aria-describedby'?: string | undefined;
|
|
1202
1203
|
role?: import("react").AriaRole | undefined;
|
|
1203
|
-
'aria-
|
|
1204
|
-
'aria-
|
|
1205
|
-
'aria-expanded'?: (boolean | "true" | "false") | undefined;
|
|
1206
|
-
'aria-pressed'?: boolean | "true" | "false" | "mixed" | undefined;
|
|
1204
|
+
'aria-selected'?: (boolean | "true" | "false") | undefined;
|
|
1205
|
+
'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
|
|
1207
1206
|
draggable?: (boolean | "true" | "false") | undefined;
|
|
1208
1207
|
hidden?: boolean | undefined;
|
|
1209
1208
|
translate?: "yes" | "no" | undefined;
|
|
@@ -1212,9 +1211,7 @@ export declare const MenuGroup: import("react").ComponentType<Partial<{
|
|
|
1212
1211
|
contentEditable?: "inherit" | (boolean | "true" | "false") | undefined;
|
|
1213
1212
|
inputMode?: "none" | "text" | "search" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
1214
1213
|
nonce?: string | undefined;
|
|
1215
|
-
'aria-
|
|
1216
|
-
'aria-selected'?: (boolean | "true" | "false") | undefined;
|
|
1217
|
-
'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
|
|
1214
|
+
'aria-label'?: string | undefined;
|
|
1218
1215
|
'aria-activedescendant'?: string | undefined;
|
|
1219
1216
|
'aria-labelledby'?: string | undefined;
|
|
1220
1217
|
defaultChecked?: boolean | undefined;
|
|
@@ -1251,22 +1248,27 @@ export declare const MenuGroup: import("react").ComponentType<Partial<{
|
|
|
1251
1248
|
'aria-colindex'?: number | undefined;
|
|
1252
1249
|
'aria-colspan'?: number | undefined;
|
|
1253
1250
|
'aria-controls'?: string | undefined;
|
|
1254
|
-
'aria-current'?: boolean | "true" | "time" | "
|
|
1251
|
+
'aria-current'?: boolean | "true" | "time" | "page" | "false" | "step" | "location" | "date" | undefined;
|
|
1255
1252
|
'aria-details'?: string | undefined;
|
|
1256
1253
|
'aria-dropeffect'?: "none" | "link" | "copy" | "execute" | "move" | "popup" | undefined;
|
|
1257
1254
|
'aria-errormessage'?: string | undefined;
|
|
1255
|
+
'aria-expanded'?: (boolean | "true" | "false") | undefined;
|
|
1258
1256
|
'aria-flowto'?: string | undefined;
|
|
1259
1257
|
'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
1260
|
'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
|
|
1261
1261
|
'aria-keyshortcuts'?: string | undefined;
|
|
1262
1262
|
'aria-level'?: number | undefined;
|
|
1263
1263
|
'aria-live'?: "off" | "assertive" | "polite" | undefined;
|
|
1264
|
+
'aria-modal'?: (boolean | "true" | "false") | undefined;
|
|
1264
1265
|
'aria-multiline'?: (boolean | "true" | "false") | undefined;
|
|
1265
1266
|
'aria-multiselectable'?: (boolean | "true" | "false") | undefined;
|
|
1266
1267
|
'aria-orientation'?: "horizontal" | "vertical" | undefined;
|
|
1267
1268
|
'aria-owns'?: string | undefined;
|
|
1268
1269
|
'aria-placeholder'?: string | undefined;
|
|
1269
1270
|
'aria-posinset'?: number | undefined;
|
|
1271
|
+
'aria-pressed'?: boolean | "true" | "false" | "mixed" | undefined;
|
|
1270
1272
|
'aria-readonly'?: (boolean | "true" | "false") | undefined;
|
|
1271
1273
|
'aria-relevant'?: "text" | "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
|
|
1272
1274
|
'aria-required'?: (boolean | "true" | "false") | undefined;
|
|
@@ -1460,14 +1462,24 @@ export declare const MenuGroup: import("react").ComponentType<Partial<{
|
|
|
1460
1462
|
animate: (keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions | undefined) => Animation;
|
|
1461
1463
|
autofocus: boolean;
|
|
1462
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;
|
|
1463
1475
|
shadowRoot: ShadowRoot;
|
|
1476
|
+
readonly parentElement: HTMLElement | null;
|
|
1464
1477
|
readonly renderOptions: import("lit-html").RenderOptions;
|
|
1465
|
-
remove: () => void;
|
|
1466
1478
|
readonly childNodes: NodeListOf<ChildNode>;
|
|
1467
1479
|
selected: string[];
|
|
1468
1480
|
value: string;
|
|
1469
|
-
disconnectedCallback: () => void;
|
|
1470
1481
|
connectedCallback: () => void;
|
|
1482
|
+
disconnectedCallback: () => void;
|
|
1471
1483
|
readonly renderRoot: HTMLElement | ShadowRoot;
|
|
1472
1484
|
isUpdatePending: boolean;
|
|
1473
1485
|
hasUpdated: boolean;
|
|
@@ -1488,14 +1500,6 @@ export declare const MenuGroup: import("react").ComponentType<Partial<{
|
|
|
1488
1500
|
outerText: string;
|
|
1489
1501
|
spellcheck: boolean;
|
|
1490
1502
|
attachInternals: () => ElementInternals;
|
|
1491
|
-
addEventListener: {
|
|
1492
|
-
<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
1493
|
-
(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
1494
|
-
};
|
|
1495
|
-
removeEventListener: {
|
|
1496
|
-
<K_1 extends keyof HTMLElementEventMap>(type: K_1, listener: (this: HTMLElement, ev: HTMLElementEventMap[K_1]) => any, options?: boolean | EventListenerOptions | undefined): void;
|
|
1497
|
-
(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions | undefined): void;
|
|
1498
|
-
};
|
|
1499
1503
|
readonly classList: DOMTokenList;
|
|
1500
1504
|
readonly clientHeight: number;
|
|
1501
1505
|
readonly clientLeft: number;
|
|
@@ -1574,7 +1578,6 @@ export declare const MenuGroup: import("react").ComponentType<Partial<{
|
|
|
1574
1578
|
readonly nodeName: string;
|
|
1575
1579
|
readonly nodeType: number;
|
|
1576
1580
|
nodeValue: string | null;
|
|
1577
|
-
readonly parentElement: HTMLElement | null;
|
|
1578
1581
|
readonly parentNode: ParentNode | null;
|
|
1579
1582
|
readonly previousSibling: ChildNode | null;
|
|
1580
1583
|
textContent: string | null;
|
|
@@ -1610,7 +1613,6 @@ export declare const MenuGroup: import("react").ComponentType<Partial<{
|
|
|
1610
1613
|
readonly NOTATION_NODE: number;
|
|
1611
1614
|
readonly PROCESSING_INSTRUCTION_NODE: number;
|
|
1612
1615
|
readonly TEXT_NODE: number;
|
|
1613
|
-
dispatchEvent: (event: Event) => boolean;
|
|
1614
1616
|
ariaAtomic: string | null;
|
|
1615
1617
|
ariaAutoComplete: string | null;
|
|
1616
1618
|
ariaBusy: string | null;
|
|
@@ -1649,6 +1651,7 @@ export declare const MenuGroup: import("react").ComponentType<Partial<{
|
|
|
1649
1651
|
getAnimations: (options?: GetAnimationsOptions | undefined) => Animation[];
|
|
1650
1652
|
after: (...nodes: (string | Node)[]) => void;
|
|
1651
1653
|
before: (...nodes: (string | Node)[]) => void;
|
|
1654
|
+
remove: () => void;
|
|
1652
1655
|
replaceWith: (...nodes: (string | Node)[]) => void;
|
|
1653
1656
|
innerHTML: string;
|
|
1654
1657
|
readonly nextElementSibling: Element | null;
|
|
@@ -1669,7 +1672,6 @@ export declare const MenuGroup: import("react").ComponentType<Partial<{
|
|
|
1669
1672
|
<E_2 extends Element = Element>(selectors: string): NodeListOf<E_2>;
|
|
1670
1673
|
};
|
|
1671
1674
|
replaceChildren: (...nodes: (string | Node)[]) => void;
|
|
1672
|
-
readonly assignedSlot: HTMLSlotElement | null;
|
|
1673
1675
|
oncopy: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
1674
1676
|
oncut: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
1675
1677
|
onpaste: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
@@ -1767,12 +1769,12 @@ export declare const MenuGroup: import("react").ComponentType<Partial<{
|
|
|
1767
1769
|
readonly dataset: DOMStringMap;
|
|
1768
1770
|
isLTR: boolean;
|
|
1769
1771
|
hasVisibleFocusInTree: () => boolean;
|
|
1772
|
+
closeDescendentOverlays: () => void;
|
|
1770
1773
|
ignore: boolean;
|
|
1771
|
-
selects: "inherit" | "
|
|
1774
|
+
selects: "inherit" | "multiple" | "single" | undefined;
|
|
1772
1775
|
valueSeparator: string;
|
|
1773
1776
|
selectedItems: import("menu/src").MenuItem[];
|
|
1774
1777
|
menuSlot: HTMLSlotElement;
|
|
1775
|
-
isSubmenu: boolean;
|
|
1776
1778
|
focusedItemIndex: number;
|
|
1777
1779
|
focusInItemIndex: number;
|
|
1778
1780
|
readonly childItems: import("menu/src").MenuItem[];
|
|
@@ -1781,6 +1783,8 @@ export declare const MenuGroup: import("react").ComponentType<Partial<{
|
|
|
1781
1783
|
startListeningToKeyboard: () => void;
|
|
1782
1784
|
handleFocusout: (event: FocusEvent) => void;
|
|
1783
1785
|
stopListeningToKeyboard: () => void;
|
|
1786
|
+
handleSubmenuClosed: (event: Event) => void;
|
|
1787
|
+
handleSubmenuOpened: (event: Event) => void;
|
|
1784
1788
|
selectOrToggleItem: (targetItem: import("menu/src").MenuItem) => Promise<void>;
|
|
1785
1789
|
handleKeydown: (event: KeyboardEvent) => void;
|
|
1786
1790
|
focusMenuItemByOffset: (offset: number) => import("menu/src").MenuItem;
|
|
@@ -1799,16 +1803,13 @@ export declare const MenuItem: import("react").ComponentType<Partial<{
|
|
|
1799
1803
|
style?: import("react").CSSProperties | undefined;
|
|
1800
1804
|
tabIndex?: number | undefined;
|
|
1801
1805
|
'aria-disabled'?: (boolean | "true" | "false") | undefined;
|
|
1806
|
+
accessKey?: string | undefined;
|
|
1802
1807
|
color?: string | undefined;
|
|
1803
1808
|
lang?: string | undefined;
|
|
1804
|
-
'aria-
|
|
1805
|
-
accessKey?: string | undefined;
|
|
1806
|
-
'aria-hidden'?: (boolean | "true" | "false") | undefined;
|
|
1809
|
+
'aria-describedby'?: string | undefined;
|
|
1807
1810
|
role?: import("react").AriaRole | undefined;
|
|
1808
|
-
'aria-
|
|
1809
|
-
'aria-
|
|
1810
|
-
'aria-expanded'?: (boolean | "true" | "false") | undefined;
|
|
1811
|
-
'aria-pressed'?: boolean | "true" | "false" | "mixed" | undefined;
|
|
1811
|
+
'aria-selected'?: (boolean | "true" | "false") | undefined;
|
|
1812
|
+
'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
|
|
1812
1813
|
draggable?: (boolean | "true" | "false") | undefined;
|
|
1813
1814
|
hidden?: boolean | undefined;
|
|
1814
1815
|
translate?: "yes" | "no" | undefined;
|
|
@@ -1817,9 +1818,7 @@ export declare const MenuItem: import("react").ComponentType<Partial<{
|
|
|
1817
1818
|
contentEditable?: "inherit" | (boolean | "true" | "false") | undefined;
|
|
1818
1819
|
inputMode?: "none" | "text" | "search" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
1819
1820
|
nonce?: string | undefined;
|
|
1820
|
-
'aria-
|
|
1821
|
-
'aria-selected'?: (boolean | "true" | "false") | undefined;
|
|
1822
|
-
'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
|
|
1821
|
+
'aria-label'?: string | undefined;
|
|
1823
1822
|
'aria-activedescendant'?: string | undefined;
|
|
1824
1823
|
'aria-labelledby'?: string | undefined;
|
|
1825
1824
|
defaultChecked?: boolean | undefined;
|
|
@@ -1856,22 +1855,27 @@ export declare const MenuItem: import("react").ComponentType<Partial<{
|
|
|
1856
1855
|
'aria-colindex'?: number | undefined;
|
|
1857
1856
|
'aria-colspan'?: number | undefined;
|
|
1858
1857
|
'aria-controls'?: string | undefined;
|
|
1859
|
-
'aria-current'?: boolean | "true" | "time" | "
|
|
1858
|
+
'aria-current'?: boolean | "true" | "time" | "page" | "false" | "step" | "location" | "date" | undefined;
|
|
1860
1859
|
'aria-details'?: string | undefined;
|
|
1861
1860
|
'aria-dropeffect'?: "none" | "link" | "copy" | "execute" | "move" | "popup" | undefined;
|
|
1862
1861
|
'aria-errormessage'?: string | undefined;
|
|
1862
|
+
'aria-expanded'?: (boolean | "true" | "false") | undefined;
|
|
1863
1863
|
'aria-flowto'?: string | undefined;
|
|
1864
1864
|
'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;
|
|
1865
1867
|
'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
|
|
1866
1868
|
'aria-keyshortcuts'?: string | undefined;
|
|
1867
1869
|
'aria-level'?: number | undefined;
|
|
1868
1870
|
'aria-live'?: "off" | "assertive" | "polite" | undefined;
|
|
1871
|
+
'aria-modal'?: (boolean | "true" | "false") | undefined;
|
|
1869
1872
|
'aria-multiline'?: (boolean | "true" | "false") | undefined;
|
|
1870
1873
|
'aria-multiselectable'?: (boolean | "true" | "false") | undefined;
|
|
1871
1874
|
'aria-orientation'?: "horizontal" | "vertical" | undefined;
|
|
1872
1875
|
'aria-owns'?: string | undefined;
|
|
1873
1876
|
'aria-placeholder'?: string | undefined;
|
|
1874
1877
|
'aria-posinset'?: number | undefined;
|
|
1878
|
+
'aria-pressed'?: boolean | "true" | "false" | "mixed" | undefined;
|
|
1875
1879
|
'aria-readonly'?: (boolean | "true" | "false") | undefined;
|
|
1876
1880
|
'aria-relevant'?: "text" | "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
|
|
1877
1881
|
'aria-required'?: (boolean | "true" | "false") | undefined;
|
|
@@ -2070,16 +2074,46 @@ export declare const MenuItem: import("react").ComponentType<Partial<{
|
|
|
2070
2074
|
disabled: boolean;
|
|
2071
2075
|
autofocus: boolean;
|
|
2072
2076
|
normalize: () => void;
|
|
2073
|
-
|
|
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
|
+
};
|
|
2074
2086
|
open: boolean;
|
|
2087
|
+
readonly assignedSlot: HTMLSlotElement | null;
|
|
2088
|
+
shadowRoot: ShadowRoot;
|
|
2089
|
+
readonly parentElement: HTMLElement | null;
|
|
2075
2090
|
readonly renderOptions: import("lit-html").RenderOptions;
|
|
2076
|
-
active: boolean;
|
|
2077
|
-
remove: () => void;
|
|
2078
2091
|
readonly childNodes: NodeListOf<ChildNode>;
|
|
2092
|
+
active: boolean;
|
|
2093
|
+
focused: boolean;
|
|
2079
2094
|
selected: boolean;
|
|
2080
2095
|
value: string;
|
|
2081
|
-
|
|
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;
|
|
2082
2106
|
connectedCallback: () => void;
|
|
2107
|
+
_parentElement: HTMLElement;
|
|
2108
|
+
disconnectedCallback: () => void;
|
|
2109
|
+
triggerUpdate: () => Promise<void>;
|
|
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
|
+
};
|
|
2083
2117
|
readonly renderRoot: HTMLElement | ShadowRoot;
|
|
2084
2118
|
isUpdatePending: boolean;
|
|
2085
2119
|
hasUpdated: boolean;
|
|
@@ -2100,14 +2134,6 @@ export declare const MenuItem: import("react").ComponentType<Partial<{
|
|
|
2100
2134
|
outerText: string;
|
|
2101
2135
|
spellcheck: boolean;
|
|
2102
2136
|
attachInternals: () => ElementInternals;
|
|
2103
|
-
addEventListener: {
|
|
2104
|
-
<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
2105
|
-
(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
2106
|
-
};
|
|
2107
|
-
removeEventListener: {
|
|
2108
|
-
<K_1 extends keyof HTMLElementEventMap>(type: K_1, listener: (this: HTMLElement, ev: HTMLElementEventMap[K_1]) => any, options?: boolean | EventListenerOptions | undefined): void;
|
|
2109
|
-
(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions | undefined): void;
|
|
2110
|
-
};
|
|
2111
2137
|
readonly classList: DOMTokenList;
|
|
2112
2138
|
readonly clientHeight: number;
|
|
2113
2139
|
readonly clientLeft: number;
|
|
@@ -2186,7 +2212,6 @@ export declare const MenuItem: import("react").ComponentType<Partial<{
|
|
|
2186
2212
|
readonly nodeName: string;
|
|
2187
2213
|
readonly nodeType: number;
|
|
2188
2214
|
nodeValue: string | null;
|
|
2189
|
-
readonly parentElement: HTMLElement | null;
|
|
2190
2215
|
readonly parentNode: ParentNode | null;
|
|
2191
2216
|
readonly previousSibling: ChildNode | null;
|
|
2192
2217
|
textContent: string | null;
|
|
@@ -2222,7 +2247,6 @@ export declare const MenuItem: import("react").ComponentType<Partial<{
|
|
|
2222
2247
|
readonly NOTATION_NODE: number;
|
|
2223
2248
|
readonly PROCESSING_INSTRUCTION_NODE: number;
|
|
2224
2249
|
readonly TEXT_NODE: number;
|
|
2225
|
-
dispatchEvent: (event: Event) => boolean;
|
|
2226
2250
|
ariaAtomic: string | null;
|
|
2227
2251
|
ariaAutoComplete: string | null;
|
|
2228
2252
|
ariaBusy: string | null;
|
|
@@ -2261,6 +2285,7 @@ export declare const MenuItem: import("react").ComponentType<Partial<{
|
|
|
2261
2285
|
getAnimations: (options?: GetAnimationsOptions | undefined) => Animation[];
|
|
2262
2286
|
after: (...nodes: (string | Node)[]) => void;
|
|
2263
2287
|
before: (...nodes: (string | Node)[]) => void;
|
|
2288
|
+
remove: () => void;
|
|
2264
2289
|
replaceWith: (...nodes: (string | Node)[]) => void;
|
|
2265
2290
|
innerHTML: string;
|
|
2266
2291
|
readonly nextElementSibling: Element | null;
|
|
@@ -2281,7 +2306,6 @@ export declare const MenuItem: import("react").ComponentType<Partial<{
|
|
|
2281
2306
|
<E_2 extends Element = Element>(selectors: string): NodeListOf<E_2>;
|
|
2282
2307
|
};
|
|
2283
2308
|
replaceChildren: (...nodes: (string | Node)[]) => void;
|
|
2284
|
-
readonly assignedSlot: HTMLSlotElement | null;
|
|
2285
2309
|
oncopy: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
2286
2310
|
oncut: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
2287
2311
|
onpaste: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
@@ -2379,22 +2403,6 @@ export declare const MenuItem: import("react").ComponentType<Partial<{
|
|
|
2379
2403
|
readonly dataset: DOMStringMap;
|
|
2380
2404
|
isLTR: boolean;
|
|
2381
2405
|
hasVisibleFocusInTree: () => boolean;
|
|
2382
|
-
focused: boolean;
|
|
2383
|
-
hasSubmenu: boolean;
|
|
2384
|
-
noWrap: boolean;
|
|
2385
|
-
readonly itemText: string;
|
|
2386
|
-
readonly focusElement: HTMLElement;
|
|
2387
|
-
readonly itemChildren: import("menu/src").MenuItemChildren;
|
|
2388
|
-
closeOverlay?: (() => Promise<void>) | undefined;
|
|
2389
|
-
openOverlay: () => Promise<void>;
|
|
2390
|
-
updateAriaSelected: () => void;
|
|
2391
|
-
setRole: (role: string) => void;
|
|
2392
|
-
_parentElement: HTMLElement;
|
|
2393
|
-
triggerUpdate: () => Promise<void>;
|
|
2394
|
-
menuData: {
|
|
2395
|
-
focusRoot?: import("menu/src").Menu | undefined;
|
|
2396
|
-
selectionRoot?: import("menu/src").Menu | undefined;
|
|
2397
|
-
};
|
|
2398
2406
|
renderAnchor: (options: {
|
|
2399
2407
|
id: string;
|
|
2400
2408
|
className?: string | undefined;
|
|
@@ -2405,5 +2413,4 @@ export declare const MenuItem: import("react").ComponentType<Partial<{
|
|
|
2405
2413
|
}) => import("lit-html").TemplateResult<2 | 1>;
|
|
2406
2414
|
} & {
|
|
2407
2415
|
spMenuItemAdded: (e: Event) => void;
|
|
2408
|
-
spMenuItemRemoved: (e: Event) => void;
|
|
2409
2416
|
}> & 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.34.0",
|
|
3
|
+
"version": "0.34.1-rc.0+1647bfed5",
|
|
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.34.0"
|
|
33
|
+
"@spectrum-web-components/menu": "^0.34.1-rc.0+1647bfed5"
|
|
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": "1647bfed54cb29f3513343cd0d2c2d9e73e1c508"
|
|
44
44
|
}
|