@swc-react/menu 0.32.1-overlay.41 → 0.33.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +1 -0
- package/index.dev.js +3 -1
- package/index.dev.js.map +2 -2
- package/index.js +1 -1
- package/index.js.map +2 -2
- package/next.d.ts +113 -118
- package/package.json +3 -3
package/index.d.ts
CHANGED
|
@@ -18,6 +18,7 @@ export declare const MenuGroup: import("@lit-labs/react").ReactWebComponent<SpMe
|
|
|
18
18
|
}>;
|
|
19
19
|
export declare const MenuItem: import("@lit-labs/react").ReactWebComponent<SpMenuItem, {
|
|
20
20
|
spMenuItemAdded: EventName<Event>;
|
|
21
|
+
spMenuItemRemoved: EventName<Event>;
|
|
21
22
|
}>;
|
|
22
23
|
export declare type MenuType = EventTarget & SpMenu;
|
|
23
24
|
export declare type MenuDividerType = EventTarget & SpMenuDivider;
|
package/index.dev.js
CHANGED
|
@@ -44,8 +44,10 @@ export const MenuItem = createComponent({
|
|
|
44
44
|
react: React,
|
|
45
45
|
tagName: "sp-menu-item",
|
|
46
46
|
events: {
|
|
47
|
-
spMenuItemAdded: "sp-menu-item-added"
|
|
47
|
+
spMenuItemAdded: "sp-menu-item-added",
|
|
48
48
|
// announces the item has been added so a parent menu can take ownerships
|
|
49
|
+
spMenuItemRemoved: "sp-menu-item-removed"
|
|
50
|
+
// announces when removed from the DOM so the parent menu can remove ownership and update selected state
|
|
49
51
|
}
|
|
50
52
|
});
|
|
51
53
|
//# sourceMappingURL=index.dev.js.map
|
package/index.dev.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["index.ts"],
|
|
4
|
-
"sourcesContent": ["/*\nCopyright 2022 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\nimport * as React from 'react';\nimport { createComponent } from '@lit-labs/react';\nimport type { EventName } from '@lit-labs/react';\nimport { Menu as SpMenu } from '@spectrum-web-components/menu';\nimport { MenuDivider as SpMenuDivider } from '@spectrum-web-components/menu';\nimport { MenuGroup as SpMenuGroup } from '@spectrum-web-components/menu';\nimport { MenuItem as SpMenuItem } from '@spectrum-web-components/menu';\n\nimport '@spectrum-web-components/menu/sp-menu-divider.js';\nimport '@spectrum-web-components/menu/sp-menu-group.js';\nimport '@spectrum-web-components/menu/sp-menu-item.js';\nimport '@spectrum-web-components/menu/sp-menu.js';\n\nexport const Menu = createComponent({\n displayName: 'Menu',\n elementClass: SpMenu,\n react: React,\n tagName: 'sp-menu',\n events: {\n change: 'change' as EventName<Event>, // Announces that the `value` of the element has changed\n close: 'close' as EventName<Event>,\n },\n});\nexport const MenuDivider = createComponent({\n displayName: 'MenuDivider',\n elementClass: SpMenuDivider,\n react: React,\n tagName: 'sp-menu-divider',\n events: {},\n});\nexport const MenuGroup = createComponent({\n displayName: 'MenuGroup',\n elementClass: SpMenuGroup,\n react: React,\n tagName: 'sp-menu-group',\n events: {\n change: 'change' as EventName<Event>, // Announces that the `value` of the element has changed\n close: 'close' as EventName<Event>,\n },\n});\nexport const MenuItem = createComponent({\n displayName: 'MenuItem',\n elementClass: SpMenuItem,\n react: React,\n tagName: 'sp-menu-item',\n events: {\n spMenuItemAdded: 'sp-menu-item-added' as EventName<Event>, // announces the item has been added so a parent menu can take ownerships\n },\n});\n\nexport type MenuType = EventTarget & SpMenu;\nexport type MenuDividerType = EventTarget & SpMenuDivider;\nexport type MenuGroupType = EventTarget & SpMenuGroup;\nexport type MenuItemType = EventTarget & SpMenuItem;\n"],
|
|
5
|
-
"mappings": ";AAYA,YAAY,WAAW;AACvB,SAAS,uBAAuB;AAEhC,SAAS,QAAQ,cAAc;AAC/B,SAAS,eAAe,qBAAqB;AAC7C,SAAS,aAAa,mBAAmB;AACzC,SAAS,YAAY,kBAAkB;AAEvC,OAAO;AACP,OAAO;AACP,OAAO;AACP,OAAO;AAEA,aAAM,OAAO,gBAAgB;AAAA,EAChC,aAAa;AAAA,EACb,cAAc;AAAA,EACd,OAAO;AAAA,EACP,SAAS;AAAA,EACT,QAAQ;AAAA,IACJ,QAAQ;AAAA;AAAA,IACR,OAAO;AAAA,EACX;AACJ,CAAC;AACM,aAAM,cAAc,gBAAgB;AAAA,EACvC,aAAa;AAAA,EACb,cAAc;AAAA,EACd,OAAO;AAAA,EACP,SAAS;AAAA,EACT,QAAQ,CAAC;AACb,CAAC;AACM,aAAM,YAAY,gBAAgB;AAAA,EACrC,aAAa;AAAA,EACb,cAAc;AAAA,EACd,OAAO;AAAA,EACP,SAAS;AAAA,EACT,QAAQ;AAAA,IACJ,QAAQ;AAAA;AAAA,IACR,OAAO;AAAA,EACX;AACJ,CAAC;AACM,aAAM,WAAW,gBAAgB;AAAA,EACpC,aAAa;AAAA,EACb,cAAc;AAAA,EACd,OAAO;AAAA,EACP,SAAS;AAAA,EACT,QAAQ;AAAA,IACJ,iBAAiB;AAAA;AAAA,
|
|
4
|
+
"sourcesContent": ["/*\nCopyright 2022 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\nimport * as React from 'react';\nimport { createComponent } from '@lit-labs/react';\nimport type { EventName } from '@lit-labs/react';\nimport { Menu as SpMenu } from '@spectrum-web-components/menu';\nimport { MenuDivider as SpMenuDivider } from '@spectrum-web-components/menu';\nimport { MenuGroup as SpMenuGroup } from '@spectrum-web-components/menu';\nimport { MenuItem as SpMenuItem } from '@spectrum-web-components/menu';\n\nimport '@spectrum-web-components/menu/sp-menu-divider.js';\nimport '@spectrum-web-components/menu/sp-menu-group.js';\nimport '@spectrum-web-components/menu/sp-menu-item.js';\nimport '@spectrum-web-components/menu/sp-menu.js';\n\nexport const Menu = createComponent({\n displayName: 'Menu',\n elementClass: SpMenu,\n react: React,\n tagName: 'sp-menu',\n events: {\n change: 'change' as EventName<Event>, // Announces that the `value` of the element has changed\n close: 'close' as EventName<Event>,\n },\n});\nexport const MenuDivider = createComponent({\n displayName: 'MenuDivider',\n elementClass: SpMenuDivider,\n react: React,\n tagName: 'sp-menu-divider',\n events: {},\n});\nexport const MenuGroup = createComponent({\n displayName: 'MenuGroup',\n elementClass: SpMenuGroup,\n react: React,\n tagName: 'sp-menu-group',\n events: {\n change: 'change' as EventName<Event>, // Announces that the `value` of the element has changed\n close: 'close' as EventName<Event>,\n },\n});\nexport const MenuItem = createComponent({\n displayName: 'MenuItem',\n elementClass: SpMenuItem,\n react: React,\n tagName: 'sp-menu-item',\n events: {\n spMenuItemAdded: 'sp-menu-item-added' as EventName<Event>, // announces the item has been added so a parent menu can take ownerships\n spMenuItemRemoved: 'sp-menu-item-removed' as EventName<Event>, // announces when removed from the DOM so the parent menu can remove ownership and update selected state\n },\n});\n\nexport type MenuType = EventTarget & SpMenu;\nexport type MenuDividerType = EventTarget & SpMenuDivider;\nexport type MenuGroupType = EventTarget & SpMenuGroup;\nexport type MenuItemType = EventTarget & SpMenuItem;\n"],
|
|
5
|
+
"mappings": ";AAYA,YAAY,WAAW;AACvB,SAAS,uBAAuB;AAEhC,SAAS,QAAQ,cAAc;AAC/B,SAAS,eAAe,qBAAqB;AAC7C,SAAS,aAAa,mBAAmB;AACzC,SAAS,YAAY,kBAAkB;AAEvC,OAAO;AACP,OAAO;AACP,OAAO;AACP,OAAO;AAEA,aAAM,OAAO,gBAAgB;AAAA,EAChC,aAAa;AAAA,EACb,cAAc;AAAA,EACd,OAAO;AAAA,EACP,SAAS;AAAA,EACT,QAAQ;AAAA,IACJ,QAAQ;AAAA;AAAA,IACR,OAAO;AAAA,EACX;AACJ,CAAC;AACM,aAAM,cAAc,gBAAgB;AAAA,EACvC,aAAa;AAAA,EACb,cAAc;AAAA,EACd,OAAO;AAAA,EACP,SAAS;AAAA,EACT,QAAQ,CAAC;AACb,CAAC;AACM,aAAM,YAAY,gBAAgB;AAAA,EACrC,aAAa;AAAA,EACb,cAAc;AAAA,EACd,OAAO;AAAA,EACP,SAAS;AAAA,EACT,QAAQ;AAAA,IACJ,QAAQ;AAAA;AAAA,IACR,OAAO;AAAA,EACX;AACJ,CAAC;AACM,aAAM,WAAW,gBAAgB;AAAA,EACpC,aAAa;AAAA,EACb,cAAc;AAAA,EACd,OAAO;AAAA,EACP,SAAS;AAAA,EACT,QAAQ;AAAA,IACJ,iBAAiB;AAAA;AAAA,IACjB,mBAAmB;AAAA;AAAA,EACvB;AACJ,CAAC;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";import*as e from"react";import{createComponent as t}from"@lit-labs/react";import{Menu as n}from"@spectrum-web-components/menu";import{MenuDivider as
|
|
1
|
+
"use strict";import*as e from"react";import{createComponent as t}from"@lit-labs/react";import{Menu as n}from"@spectrum-web-components/menu";import{MenuDivider as m}from"@spectrum-web-components/menu";import{MenuGroup as p}from"@spectrum-web-components/menu";import{MenuItem as a}from"@spectrum-web-components/menu";import"@spectrum-web-components/menu/sp-menu-divider.js";import"@spectrum-web-components/menu/sp-menu-group.js";import"@spectrum-web-components/menu/sp-menu-item.js";import"@spectrum-web-components/menu/sp-menu.js";export const Menu=t({displayName:"Menu",elementClass:n,react:e,tagName:"sp-menu",events:{change:"change",close:"close"}}),MenuDivider=t({displayName:"MenuDivider",elementClass:m,react:e,tagName:"sp-menu-divider",events:{}}),MenuGroup=t({displayName:"MenuGroup",elementClass:p,react:e,tagName:"sp-menu-group",events:{change:"change",close:"close"}}),MenuItem=t({displayName:"MenuItem",elementClass:a,react:e,tagName:"sp-menu-item",events:{spMenuItemAdded:"sp-menu-item-added",spMenuItemRemoved:"sp-menu-item-removed"}});
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/index.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["index.ts"],
|
|
4
|
-
"sourcesContent": ["/*\nCopyright 2022 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\nimport * as React from 'react';\nimport { createComponent } from '@lit-labs/react';\nimport type { EventName } from '@lit-labs/react';\nimport { Menu as SpMenu } from '@spectrum-web-components/menu';\nimport { MenuDivider as SpMenuDivider } from '@spectrum-web-components/menu';\nimport { MenuGroup as SpMenuGroup } from '@spectrum-web-components/menu';\nimport { MenuItem as SpMenuItem } from '@spectrum-web-components/menu';\n\nimport '@spectrum-web-components/menu/sp-menu-divider.js';\nimport '@spectrum-web-components/menu/sp-menu-group.js';\nimport '@spectrum-web-components/menu/sp-menu-item.js';\nimport '@spectrum-web-components/menu/sp-menu.js';\n\nexport const Menu = createComponent({\n displayName: 'Menu',\n elementClass: SpMenu,\n react: React,\n tagName: 'sp-menu',\n events: {\n change: 'change' as EventName<Event>, // Announces that the `value` of the element has changed\n close: 'close' as EventName<Event>,\n },\n});\nexport const MenuDivider = createComponent({\n displayName: 'MenuDivider',\n elementClass: SpMenuDivider,\n react: React,\n tagName: 'sp-menu-divider',\n events: {},\n});\nexport const MenuGroup = createComponent({\n displayName: 'MenuGroup',\n elementClass: SpMenuGroup,\n react: React,\n tagName: 'sp-menu-group',\n events: {\n change: 'change' as EventName<Event>, // Announces that the `value` of the element has changed\n close: 'close' as EventName<Event>,\n },\n});\nexport const MenuItem = createComponent({\n displayName: 'MenuItem',\n elementClass: SpMenuItem,\n react: React,\n tagName: 'sp-menu-item',\n events: {\n spMenuItemAdded: 'sp-menu-item-added' as EventName<Event>, // announces the item has been added so a parent menu can take ownerships\n },\n});\n\nexport type MenuType = EventTarget & SpMenu;\nexport type MenuDividerType = EventTarget & SpMenuDivider;\nexport type MenuGroupType = EventTarget & SpMenuGroup;\nexport type MenuItemType = EventTarget & SpMenuItem;\n"],
|
|
5
|
-
"mappings": "aAYA,UAAYA,MAAW,QACvB,OAAS,mBAAAC,MAAuB,kBAEhC,OAAS,QAAQC,MAAc,gCAC/B,OAAS,eAAeC,MAAqB,gCAC7C,OAAS,aAAaC,MAAmB,gCACzC,OAAS,YAAYC,MAAkB,gCAEvC,MAAO,mDACP,MAAO,iDACP,MAAO,gDACP,MAAO,2CAEA,aAAM,KAAOJ,EAAgB,CAChC,YAAa,OACb,aAAcC,EACd,MAAOF,EACP,QAAS,UACT,OAAQ,CACJ,OAAQ,SACR,MAAO,OACX,CACJ,CAAC,EACY,YAAcC,EAAgB,CACvC,YAAa,cACb,aAAcE,EACd,MAAOH,EACP,QAAS,kBACT,OAAQ,CAAC,CACb,CAAC,EACY,UAAYC,EAAgB,CACrC,YAAa,YACb,aAAcG,EACd,MAAOJ,EACP,QAAS,gBACT,OAAQ,CACJ,OAAQ,SACR,MAAO,OACX,CACJ,CAAC,EACY,SAAWC,EAAgB,CACpC,YAAa,WACb,aAAcI,EACd,MAAOL,EACP,QAAS,eACT,OAAQ,CACJ,gBAAiB,
|
|
4
|
+
"sourcesContent": ["/*\nCopyright 2022 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\nimport * as React from 'react';\nimport { createComponent } from '@lit-labs/react';\nimport type { EventName } from '@lit-labs/react';\nimport { Menu as SpMenu } from '@spectrum-web-components/menu';\nimport { MenuDivider as SpMenuDivider } from '@spectrum-web-components/menu';\nimport { MenuGroup as SpMenuGroup } from '@spectrum-web-components/menu';\nimport { MenuItem as SpMenuItem } from '@spectrum-web-components/menu';\n\nimport '@spectrum-web-components/menu/sp-menu-divider.js';\nimport '@spectrum-web-components/menu/sp-menu-group.js';\nimport '@spectrum-web-components/menu/sp-menu-item.js';\nimport '@spectrum-web-components/menu/sp-menu.js';\n\nexport const Menu = createComponent({\n displayName: 'Menu',\n elementClass: SpMenu,\n react: React,\n tagName: 'sp-menu',\n events: {\n change: 'change' as EventName<Event>, // Announces that the `value` of the element has changed\n close: 'close' as EventName<Event>,\n },\n});\nexport const MenuDivider = createComponent({\n displayName: 'MenuDivider',\n elementClass: SpMenuDivider,\n react: React,\n tagName: 'sp-menu-divider',\n events: {},\n});\nexport const MenuGroup = createComponent({\n displayName: 'MenuGroup',\n elementClass: SpMenuGroup,\n react: React,\n tagName: 'sp-menu-group',\n events: {\n change: 'change' as EventName<Event>, // Announces that the `value` of the element has changed\n close: 'close' as EventName<Event>,\n },\n});\nexport const MenuItem = createComponent({\n displayName: 'MenuItem',\n elementClass: SpMenuItem,\n react: React,\n tagName: 'sp-menu-item',\n events: {\n spMenuItemAdded: 'sp-menu-item-added' as EventName<Event>, // announces the item has been added so a parent menu can take ownerships\n spMenuItemRemoved: 'sp-menu-item-removed' as EventName<Event>, // announces when removed from the DOM so the parent menu can remove ownership and update selected state\n },\n});\n\nexport type MenuType = EventTarget & SpMenu;\nexport type MenuDividerType = EventTarget & SpMenuDivider;\nexport type MenuGroupType = EventTarget & SpMenuGroup;\nexport type MenuItemType = EventTarget & SpMenuItem;\n"],
|
|
5
|
+
"mappings": "aAYA,UAAYA,MAAW,QACvB,OAAS,mBAAAC,MAAuB,kBAEhC,OAAS,QAAQC,MAAc,gCAC/B,OAAS,eAAeC,MAAqB,gCAC7C,OAAS,aAAaC,MAAmB,gCACzC,OAAS,YAAYC,MAAkB,gCAEvC,MAAO,mDACP,MAAO,iDACP,MAAO,gDACP,MAAO,2CAEA,aAAM,KAAOJ,EAAgB,CAChC,YAAa,OACb,aAAcC,EACd,MAAOF,EACP,QAAS,UACT,OAAQ,CACJ,OAAQ,SACR,MAAO,OACX,CACJ,CAAC,EACY,YAAcC,EAAgB,CACvC,YAAa,cACb,aAAcE,EACd,MAAOH,EACP,QAAS,kBACT,OAAQ,CAAC,CACb,CAAC,EACY,UAAYC,EAAgB,CACrC,YAAa,YACb,aAAcG,EACd,MAAOJ,EACP,QAAS,gBACT,OAAQ,CACJ,OAAQ,SACR,MAAO,OACX,CACJ,CAAC,EACY,SAAWC,EAAgB,CACpC,YAAa,WACb,aAAcI,EACd,MAAOL,EACP,QAAS,eACT,OAAQ,CACJ,gBAAiB,qBACjB,kBAAmB,sBACvB,CACJ,CAAC",
|
|
6
6
|
"names": ["React", "createComponent", "SpMenu", "SpMenuDivider", "SpMenuGroup", "SpMenuItem"]
|
|
7
7
|
}
|
package/next.d.ts
CHANGED
|
@@ -8,13 +8,14 @@ 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;
|
|
12
11
|
color?: string | undefined;
|
|
13
12
|
lang?: string | undefined;
|
|
14
|
-
'aria-
|
|
13
|
+
'aria-modal'?: (boolean | "true" | "false") | undefined;
|
|
14
|
+
accessKey?: string | undefined;
|
|
15
|
+
'aria-hidden'?: (boolean | "true" | "false") | undefined;
|
|
15
16
|
role?: import("react").AriaRole | undefined;
|
|
16
|
-
'aria-
|
|
17
|
-
'aria-
|
|
17
|
+
'aria-label'?: string | undefined;
|
|
18
|
+
'aria-pressed'?: boolean | "true" | "false" | "mixed" | undefined;
|
|
18
19
|
draggable?: (boolean | "true" | "false") | undefined;
|
|
19
20
|
hidden?: boolean | undefined;
|
|
20
21
|
translate?: "yes" | "no" | undefined;
|
|
@@ -23,7 +24,9 @@ export declare const Menu: import("react").ComponentType<Partial<{
|
|
|
23
24
|
contentEditable?: "inherit" | (boolean | "true" | "false") | undefined;
|
|
24
25
|
inputMode?: "none" | "text" | "search" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
25
26
|
nonce?: string | undefined;
|
|
26
|
-
'aria-
|
|
27
|
+
'aria-describedby'?: string | undefined;
|
|
28
|
+
'aria-selected'?: (boolean | "true" | "false") | undefined;
|
|
29
|
+
'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
|
|
27
30
|
'aria-activedescendant'?: string | undefined;
|
|
28
31
|
'aria-labelledby'?: string | undefined;
|
|
29
32
|
defaultChecked?: boolean | undefined;
|
|
@@ -60,7 +63,7 @@ export declare const Menu: import("react").ComponentType<Partial<{
|
|
|
60
63
|
'aria-colindex'?: number | undefined;
|
|
61
64
|
'aria-colspan'?: number | undefined;
|
|
62
65
|
'aria-controls'?: string | undefined;
|
|
63
|
-
'aria-current'?: boolean | "true" | "time" | "
|
|
66
|
+
'aria-current'?: boolean | "true" | "time" | "false" | "page" | "step" | "location" | "date" | undefined;
|
|
64
67
|
'aria-details'?: string | undefined;
|
|
65
68
|
'aria-dropeffect'?: "none" | "link" | "copy" | "execute" | "move" | "popup" | undefined;
|
|
66
69
|
'aria-errormessage'?: string | undefined;
|
|
@@ -68,19 +71,16 @@ export declare const Menu: import("react").ComponentType<Partial<{
|
|
|
68
71
|
'aria-flowto'?: string | undefined;
|
|
69
72
|
'aria-grabbed'?: (boolean | "true" | "false") | undefined;
|
|
70
73
|
'aria-haspopup'?: boolean | "true" | "dialog" | "menu" | "false" | "listbox" | "grid" | "tree" | undefined;
|
|
71
|
-
'aria-hidden'?: (boolean | "true" | "false") | undefined;
|
|
72
74
|
'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
|
|
73
75
|
'aria-keyshortcuts'?: string | undefined;
|
|
74
76
|
'aria-level'?: number | undefined;
|
|
75
77
|
'aria-live'?: "off" | "assertive" | "polite" | undefined;
|
|
76
|
-
'aria-modal'?: (boolean | "true" | "false") | undefined;
|
|
77
78
|
'aria-multiline'?: (boolean | "true" | "false") | undefined;
|
|
78
79
|
'aria-multiselectable'?: (boolean | "true" | "false") | undefined;
|
|
79
80
|
'aria-orientation'?: "horizontal" | "vertical" | undefined;
|
|
80
81
|
'aria-owns'?: string | undefined;
|
|
81
82
|
'aria-placeholder'?: string | undefined;
|
|
82
83
|
'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,24 +274,14 @@ 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;
|
|
287
277
|
shadowRoot: ShadowRoot;
|
|
288
|
-
readonly parentElement: HTMLElement | null;
|
|
289
278
|
readonly renderOptions: import("lit-html").RenderOptions;
|
|
279
|
+
remove: () => void;
|
|
290
280
|
readonly childNodes: NodeListOf<ChildNode>;
|
|
291
281
|
selected: string[];
|
|
292
282
|
value: string;
|
|
293
|
-
connectedCallback: () => void;
|
|
294
283
|
disconnectedCallback: () => void;
|
|
284
|
+
connectedCallback: () => void;
|
|
295
285
|
readonly renderRoot: HTMLElement | ShadowRoot;
|
|
296
286
|
isUpdatePending: boolean;
|
|
297
287
|
hasUpdated: boolean;
|
|
@@ -312,6 +302,14 @@ export declare const Menu: import("react").ComponentType<Partial<{
|
|
|
312
302
|
outerText: string;
|
|
313
303
|
spellcheck: boolean;
|
|
314
304
|
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
|
+
};
|
|
315
313
|
readonly classList: DOMTokenList;
|
|
316
314
|
readonly clientHeight: number;
|
|
317
315
|
readonly clientLeft: number;
|
|
@@ -390,6 +388,7 @@ export declare const Menu: import("react").ComponentType<Partial<{
|
|
|
390
388
|
readonly nodeName: string;
|
|
391
389
|
readonly nodeType: number;
|
|
392
390
|
nodeValue: string | null;
|
|
391
|
+
readonly parentElement: HTMLElement | null;
|
|
393
392
|
readonly parentNode: ParentNode | null;
|
|
394
393
|
readonly previousSibling: ChildNode | null;
|
|
395
394
|
textContent: string | null;
|
|
@@ -425,6 +424,7 @@ export declare const Menu: import("react").ComponentType<Partial<{
|
|
|
425
424
|
readonly NOTATION_NODE: number;
|
|
426
425
|
readonly PROCESSING_INSTRUCTION_NODE: number;
|
|
427
426
|
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,7 +463,6 @@ 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;
|
|
467
466
|
replaceWith: (...nodes: (string | Node)[]) => void;
|
|
468
467
|
innerHTML: string;
|
|
469
468
|
readonly nextElementSibling: Element | null;
|
|
@@ -484,6 +483,7 @@ export declare const Menu: import("react").ComponentType<Partial<{
|
|
|
484
483
|
<E_2 extends Element = Element>(selectors: string): NodeListOf<E_2>;
|
|
485
484
|
};
|
|
486
485
|
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,12 @@ export declare const Menu: import("react").ComponentType<Partial<{
|
|
|
581
581
|
readonly dataset: DOMStringMap;
|
|
582
582
|
isLTR: boolean;
|
|
583
583
|
hasVisibleFocusInTree: () => boolean;
|
|
584
|
-
|
|
585
|
-
selects: "inherit" | "
|
|
584
|
+
ignore: boolean;
|
|
585
|
+
selects: "inherit" | "single" | "multiple" | undefined;
|
|
586
586
|
valueSeparator: string;
|
|
587
587
|
selectedItems: import("menu/src").MenuItem[];
|
|
588
588
|
menuSlot: HTMLSlotElement;
|
|
589
|
+
isSubmenu: boolean;
|
|
589
590
|
focusedItemIndex: number;
|
|
590
591
|
focusInItemIndex: number;
|
|
591
592
|
readonly childItems: import("menu/src").MenuItem[];
|
|
@@ -594,8 +595,6 @@ export declare const Menu: import("react").ComponentType<Partial<{
|
|
|
594
595
|
startListeningToKeyboard: () => void;
|
|
595
596
|
handleFocusout: (event: FocusEvent) => void;
|
|
596
597
|
stopListeningToKeyboard: () => void;
|
|
597
|
-
handleSubmenuClosed: (event: Event) => void;
|
|
598
|
-
handleSubmenuOpened: (event: Event) => void;
|
|
599
598
|
selectOrToggleItem: (targetItem: import("menu/src").MenuItem) => Promise<void>;
|
|
600
599
|
handleKeydown: (event: KeyboardEvent) => void;
|
|
601
600
|
focusMenuItemByOffset: (offset: number) => import("menu/src").MenuItem;
|
|
@@ -614,13 +613,14 @@ export declare const MenuDivider: import("react").ComponentType<Partial<{
|
|
|
614
613
|
style?: import("react").CSSProperties | undefined;
|
|
615
614
|
tabIndex?: number | undefined;
|
|
616
615
|
'aria-disabled'?: (boolean | "true" | "false") | undefined;
|
|
617
|
-
accessKey?: string | undefined;
|
|
618
616
|
color?: string | undefined;
|
|
619
617
|
lang?: string | undefined;
|
|
620
|
-
'aria-
|
|
618
|
+
'aria-modal'?: (boolean | "true" | "false") | undefined;
|
|
619
|
+
accessKey?: string | undefined;
|
|
620
|
+
'aria-hidden'?: (boolean | "true" | "false") | undefined;
|
|
621
621
|
role?: import("react").AriaRole | undefined;
|
|
622
|
-
'aria-
|
|
623
|
-
'aria-
|
|
622
|
+
'aria-label'?: string | undefined;
|
|
623
|
+
'aria-pressed'?: boolean | "true" | "false" | "mixed" | undefined;
|
|
624
624
|
draggable?: (boolean | "true" | "false") | undefined;
|
|
625
625
|
hidden?: boolean | undefined;
|
|
626
626
|
translate?: "yes" | "no" | undefined;
|
|
@@ -629,7 +629,9 @@ export declare const MenuDivider: import("react").ComponentType<Partial<{
|
|
|
629
629
|
contentEditable?: "inherit" | (boolean | "true" | "false") | undefined;
|
|
630
630
|
inputMode?: "none" | "text" | "search" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
631
631
|
nonce?: string | undefined;
|
|
632
|
-
'aria-
|
|
632
|
+
'aria-describedby'?: string | undefined;
|
|
633
|
+
'aria-selected'?: (boolean | "true" | "false") | undefined;
|
|
634
|
+
'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
|
|
633
635
|
'aria-activedescendant'?: string | undefined;
|
|
634
636
|
'aria-labelledby'?: string | undefined;
|
|
635
637
|
defaultChecked?: boolean | undefined;
|
|
@@ -666,7 +668,7 @@ export declare const MenuDivider: import("react").ComponentType<Partial<{
|
|
|
666
668
|
'aria-colindex'?: number | undefined;
|
|
667
669
|
'aria-colspan'?: number | undefined;
|
|
668
670
|
'aria-controls'?: string | undefined;
|
|
669
|
-
'aria-current'?: boolean | "true" | "time" | "
|
|
671
|
+
'aria-current'?: boolean | "true" | "time" | "false" | "page" | "step" | "location" | "date" | undefined;
|
|
670
672
|
'aria-details'?: string | undefined;
|
|
671
673
|
'aria-dropeffect'?: "none" | "link" | "copy" | "execute" | "move" | "popup" | undefined;
|
|
672
674
|
'aria-errormessage'?: string | undefined;
|
|
@@ -674,19 +676,16 @@ export declare const MenuDivider: import("react").ComponentType<Partial<{
|
|
|
674
676
|
'aria-flowto'?: string | undefined;
|
|
675
677
|
'aria-grabbed'?: (boolean | "true" | "false") | undefined;
|
|
676
678
|
'aria-haspopup'?: boolean | "true" | "dialog" | "menu" | "false" | "listbox" | "grid" | "tree" | undefined;
|
|
677
|
-
'aria-hidden'?: (boolean | "true" | "false") | undefined;
|
|
678
679
|
'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
|
|
679
680
|
'aria-keyshortcuts'?: string | undefined;
|
|
680
681
|
'aria-level'?: number | undefined;
|
|
681
682
|
'aria-live'?: "off" | "assertive" | "polite" | undefined;
|
|
682
|
-
'aria-modal'?: (boolean | "true" | "false") | undefined;
|
|
683
683
|
'aria-multiline'?: (boolean | "true" | "false") | undefined;
|
|
684
684
|
'aria-multiselectable'?: (boolean | "true" | "false") | undefined;
|
|
685
685
|
'aria-orientation'?: "horizontal" | "vertical" | undefined;
|
|
686
686
|
'aria-owns'?: string | undefined;
|
|
687
687
|
'aria-placeholder'?: string | undefined;
|
|
688
688
|
'aria-posinset'?: number | undefined;
|
|
689
|
-
'aria-pressed'?: boolean | "true" | "false" | "mixed" | undefined;
|
|
690
689
|
'aria-readonly'?: (boolean | "true" | "false") | undefined;
|
|
691
690
|
'aria-relevant'?: "text" | "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
|
|
692
691
|
'aria-required'?: (boolean | "true" | "false") | undefined;
|
|
@@ -880,22 +879,12 @@ export declare const MenuDivider: import("react").ComponentType<Partial<{
|
|
|
880
879
|
animate: (keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions | undefined) => Animation;
|
|
881
880
|
autofocus: boolean;
|
|
882
881
|
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;
|
|
893
882
|
shadowRoot: ShadowRoot;
|
|
894
|
-
readonly parentElement: HTMLElement | null;
|
|
895
883
|
readonly renderOptions: import("lit-html").RenderOptions;
|
|
884
|
+
remove: () => void;
|
|
896
885
|
readonly childNodes: NodeListOf<ChildNode>;
|
|
897
|
-
connectedCallback: () => void;
|
|
898
886
|
disconnectedCallback: () => void;
|
|
887
|
+
connectedCallback: () => void;
|
|
899
888
|
readonly renderRoot: HTMLElement | ShadowRoot;
|
|
900
889
|
isUpdatePending: boolean;
|
|
901
890
|
hasUpdated: boolean;
|
|
@@ -916,6 +905,14 @@ export declare const MenuDivider: import("react").ComponentType<Partial<{
|
|
|
916
905
|
outerText: string;
|
|
917
906
|
spellcheck: boolean;
|
|
918
907
|
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
|
+
};
|
|
919
916
|
readonly classList: DOMTokenList;
|
|
920
917
|
readonly clientHeight: number;
|
|
921
918
|
readonly clientLeft: number;
|
|
@@ -994,6 +991,7 @@ export declare const MenuDivider: import("react").ComponentType<Partial<{
|
|
|
994
991
|
readonly nodeName: string;
|
|
995
992
|
readonly nodeType: number;
|
|
996
993
|
nodeValue: string | null;
|
|
994
|
+
readonly parentElement: HTMLElement | null;
|
|
997
995
|
readonly parentNode: ParentNode | null;
|
|
998
996
|
readonly previousSibling: ChildNode | null;
|
|
999
997
|
textContent: string | null;
|
|
@@ -1029,6 +1027,7 @@ export declare const MenuDivider: import("react").ComponentType<Partial<{
|
|
|
1029
1027
|
readonly NOTATION_NODE: number;
|
|
1030
1028
|
readonly PROCESSING_INSTRUCTION_NODE: number;
|
|
1031
1029
|
readonly TEXT_NODE: number;
|
|
1030
|
+
dispatchEvent: (event: Event) => boolean;
|
|
1032
1031
|
ariaAtomic: string | null;
|
|
1033
1032
|
ariaAutoComplete: string | null;
|
|
1034
1033
|
ariaBusy: string | null;
|
|
@@ -1067,7 +1066,6 @@ export declare const MenuDivider: import("react").ComponentType<Partial<{
|
|
|
1067
1066
|
getAnimations: (options?: GetAnimationsOptions | undefined) => Animation[];
|
|
1068
1067
|
after: (...nodes: (string | Node)[]) => void;
|
|
1069
1068
|
before: (...nodes: (string | Node)[]) => void;
|
|
1070
|
-
remove: () => void;
|
|
1071
1069
|
replaceWith: (...nodes: (string | Node)[]) => void;
|
|
1072
1070
|
innerHTML: string;
|
|
1073
1071
|
readonly nextElementSibling: Element | null;
|
|
@@ -1088,6 +1086,7 @@ export declare const MenuDivider: import("react").ComponentType<Partial<{
|
|
|
1088
1086
|
<E_2 extends Element = Element>(selectors: string): NodeListOf<E_2>;
|
|
1089
1087
|
};
|
|
1090
1088
|
replaceChildren: (...nodes: (string | Node)[]) => void;
|
|
1089
|
+
readonly assignedSlot: HTMLSlotElement | null;
|
|
1091
1090
|
oncopy: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
1092
1091
|
oncut: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
1093
1092
|
onpaste: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
@@ -1195,13 +1194,14 @@ export declare const MenuGroup: import("react").ComponentType<Partial<{
|
|
|
1195
1194
|
style?: import("react").CSSProperties | undefined;
|
|
1196
1195
|
tabIndex?: number | undefined;
|
|
1197
1196
|
'aria-disabled'?: (boolean | "true" | "false") | undefined;
|
|
1198
|
-
accessKey?: string | undefined;
|
|
1199
1197
|
color?: string | undefined;
|
|
1200
1198
|
lang?: string | undefined;
|
|
1201
|
-
'aria-
|
|
1199
|
+
'aria-modal'?: (boolean | "true" | "false") | undefined;
|
|
1200
|
+
accessKey?: string | undefined;
|
|
1201
|
+
'aria-hidden'?: (boolean | "true" | "false") | undefined;
|
|
1202
1202
|
role?: import("react").AriaRole | undefined;
|
|
1203
|
-
'aria-
|
|
1204
|
-
'aria-
|
|
1203
|
+
'aria-label'?: string | undefined;
|
|
1204
|
+
'aria-pressed'?: boolean | "true" | "false" | "mixed" | undefined;
|
|
1205
1205
|
draggable?: (boolean | "true" | "false") | undefined;
|
|
1206
1206
|
hidden?: boolean | undefined;
|
|
1207
1207
|
translate?: "yes" | "no" | undefined;
|
|
@@ -1210,7 +1210,9 @@ export declare const MenuGroup: import("react").ComponentType<Partial<{
|
|
|
1210
1210
|
contentEditable?: "inherit" | (boolean | "true" | "false") | undefined;
|
|
1211
1211
|
inputMode?: "none" | "text" | "search" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
1212
1212
|
nonce?: string | undefined;
|
|
1213
|
-
'aria-
|
|
1213
|
+
'aria-describedby'?: string | undefined;
|
|
1214
|
+
'aria-selected'?: (boolean | "true" | "false") | undefined;
|
|
1215
|
+
'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
|
|
1214
1216
|
'aria-activedescendant'?: string | undefined;
|
|
1215
1217
|
'aria-labelledby'?: string | undefined;
|
|
1216
1218
|
defaultChecked?: boolean | undefined;
|
|
@@ -1247,7 +1249,7 @@ export declare const MenuGroup: import("react").ComponentType<Partial<{
|
|
|
1247
1249
|
'aria-colindex'?: number | undefined;
|
|
1248
1250
|
'aria-colspan'?: number | undefined;
|
|
1249
1251
|
'aria-controls'?: string | undefined;
|
|
1250
|
-
'aria-current'?: boolean | "true" | "time" | "
|
|
1252
|
+
'aria-current'?: boolean | "true" | "time" | "false" | "page" | "step" | "location" | "date" | undefined;
|
|
1251
1253
|
'aria-details'?: string | undefined;
|
|
1252
1254
|
'aria-dropeffect'?: "none" | "link" | "copy" | "execute" | "move" | "popup" | undefined;
|
|
1253
1255
|
'aria-errormessage'?: string | undefined;
|
|
@@ -1255,19 +1257,16 @@ export declare const MenuGroup: import("react").ComponentType<Partial<{
|
|
|
1255
1257
|
'aria-flowto'?: string | undefined;
|
|
1256
1258
|
'aria-grabbed'?: (boolean | "true" | "false") | undefined;
|
|
1257
1259
|
'aria-haspopup'?: boolean | "true" | "dialog" | "menu" | "false" | "listbox" | "grid" | "tree" | undefined;
|
|
1258
|
-
'aria-hidden'?: (boolean | "true" | "false") | undefined;
|
|
1259
1260
|
'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
|
|
1260
1261
|
'aria-keyshortcuts'?: string | undefined;
|
|
1261
1262
|
'aria-level'?: number | undefined;
|
|
1262
1263
|
'aria-live'?: "off" | "assertive" | "polite" | undefined;
|
|
1263
|
-
'aria-modal'?: (boolean | "true" | "false") | undefined;
|
|
1264
1264
|
'aria-multiline'?: (boolean | "true" | "false") | undefined;
|
|
1265
1265
|
'aria-multiselectable'?: (boolean | "true" | "false") | undefined;
|
|
1266
1266
|
'aria-orientation'?: "horizontal" | "vertical" | undefined;
|
|
1267
1267
|
'aria-owns'?: string | undefined;
|
|
1268
1268
|
'aria-placeholder'?: string | undefined;
|
|
1269
1269
|
'aria-posinset'?: number | undefined;
|
|
1270
|
-
'aria-pressed'?: boolean | "true" | "false" | "mixed" | undefined;
|
|
1271
1270
|
'aria-readonly'?: (boolean | "true" | "false") | undefined;
|
|
1272
1271
|
'aria-relevant'?: "text" | "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
|
|
1273
1272
|
'aria-required'?: (boolean | "true" | "false") | undefined;
|
|
@@ -1461,24 +1460,14 @@ export declare const MenuGroup: import("react").ComponentType<Partial<{
|
|
|
1461
1460
|
animate: (keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions | undefined) => Animation;
|
|
1462
1461
|
autofocus: boolean;
|
|
1463
1462
|
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;
|
|
1474
1463
|
shadowRoot: ShadowRoot;
|
|
1475
|
-
readonly parentElement: HTMLElement | null;
|
|
1476
1464
|
readonly renderOptions: import("lit-html").RenderOptions;
|
|
1465
|
+
remove: () => void;
|
|
1477
1466
|
readonly childNodes: NodeListOf<ChildNode>;
|
|
1478
1467
|
selected: string[];
|
|
1479
1468
|
value: string;
|
|
1480
|
-
connectedCallback: () => void;
|
|
1481
1469
|
disconnectedCallback: () => void;
|
|
1470
|
+
connectedCallback: () => void;
|
|
1482
1471
|
readonly renderRoot: HTMLElement | ShadowRoot;
|
|
1483
1472
|
isUpdatePending: boolean;
|
|
1484
1473
|
hasUpdated: boolean;
|
|
@@ -1499,6 +1488,14 @@ export declare const MenuGroup: import("react").ComponentType<Partial<{
|
|
|
1499
1488
|
outerText: string;
|
|
1500
1489
|
spellcheck: boolean;
|
|
1501
1490
|
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
|
+
};
|
|
1502
1499
|
readonly classList: DOMTokenList;
|
|
1503
1500
|
readonly clientHeight: number;
|
|
1504
1501
|
readonly clientLeft: number;
|
|
@@ -1577,6 +1574,7 @@ export declare const MenuGroup: import("react").ComponentType<Partial<{
|
|
|
1577
1574
|
readonly nodeName: string;
|
|
1578
1575
|
readonly nodeType: number;
|
|
1579
1576
|
nodeValue: string | null;
|
|
1577
|
+
readonly parentElement: HTMLElement | null;
|
|
1580
1578
|
readonly parentNode: ParentNode | null;
|
|
1581
1579
|
readonly previousSibling: ChildNode | null;
|
|
1582
1580
|
textContent: string | null;
|
|
@@ -1612,6 +1610,7 @@ export declare const MenuGroup: import("react").ComponentType<Partial<{
|
|
|
1612
1610
|
readonly NOTATION_NODE: number;
|
|
1613
1611
|
readonly PROCESSING_INSTRUCTION_NODE: number;
|
|
1614
1612
|
readonly TEXT_NODE: number;
|
|
1613
|
+
dispatchEvent: (event: Event) => boolean;
|
|
1615
1614
|
ariaAtomic: string | null;
|
|
1616
1615
|
ariaAutoComplete: string | null;
|
|
1617
1616
|
ariaBusy: string | null;
|
|
@@ -1650,7 +1649,6 @@ export declare const MenuGroup: import("react").ComponentType<Partial<{
|
|
|
1650
1649
|
getAnimations: (options?: GetAnimationsOptions | undefined) => Animation[];
|
|
1651
1650
|
after: (...nodes: (string | Node)[]) => void;
|
|
1652
1651
|
before: (...nodes: (string | Node)[]) => void;
|
|
1653
|
-
remove: () => void;
|
|
1654
1652
|
replaceWith: (...nodes: (string | Node)[]) => void;
|
|
1655
1653
|
innerHTML: string;
|
|
1656
1654
|
readonly nextElementSibling: Element | null;
|
|
@@ -1671,6 +1669,7 @@ export declare const MenuGroup: import("react").ComponentType<Partial<{
|
|
|
1671
1669
|
<E_2 extends Element = Element>(selectors: string): NodeListOf<E_2>;
|
|
1672
1670
|
};
|
|
1673
1671
|
replaceChildren: (...nodes: (string | Node)[]) => void;
|
|
1672
|
+
readonly assignedSlot: HTMLSlotElement | null;
|
|
1674
1673
|
oncopy: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
1675
1674
|
oncut: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
1676
1675
|
onpaste: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
@@ -1768,11 +1767,12 @@ export declare const MenuGroup: import("react").ComponentType<Partial<{
|
|
|
1768
1767
|
readonly dataset: DOMStringMap;
|
|
1769
1768
|
isLTR: boolean;
|
|
1770
1769
|
hasVisibleFocusInTree: () => boolean;
|
|
1771
|
-
|
|
1772
|
-
selects: "inherit" | "
|
|
1770
|
+
ignore: boolean;
|
|
1771
|
+
selects: "inherit" | "single" | "multiple" | undefined;
|
|
1773
1772
|
valueSeparator: string;
|
|
1774
1773
|
selectedItems: import("menu/src").MenuItem[];
|
|
1775
1774
|
menuSlot: HTMLSlotElement;
|
|
1775
|
+
isSubmenu: boolean;
|
|
1776
1776
|
focusedItemIndex: number;
|
|
1777
1777
|
focusInItemIndex: number;
|
|
1778
1778
|
readonly childItems: import("menu/src").MenuItem[];
|
|
@@ -1781,8 +1781,6 @@ export declare const MenuGroup: import("react").ComponentType<Partial<{
|
|
|
1781
1781
|
startListeningToKeyboard: () => void;
|
|
1782
1782
|
handleFocusout: (event: FocusEvent) => void;
|
|
1783
1783
|
stopListeningToKeyboard: () => void;
|
|
1784
|
-
handleSubmenuClosed: (event: Event) => void;
|
|
1785
|
-
handleSubmenuOpened: (event: Event) => void;
|
|
1786
1784
|
selectOrToggleItem: (targetItem: import("menu/src").MenuItem) => Promise<void>;
|
|
1787
1785
|
handleKeydown: (event: KeyboardEvent) => void;
|
|
1788
1786
|
focusMenuItemByOffset: (offset: number) => import("menu/src").MenuItem;
|
|
@@ -1801,13 +1799,14 @@ export declare const MenuItem: import("react").ComponentType<Partial<{
|
|
|
1801
1799
|
style?: import("react").CSSProperties | undefined;
|
|
1802
1800
|
tabIndex?: number | undefined;
|
|
1803
1801
|
'aria-disabled'?: (boolean | "true" | "false") | undefined;
|
|
1804
|
-
accessKey?: string | undefined;
|
|
1805
1802
|
color?: string | undefined;
|
|
1806
1803
|
lang?: string | undefined;
|
|
1807
|
-
'aria-
|
|
1804
|
+
'aria-modal'?: (boolean | "true" | "false") | undefined;
|
|
1805
|
+
accessKey?: string | undefined;
|
|
1806
|
+
'aria-hidden'?: (boolean | "true" | "false") | undefined;
|
|
1808
1807
|
role?: import("react").AriaRole | undefined;
|
|
1809
|
-
'aria-
|
|
1810
|
-
'aria-
|
|
1808
|
+
'aria-label'?: string | undefined;
|
|
1809
|
+
'aria-pressed'?: boolean | "true" | "false" | "mixed" | undefined;
|
|
1811
1810
|
draggable?: (boolean | "true" | "false") | undefined;
|
|
1812
1811
|
hidden?: boolean | undefined;
|
|
1813
1812
|
translate?: "yes" | "no" | undefined;
|
|
@@ -1816,7 +1815,9 @@ export declare const MenuItem: import("react").ComponentType<Partial<{
|
|
|
1816
1815
|
contentEditable?: "inherit" | (boolean | "true" | "false") | undefined;
|
|
1817
1816
|
inputMode?: "none" | "text" | "search" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
1818
1817
|
nonce?: string | undefined;
|
|
1819
|
-
'aria-
|
|
1818
|
+
'aria-describedby'?: string | undefined;
|
|
1819
|
+
'aria-selected'?: (boolean | "true" | "false") | undefined;
|
|
1820
|
+
'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
|
|
1820
1821
|
'aria-activedescendant'?: string | undefined;
|
|
1821
1822
|
'aria-labelledby'?: string | undefined;
|
|
1822
1823
|
defaultChecked?: boolean | undefined;
|
|
@@ -1853,7 +1854,7 @@ export declare const MenuItem: import("react").ComponentType<Partial<{
|
|
|
1853
1854
|
'aria-colindex'?: number | undefined;
|
|
1854
1855
|
'aria-colspan'?: number | undefined;
|
|
1855
1856
|
'aria-controls'?: string | undefined;
|
|
1856
|
-
'aria-current'?: boolean | "true" | "time" | "
|
|
1857
|
+
'aria-current'?: boolean | "true" | "time" | "false" | "page" | "step" | "location" | "date" | undefined;
|
|
1857
1858
|
'aria-details'?: string | undefined;
|
|
1858
1859
|
'aria-dropeffect'?: "none" | "link" | "copy" | "execute" | "move" | "popup" | undefined;
|
|
1859
1860
|
'aria-errormessage'?: string | undefined;
|
|
@@ -1861,19 +1862,16 @@ export declare const MenuItem: import("react").ComponentType<Partial<{
|
|
|
1861
1862
|
'aria-flowto'?: string | undefined;
|
|
1862
1863
|
'aria-grabbed'?: (boolean | "true" | "false") | undefined;
|
|
1863
1864
|
'aria-haspopup'?: boolean | "true" | "dialog" | "menu" | "false" | "listbox" | "grid" | "tree" | undefined;
|
|
1864
|
-
'aria-hidden'?: (boolean | "true" | "false") | undefined;
|
|
1865
1865
|
'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
|
|
1866
1866
|
'aria-keyshortcuts'?: string | undefined;
|
|
1867
1867
|
'aria-level'?: number | undefined;
|
|
1868
1868
|
'aria-live'?: "off" | "assertive" | "polite" | undefined;
|
|
1869
|
-
'aria-modal'?: (boolean | "true" | "false") | undefined;
|
|
1870
1869
|
'aria-multiline'?: (boolean | "true" | "false") | undefined;
|
|
1871
1870
|
'aria-multiselectable'?: (boolean | "true" | "false") | undefined;
|
|
1872
1871
|
'aria-orientation'?: "horizontal" | "vertical" | undefined;
|
|
1873
1872
|
'aria-owns'?: string | undefined;
|
|
1874
1873
|
'aria-placeholder'?: string | undefined;
|
|
1875
1874
|
'aria-posinset'?: number | undefined;
|
|
1876
|
-
'aria-pressed'?: boolean | "true" | "false" | "mixed" | undefined;
|
|
1877
1875
|
'aria-readonly'?: (boolean | "true" | "false") | undefined;
|
|
1878
1876
|
'aria-relevant'?: "text" | "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
|
|
1879
1877
|
'aria-required'?: (boolean | "true" | "false") | undefined;
|
|
@@ -2072,46 +2070,16 @@ export declare const MenuItem: import("react").ComponentType<Partial<{
|
|
|
2072
2070
|
disabled: boolean;
|
|
2073
2071
|
autofocus: boolean;
|
|
2074
2072
|
normalize: () => void;
|
|
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
|
-
};
|
|
2084
|
-
open: boolean;
|
|
2085
|
-
readonly assignedSlot: HTMLSlotElement | null;
|
|
2086
2073
|
shadowRoot: ShadowRoot;
|
|
2087
|
-
|
|
2074
|
+
open: boolean;
|
|
2088
2075
|
readonly renderOptions: import("lit-html").RenderOptions;
|
|
2089
|
-
readonly childNodes: NodeListOf<ChildNode>;
|
|
2090
2076
|
active: boolean;
|
|
2091
|
-
|
|
2077
|
+
remove: () => void;
|
|
2078
|
+
readonly childNodes: NodeListOf<ChildNode>;
|
|
2092
2079
|
selected: boolean;
|
|
2093
2080
|
value: string;
|
|
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;
|
|
2104
|
-
connectedCallback: () => void;
|
|
2105
|
-
_parentElement: HTMLElement;
|
|
2106
2081
|
disconnectedCallback: () => void;
|
|
2107
|
-
|
|
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
|
-
};
|
|
2082
|
+
connectedCallback: () => void;
|
|
2115
2083
|
readonly renderRoot: HTMLElement | ShadowRoot;
|
|
2116
2084
|
isUpdatePending: boolean;
|
|
2117
2085
|
hasUpdated: boolean;
|
|
@@ -2132,6 +2100,14 @@ export declare const MenuItem: import("react").ComponentType<Partial<{
|
|
|
2132
2100
|
outerText: string;
|
|
2133
2101
|
spellcheck: boolean;
|
|
2134
2102
|
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
|
+
};
|
|
2135
2111
|
readonly classList: DOMTokenList;
|
|
2136
2112
|
readonly clientHeight: number;
|
|
2137
2113
|
readonly clientLeft: number;
|
|
@@ -2210,6 +2186,7 @@ export declare const MenuItem: import("react").ComponentType<Partial<{
|
|
|
2210
2186
|
readonly nodeName: string;
|
|
2211
2187
|
readonly nodeType: number;
|
|
2212
2188
|
nodeValue: string | null;
|
|
2189
|
+
readonly parentElement: HTMLElement | null;
|
|
2213
2190
|
readonly parentNode: ParentNode | null;
|
|
2214
2191
|
readonly previousSibling: ChildNode | null;
|
|
2215
2192
|
textContent: string | null;
|
|
@@ -2245,6 +2222,7 @@ export declare const MenuItem: import("react").ComponentType<Partial<{
|
|
|
2245
2222
|
readonly NOTATION_NODE: number;
|
|
2246
2223
|
readonly PROCESSING_INSTRUCTION_NODE: number;
|
|
2247
2224
|
readonly TEXT_NODE: number;
|
|
2225
|
+
dispatchEvent: (event: Event) => boolean;
|
|
2248
2226
|
ariaAtomic: string | null;
|
|
2249
2227
|
ariaAutoComplete: string | null;
|
|
2250
2228
|
ariaBusy: string | null;
|
|
@@ -2283,7 +2261,6 @@ export declare const MenuItem: import("react").ComponentType<Partial<{
|
|
|
2283
2261
|
getAnimations: (options?: GetAnimationsOptions | undefined) => Animation[];
|
|
2284
2262
|
after: (...nodes: (string | Node)[]) => void;
|
|
2285
2263
|
before: (...nodes: (string | Node)[]) => void;
|
|
2286
|
-
remove: () => void;
|
|
2287
2264
|
replaceWith: (...nodes: (string | Node)[]) => void;
|
|
2288
2265
|
innerHTML: string;
|
|
2289
2266
|
readonly nextElementSibling: Element | null;
|
|
@@ -2304,6 +2281,7 @@ export declare const MenuItem: import("react").ComponentType<Partial<{
|
|
|
2304
2281
|
<E_2 extends Element = Element>(selectors: string): NodeListOf<E_2>;
|
|
2305
2282
|
};
|
|
2306
2283
|
replaceChildren: (...nodes: (string | Node)[]) => void;
|
|
2284
|
+
readonly assignedSlot: HTMLSlotElement | null;
|
|
2307
2285
|
oncopy: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
2308
2286
|
oncut: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
2309
2287
|
onpaste: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
@@ -2401,6 +2379,22 @@ export declare const MenuItem: import("react").ComponentType<Partial<{
|
|
|
2401
2379
|
readonly dataset: DOMStringMap;
|
|
2402
2380
|
isLTR: boolean;
|
|
2403
2381
|
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
|
+
};
|
|
2404
2398
|
renderAnchor: (options: {
|
|
2405
2399
|
id: string;
|
|
2406
2400
|
className?: string | undefined;
|
|
@@ -2411,4 +2405,5 @@ export declare const MenuItem: import("react").ComponentType<Partial<{
|
|
|
2411
2405
|
}) => import("lit-html").TemplateResult<2 | 1>;
|
|
2412
2406
|
} & {
|
|
2413
2407
|
spMenuItemAdded: (e: Event) => void;
|
|
2408
|
+
spMenuItemRemoved: (e: Event) => void;
|
|
2414
2409
|
}> & import("react").RefAttributes<import("menu/src").MenuItem>>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@swc-react/menu",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.33.0",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
],
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@lit-labs/react": "^1.1.1",
|
|
33
|
-
"@spectrum-web-components/menu": "^0.
|
|
33
|
+
"@spectrum-web-components/menu": "^0.33.0"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
36
|
"next": "~13.4"
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
"optional": true
|
|
41
41
|
}
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "0f46cf0508f39ec42ce8c52b1e6f0055bacb4f00"
|
|
44
44
|
}
|