@swc-react/menu 0.35.0 → 0.35.1-rc.15

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 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 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;",
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 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"}});
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 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",
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
@@ -3,35 +3,31 @@
3
3
  export declare const Menu: import("react").ComponentType<Partial<{
4
4
  dir?: string | undefined;
5
5
  'aria-hidden'?: (boolean | "true" | "false") | undefined;
6
- title?: string | undefined;
7
- rel?: string | undefined;
8
- id?: string | undefined;
9
- className?: string | undefined;
10
- slot?: string | undefined;
11
- style?: import("react").CSSProperties | undefined;
12
- tabIndex?: number | undefined;
13
- 'aria-disabled'?: (boolean | "true" | "false") | undefined;
14
- color?: string | undefined;
15
- lang?: string | undefined;
16
- 'aria-modal'?: (boolean | "true" | "false") | undefined;
17
6
  accessKey?: string | undefined;
18
- role?: import("react").AriaRole | undefined;
19
- 'aria-label'?: string | undefined;
20
- 'aria-haspopup'?: boolean | "true" | "dialog" | "menu" | "false" | "listbox" | "grid" | "tree" | undefined;
21
- 'aria-expanded'?: (boolean | "true" | "false") | undefined;
22
- 'aria-pressed'?: boolean | "true" | "false" | "mixed" | undefined;
23
7
  draggable?: (boolean | "true" | "false") | undefined;
24
8
  hidden?: boolean | undefined;
9
+ lang?: string | undefined;
10
+ title?: string | undefined;
25
11
  translate?: "yes" | "no" | undefined;
12
+ className?: string | undefined;
13
+ id?: string | undefined;
26
14
  prefix?: string | undefined;
15
+ slot?: string | undefined;
27
16
  children?: import("react").ReactNode;
17
+ style?: import("react").CSSProperties | undefined;
28
18
  contentEditable?: "inherit" | (boolean | "true" | "false") | undefined;
29
19
  inputMode?: "search" | "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
30
20
  nonce?: string | undefined;
21
+ tabIndex?: number | undefined;
22
+ rel?: string | undefined;
23
+ 'aria-disabled'?: (boolean | "true" | "false") | undefined;
31
24
  'aria-describedby'?: string | undefined;
32
- 'aria-controls'?: string | undefined;
25
+ 'aria-haspopup'?: boolean | "true" | "dialog" | "menu" | "false" | "listbox" | "tree" | "grid" | undefined;
26
+ 'aria-expanded'?: (boolean | "true" | "false") | undefined;
27
+ role?: import("react").AriaRole | undefined;
33
28
  'aria-selected'?: (boolean | "true" | "false") | undefined;
34
29
  'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
30
+ 'aria-label'?: string | undefined;
35
31
  'aria-activedescendant'?: string | undefined;
36
32
  'aria-labelledby'?: string | undefined;
37
33
  defaultChecked?: boolean | undefined;
@@ -55,6 +51,7 @@ export declare const Menu: import("react").ComponentType<Partial<{
55
51
  autoCapitalize?: string | undefined;
56
52
  autoCorrect?: string | undefined;
57
53
  autoSave?: string | undefined;
54
+ color?: string | undefined;
58
55
  itemProp?: string | undefined;
59
56
  itemScope?: boolean | undefined;
60
57
  itemType?: string | undefined;
@@ -73,7 +70,8 @@ export declare const Menu: import("react").ComponentType<Partial<{
73
70
  'aria-colindex'?: number | undefined;
74
71
  'aria-colindextext'?: string | undefined;
75
72
  'aria-colspan'?: number | undefined;
76
- 'aria-current'?: boolean | "true" | "time" | "false" | "page" | "step" | "location" | "date" | undefined;
73
+ 'aria-controls'?: string | undefined;
74
+ 'aria-current'?: boolean | "true" | "time" | "page" | "false" | "step" | "location" | "date" | undefined;
77
75
  'aria-description'?: string | undefined;
78
76
  'aria-details'?: string | undefined;
79
77
  'aria-dropeffect'?: "link" | "none" | "copy" | "execute" | "move" | "popup" | undefined;
@@ -84,12 +82,14 @@ export declare const Menu: import("react").ComponentType<Partial<{
84
82
  'aria-keyshortcuts'?: string | undefined;
85
83
  'aria-level'?: number | undefined;
86
84
  'aria-live'?: "off" | "assertive" | "polite" | undefined;
85
+ 'aria-modal'?: (boolean | "true" | "false") | undefined;
87
86
  'aria-multiline'?: (boolean | "true" | "false") | undefined;
88
87
  'aria-multiselectable'?: (boolean | "true" | "false") | undefined;
89
88
  'aria-orientation'?: "horizontal" | "vertical" | undefined;
90
89
  'aria-owns'?: string | undefined;
91
90
  'aria-placeholder'?: string | undefined;
92
91
  'aria-posinset'?: number | undefined;
92
+ 'aria-pressed'?: boolean | "true" | "false" | "mixed" | undefined;
93
93
  'aria-readonly'?: (boolean | "true" | "false") | undefined;
94
94
  'aria-relevant'?: "text" | "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
95
95
  'aria-required'?: (boolean | "true" | "false") | undefined;
@@ -281,22 +281,13 @@ export declare const Menu: import("react").ComponentType<Partial<{
281
281
  (options?: ScrollToOptions | undefined): void;
282
282
  (x: number, y: number): void;
283
283
  };
284
- ariaHidden: string | null;
285
- animate: (keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions | undefined) => Animation;
286
- autofocus: boolean;
287
- shadowRoot: ShadowRoot;
288
- readonly renderOptions: import("lit-html").RenderOptions;
289
- remove: () => void;
290
- readonly childNodes: NodeListOf<ChildNode>;
291
- selected: string[];
292
- value: string;
293
- disconnectedCallback: () => void;
294
- connectedCallback: () => void;
295
284
  readonly renderRoot: HTMLElement | ShadowRoot;
296
285
  isUpdatePending: boolean;
297
286
  hasUpdated: boolean;
298
287
  addController: (controller: import("lit").ReactiveController) => void;
299
288
  removeController: (controller: import("lit").ReactiveController) => void;
289
+ connectedCallback: () => void;
290
+ disconnectedCallback: () => void;
300
291
  attributeChangedCallback: (name: string, _old: string | null, value: string | null) => void;
301
292
  requestUpdate: (name?: PropertyKey | undefined, oldValue?: unknown, options?: import("lit").PropertyDeclaration<unknown, unknown> | undefined) => void;
302
293
  readonly updateComplete: Promise<boolean>;
@@ -335,6 +326,7 @@ export declare const Menu: import("react").ComponentType<Partial<{
335
326
  scrollLeft: number;
336
327
  scrollTop: number;
337
328
  readonly scrollWidth: number;
329
+ shadowRoot: ShadowRoot;
338
330
  readonly tagName: string;
339
331
  attachShadow: (init: ShadowRootInit) => ShadowRoot;
340
332
  closest: {
@@ -391,6 +383,7 @@ export declare const Menu: import("react").ComponentType<Partial<{
391
383
  toggleAttribute: (qualifiedName: string, force?: boolean | undefined) => boolean;
392
384
  webkitMatchesSelector: (selectors: string) => boolean;
393
385
  readonly baseURI: string;
386
+ readonly childNodes: NodeListOf<ChildNode>;
394
387
  readonly firstChild: ChildNode | null;
395
388
  readonly isConnected: boolean;
396
389
  readonly lastChild: ChildNode | null;
@@ -446,6 +439,7 @@ export declare const Menu: import("react").ComponentType<Partial<{
446
439
  ariaDisabled: string | null;
447
440
  ariaExpanded: string | null;
448
441
  ariaHasPopup: string | null;
442
+ ariaHidden: string | null;
449
443
  ariaKeyShortcuts: string | null;
450
444
  ariaLabel: string | null;
451
445
  ariaLevel: string | null;
@@ -470,9 +464,11 @@ export declare const Menu: import("react").ComponentType<Partial<{
470
464
  ariaValueMin: string | null;
471
465
  ariaValueNow: string | null;
472
466
  ariaValueText: string | null;
467
+ animate: (keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions | undefined) => Animation;
473
468
  getAnimations: (options?: GetAnimationsOptions | undefined) => Animation[];
474
469
  after: (...nodes: (string | Node)[]) => void;
475
470
  before: (...nodes: (string | Node)[]) => void;
471
+ remove: () => void;
476
472
  replaceWith: (...nodes: (string | Node)[]) => void;
477
473
  innerHTML: string;
478
474
  readonly nextElementSibling: Element | null;
@@ -588,15 +584,19 @@ export declare const Menu: import("react").ComponentType<Partial<{
588
584
  onwebkitanimationstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
589
585
  onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
590
586
  onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
587
+ autofocus: boolean;
591
588
  readonly dataset: DOMStringMap;
589
+ readonly renderOptions: import("lit-html").RenderOptions;
590
+ selected: string[];
591
+ value: string;
592
592
  isLTR: boolean;
593
593
  hasVisibleFocusInTree: () => boolean;
594
+ closeDescendentOverlays: () => void;
594
595
  ignore: boolean;
595
- selects: "inherit" | "single" | "multiple" | undefined;
596
+ selects: "inherit" | "multiple" | "single" | undefined;
596
597
  valueSeparator: string;
597
598
  selectedItems: import("menu/src").MenuItem[];
598
599
  menuSlot: HTMLSlotElement;
599
- isSubmenu: boolean;
600
600
  focusedItemIndex: number;
601
601
  focusInItemIndex: number;
602
602
  readonly childItems: import("menu/src").MenuItem[];
@@ -605,6 +605,8 @@ export declare const Menu: import("react").ComponentType<Partial<{
605
605
  startListeningToKeyboard: () => void;
606
606
  handleFocusout: (event: FocusEvent) => void;
607
607
  stopListeningToKeyboard: () => void;
608
+ handleSubmenuClosed: (event: Event) => void;
609
+ handleSubmenuOpened: (event: Event) => void;
608
610
  selectOrToggleItem: (targetItem: import("menu/src").MenuItem) => Promise<void>;
609
611
  handleKeydown: (event: KeyboardEvent) => void;
610
612
  focusMenuItemByOffset: (offset: number) => import("menu/src").MenuItem;
@@ -617,35 +619,31 @@ export declare const Menu: import("react").ComponentType<Partial<{
617
619
  export declare const MenuDivider: import("react").ComponentType<Partial<{
618
620
  dir?: string | undefined;
619
621
  'aria-hidden'?: (boolean | "true" | "false") | undefined;
620
- title?: string | undefined;
621
- rel?: string | undefined;
622
- id?: string | undefined;
623
- className?: string | undefined;
624
- slot?: string | undefined;
625
- style?: import("react").CSSProperties | undefined;
626
- tabIndex?: number | undefined;
627
- 'aria-disabled'?: (boolean | "true" | "false") | undefined;
628
- color?: string | undefined;
629
- lang?: string | undefined;
630
- 'aria-modal'?: (boolean | "true" | "false") | undefined;
631
622
  accessKey?: string | undefined;
632
- role?: import("react").AriaRole | undefined;
633
- 'aria-label'?: string | undefined;
634
- 'aria-haspopup'?: boolean | "true" | "dialog" | "menu" | "false" | "listbox" | "grid" | "tree" | undefined;
635
- 'aria-expanded'?: (boolean | "true" | "false") | undefined;
636
- 'aria-pressed'?: boolean | "true" | "false" | "mixed" | undefined;
637
623
  draggable?: (boolean | "true" | "false") | undefined;
638
624
  hidden?: boolean | undefined;
625
+ lang?: string | undefined;
626
+ title?: string | undefined;
639
627
  translate?: "yes" | "no" | undefined;
628
+ className?: string | undefined;
629
+ id?: string | undefined;
640
630
  prefix?: string | undefined;
631
+ slot?: string | undefined;
641
632
  children?: import("react").ReactNode;
633
+ style?: import("react").CSSProperties | undefined;
642
634
  contentEditable?: "inherit" | (boolean | "true" | "false") | undefined;
643
635
  inputMode?: "search" | "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
644
636
  nonce?: string | undefined;
637
+ tabIndex?: number | undefined;
638
+ rel?: string | undefined;
639
+ 'aria-disabled'?: (boolean | "true" | "false") | undefined;
645
640
  'aria-describedby'?: string | undefined;
646
- 'aria-controls'?: string | undefined;
641
+ 'aria-haspopup'?: boolean | "true" | "dialog" | "menu" | "false" | "listbox" | "tree" | "grid" | undefined;
642
+ 'aria-expanded'?: (boolean | "true" | "false") | undefined;
643
+ role?: import("react").AriaRole | undefined;
647
644
  'aria-selected'?: (boolean | "true" | "false") | undefined;
648
645
  'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
646
+ 'aria-label'?: string | undefined;
649
647
  'aria-activedescendant'?: string | undefined;
650
648
  'aria-labelledby'?: string | undefined;
651
649
  defaultChecked?: boolean | undefined;
@@ -669,6 +667,7 @@ export declare const MenuDivider: import("react").ComponentType<Partial<{
669
667
  autoCapitalize?: string | undefined;
670
668
  autoCorrect?: string | undefined;
671
669
  autoSave?: string | undefined;
670
+ color?: string | undefined;
672
671
  itemProp?: string | undefined;
673
672
  itemScope?: boolean | undefined;
674
673
  itemType?: string | undefined;
@@ -687,7 +686,8 @@ export declare const MenuDivider: import("react").ComponentType<Partial<{
687
686
  'aria-colindex'?: number | undefined;
688
687
  'aria-colindextext'?: string | undefined;
689
688
  'aria-colspan'?: number | undefined;
690
- 'aria-current'?: boolean | "true" | "time" | "false" | "page" | "step" | "location" | "date" | undefined;
689
+ 'aria-controls'?: string | undefined;
690
+ 'aria-current'?: boolean | "true" | "time" | "page" | "false" | "step" | "location" | "date" | undefined;
691
691
  'aria-description'?: string | undefined;
692
692
  'aria-details'?: string | undefined;
693
693
  'aria-dropeffect'?: "link" | "none" | "copy" | "execute" | "move" | "popup" | undefined;
@@ -698,12 +698,14 @@ export declare const MenuDivider: import("react").ComponentType<Partial<{
698
698
  'aria-keyshortcuts'?: string | undefined;
699
699
  'aria-level'?: number | undefined;
700
700
  'aria-live'?: "off" | "assertive" | "polite" | undefined;
701
+ 'aria-modal'?: (boolean | "true" | "false") | undefined;
701
702
  'aria-multiline'?: (boolean | "true" | "false") | undefined;
702
703
  'aria-multiselectable'?: (boolean | "true" | "false") | undefined;
703
704
  'aria-orientation'?: "horizontal" | "vertical" | undefined;
704
705
  'aria-owns'?: string | undefined;
705
706
  'aria-placeholder'?: string | undefined;
706
707
  'aria-posinset'?: number | undefined;
708
+ 'aria-pressed'?: boolean | "true" | "false" | "mixed" | undefined;
707
709
  'aria-readonly'?: (boolean | "true" | "false") | undefined;
708
710
  'aria-relevant'?: "text" | "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
709
711
  'aria-required'?: (boolean | "true" | "false") | undefined;
@@ -895,20 +897,13 @@ export declare const MenuDivider: import("react").ComponentType<Partial<{
895
897
  (options?: ScrollToOptions | undefined): void;
896
898
  (x: number, y: number): void;
897
899
  };
898
- ariaHidden: string | null;
899
- animate: (keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions | undefined) => Animation;
900
- autofocus: boolean;
901
- shadowRoot: ShadowRoot;
902
- readonly renderOptions: import("lit-html").RenderOptions;
903
- remove: () => void;
904
- readonly childNodes: NodeListOf<ChildNode>;
905
- disconnectedCallback: () => void;
906
- connectedCallback: () => void;
907
900
  readonly renderRoot: HTMLElement | ShadowRoot;
908
901
  isUpdatePending: boolean;
909
902
  hasUpdated: boolean;
910
903
  addController: (controller: import("lit").ReactiveController) => void;
911
904
  removeController: (controller: import("lit").ReactiveController) => void;
905
+ connectedCallback: () => void;
906
+ disconnectedCallback: () => void;
912
907
  attributeChangedCallback: (name: string, _old: string | null, value: string | null) => void;
913
908
  requestUpdate: (name?: PropertyKey | undefined, oldValue?: unknown, options?: import("lit").PropertyDeclaration<unknown, unknown> | undefined) => void;
914
909
  readonly updateComplete: Promise<boolean>;
@@ -947,6 +942,7 @@ export declare const MenuDivider: import("react").ComponentType<Partial<{
947
942
  scrollLeft: number;
948
943
  scrollTop: number;
949
944
  readonly scrollWidth: number;
945
+ shadowRoot: ShadowRoot;
950
946
  readonly tagName: string;
951
947
  attachShadow: (init: ShadowRootInit) => ShadowRoot;
952
948
  closest: {
@@ -1003,6 +999,7 @@ export declare const MenuDivider: import("react").ComponentType<Partial<{
1003
999
  toggleAttribute: (qualifiedName: string, force?: boolean | undefined) => boolean;
1004
1000
  webkitMatchesSelector: (selectors: string) => boolean;
1005
1001
  readonly baseURI: string;
1002
+ readonly childNodes: NodeListOf<ChildNode>;
1006
1003
  readonly firstChild: ChildNode | null;
1007
1004
  readonly isConnected: boolean;
1008
1005
  readonly lastChild: ChildNode | null;
@@ -1058,6 +1055,7 @@ export declare const MenuDivider: import("react").ComponentType<Partial<{
1058
1055
  ariaDisabled: string | null;
1059
1056
  ariaExpanded: string | null;
1060
1057
  ariaHasPopup: string | null;
1058
+ ariaHidden: string | null;
1061
1059
  ariaKeyShortcuts: string | null;
1062
1060
  ariaLabel: string | null;
1063
1061
  ariaLevel: string | null;
@@ -1082,9 +1080,11 @@ export declare const MenuDivider: import("react").ComponentType<Partial<{
1082
1080
  ariaValueMin: string | null;
1083
1081
  ariaValueNow: string | null;
1084
1082
  ariaValueText: string | null;
1083
+ animate: (keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions | undefined) => Animation;
1085
1084
  getAnimations: (options?: GetAnimationsOptions | undefined) => Animation[];
1086
1085
  after: (...nodes: (string | Node)[]) => void;
1087
1086
  before: (...nodes: (string | Node)[]) => void;
1087
+ remove: () => void;
1088
1088
  replaceWith: (...nodes: (string | Node)[]) => void;
1089
1089
  innerHTML: string;
1090
1090
  readonly nextElementSibling: Element | null;
@@ -1200,42 +1200,40 @@ export declare const MenuDivider: import("react").ComponentType<Partial<{
1200
1200
  onwebkitanimationstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
1201
1201
  onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
1202
1202
  onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
1203
+ autofocus: boolean;
1203
1204
  readonly dataset: DOMStringMap;
1205
+ readonly renderOptions: import("lit-html").RenderOptions;
1204
1206
  isLTR: boolean;
1205
1207
  hasVisibleFocusInTree: () => boolean;
1206
1208
  } & {}> & import("react").RefAttributes<import("menu/src").MenuDivider>>;
1207
1209
  export declare const MenuGroup: import("react").ComponentType<Partial<{
1208
1210
  dir?: string | undefined;
1209
1211
  'aria-hidden'?: (boolean | "true" | "false") | undefined;
1210
- title?: string | undefined;
1211
- rel?: string | undefined;
1212
- id?: string | undefined;
1213
- className?: string | undefined;
1214
- slot?: string | undefined;
1215
- style?: import("react").CSSProperties | undefined;
1216
- tabIndex?: number | undefined;
1217
- 'aria-disabled'?: (boolean | "true" | "false") | undefined;
1218
- color?: string | undefined;
1219
- lang?: string | undefined;
1220
- 'aria-modal'?: (boolean | "true" | "false") | undefined;
1221
1212
  accessKey?: string | undefined;
1222
- role?: import("react").AriaRole | undefined;
1223
- 'aria-label'?: string | undefined;
1224
- 'aria-haspopup'?: boolean | "true" | "dialog" | "menu" | "false" | "listbox" | "grid" | "tree" | undefined;
1225
- 'aria-expanded'?: (boolean | "true" | "false") | undefined;
1226
- 'aria-pressed'?: boolean | "true" | "false" | "mixed" | undefined;
1227
1213
  draggable?: (boolean | "true" | "false") | undefined;
1228
1214
  hidden?: boolean | undefined;
1215
+ lang?: string | undefined;
1216
+ title?: string | undefined;
1229
1217
  translate?: "yes" | "no" | undefined;
1218
+ className?: string | undefined;
1219
+ id?: string | undefined;
1230
1220
  prefix?: string | undefined;
1221
+ slot?: string | undefined;
1231
1222
  children?: import("react").ReactNode;
1223
+ style?: import("react").CSSProperties | undefined;
1232
1224
  contentEditable?: "inherit" | (boolean | "true" | "false") | undefined;
1233
1225
  inputMode?: "search" | "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
1234
1226
  nonce?: string | undefined;
1227
+ tabIndex?: number | undefined;
1228
+ rel?: string | undefined;
1229
+ 'aria-disabled'?: (boolean | "true" | "false") | undefined;
1235
1230
  'aria-describedby'?: string | undefined;
1236
- 'aria-controls'?: string | undefined;
1231
+ 'aria-haspopup'?: boolean | "true" | "dialog" | "menu" | "false" | "listbox" | "tree" | "grid" | undefined;
1232
+ 'aria-expanded'?: (boolean | "true" | "false") | undefined;
1233
+ role?: import("react").AriaRole | undefined;
1237
1234
  'aria-selected'?: (boolean | "true" | "false") | undefined;
1238
1235
  'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
1236
+ 'aria-label'?: string | undefined;
1239
1237
  'aria-activedescendant'?: string | undefined;
1240
1238
  'aria-labelledby'?: string | undefined;
1241
1239
  defaultChecked?: boolean | undefined;
@@ -1259,6 +1257,7 @@ export declare const MenuGroup: import("react").ComponentType<Partial<{
1259
1257
  autoCapitalize?: string | undefined;
1260
1258
  autoCorrect?: string | undefined;
1261
1259
  autoSave?: string | undefined;
1260
+ color?: string | undefined;
1262
1261
  itemProp?: string | undefined;
1263
1262
  itemScope?: boolean | undefined;
1264
1263
  itemType?: string | undefined;
@@ -1277,7 +1276,8 @@ export declare const MenuGroup: import("react").ComponentType<Partial<{
1277
1276
  'aria-colindex'?: number | undefined;
1278
1277
  'aria-colindextext'?: string | undefined;
1279
1278
  'aria-colspan'?: number | undefined;
1280
- 'aria-current'?: boolean | "true" | "time" | "false" | "page" | "step" | "location" | "date" | undefined;
1279
+ 'aria-controls'?: string | undefined;
1280
+ 'aria-current'?: boolean | "true" | "time" | "page" | "false" | "step" | "location" | "date" | undefined;
1281
1281
  'aria-description'?: string | undefined;
1282
1282
  'aria-details'?: string | undefined;
1283
1283
  'aria-dropeffect'?: "link" | "none" | "copy" | "execute" | "move" | "popup" | undefined;
@@ -1288,12 +1288,14 @@ export declare const MenuGroup: import("react").ComponentType<Partial<{
1288
1288
  'aria-keyshortcuts'?: string | undefined;
1289
1289
  'aria-level'?: number | undefined;
1290
1290
  'aria-live'?: "off" | "assertive" | "polite" | undefined;
1291
+ 'aria-modal'?: (boolean | "true" | "false") | undefined;
1291
1292
  'aria-multiline'?: (boolean | "true" | "false") | undefined;
1292
1293
  'aria-multiselectable'?: (boolean | "true" | "false") | undefined;
1293
1294
  'aria-orientation'?: "horizontal" | "vertical" | undefined;
1294
1295
  'aria-owns'?: string | undefined;
1295
1296
  'aria-placeholder'?: string | undefined;
1296
1297
  'aria-posinset'?: number | undefined;
1298
+ 'aria-pressed'?: boolean | "true" | "false" | "mixed" | undefined;
1297
1299
  'aria-readonly'?: (boolean | "true" | "false") | undefined;
1298
1300
  'aria-relevant'?: "text" | "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
1299
1301
  'aria-required'?: (boolean | "true" | "false") | undefined;
@@ -1485,22 +1487,13 @@ export declare const MenuGroup: import("react").ComponentType<Partial<{
1485
1487
  (options?: ScrollToOptions | undefined): void;
1486
1488
  (x: number, y: number): void;
1487
1489
  };
1488
- ariaHidden: string | null;
1489
- animate: (keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions | undefined) => Animation;
1490
- autofocus: boolean;
1491
- shadowRoot: ShadowRoot;
1492
- readonly renderOptions: import("lit-html").RenderOptions;
1493
- remove: () => void;
1494
- readonly childNodes: NodeListOf<ChildNode>;
1495
- selected: string[];
1496
- value: string;
1497
- disconnectedCallback: () => void;
1498
- connectedCallback: () => void;
1499
1490
  readonly renderRoot: HTMLElement | ShadowRoot;
1500
1491
  isUpdatePending: boolean;
1501
1492
  hasUpdated: boolean;
1502
1493
  addController: (controller: import("lit").ReactiveController) => void;
1503
1494
  removeController: (controller: import("lit").ReactiveController) => void;
1495
+ connectedCallback: () => void;
1496
+ disconnectedCallback: () => void;
1504
1497
  attributeChangedCallback: (name: string, _old: string | null, value: string | null) => void;
1505
1498
  requestUpdate: (name?: PropertyKey | undefined, oldValue?: unknown, options?: import("lit").PropertyDeclaration<unknown, unknown> | undefined) => void;
1506
1499
  readonly updateComplete: Promise<boolean>;
@@ -1539,6 +1532,7 @@ export declare const MenuGroup: import("react").ComponentType<Partial<{
1539
1532
  scrollLeft: number;
1540
1533
  scrollTop: number;
1541
1534
  readonly scrollWidth: number;
1535
+ shadowRoot: ShadowRoot;
1542
1536
  readonly tagName: string;
1543
1537
  attachShadow: (init: ShadowRootInit) => ShadowRoot;
1544
1538
  closest: {
@@ -1595,6 +1589,7 @@ export declare const MenuGroup: import("react").ComponentType<Partial<{
1595
1589
  toggleAttribute: (qualifiedName: string, force?: boolean | undefined) => boolean;
1596
1590
  webkitMatchesSelector: (selectors: string) => boolean;
1597
1591
  readonly baseURI: string;
1592
+ readonly childNodes: NodeListOf<ChildNode>;
1598
1593
  readonly firstChild: ChildNode | null;
1599
1594
  readonly isConnected: boolean;
1600
1595
  readonly lastChild: ChildNode | null;
@@ -1650,6 +1645,7 @@ export declare const MenuGroup: import("react").ComponentType<Partial<{
1650
1645
  ariaDisabled: string | null;
1651
1646
  ariaExpanded: string | null;
1652
1647
  ariaHasPopup: string | null;
1648
+ ariaHidden: string | null;
1653
1649
  ariaKeyShortcuts: string | null;
1654
1650
  ariaLabel: string | null;
1655
1651
  ariaLevel: string | null;
@@ -1674,9 +1670,11 @@ export declare const MenuGroup: import("react").ComponentType<Partial<{
1674
1670
  ariaValueMin: string | null;
1675
1671
  ariaValueNow: string | null;
1676
1672
  ariaValueText: string | null;
1673
+ animate: (keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions | undefined) => Animation;
1677
1674
  getAnimations: (options?: GetAnimationsOptions | undefined) => Animation[];
1678
1675
  after: (...nodes: (string | Node)[]) => void;
1679
1676
  before: (...nodes: (string | Node)[]) => void;
1677
+ remove: () => void;
1680
1678
  replaceWith: (...nodes: (string | Node)[]) => void;
1681
1679
  innerHTML: string;
1682
1680
  readonly nextElementSibling: Element | null;
@@ -1792,15 +1790,19 @@ export declare const MenuGroup: import("react").ComponentType<Partial<{
1792
1790
  onwebkitanimationstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
1793
1791
  onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
1794
1792
  onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
1793
+ autofocus: boolean;
1795
1794
  readonly dataset: DOMStringMap;
1795
+ readonly renderOptions: import("lit-html").RenderOptions;
1796
+ selected: string[];
1797
+ value: string;
1796
1798
  isLTR: boolean;
1797
1799
  hasVisibleFocusInTree: () => boolean;
1800
+ closeDescendentOverlays: () => void;
1798
1801
  ignore: boolean;
1799
- selects: "inherit" | "single" | "multiple" | undefined;
1802
+ selects: "inherit" | "multiple" | "single" | undefined;
1800
1803
  valueSeparator: string;
1801
1804
  selectedItems: import("menu/src").MenuItem[];
1802
1805
  menuSlot: HTMLSlotElement;
1803
- isSubmenu: boolean;
1804
1806
  focusedItemIndex: number;
1805
1807
  focusInItemIndex: number;
1806
1808
  readonly childItems: import("menu/src").MenuItem[];
@@ -1809,6 +1811,8 @@ export declare const MenuGroup: import("react").ComponentType<Partial<{
1809
1811
  startListeningToKeyboard: () => void;
1810
1812
  handleFocusout: (event: FocusEvent) => void;
1811
1813
  stopListeningToKeyboard: () => void;
1814
+ handleSubmenuClosed: (event: Event) => void;
1815
+ handleSubmenuOpened: (event: Event) => void;
1812
1816
  selectOrToggleItem: (targetItem: import("menu/src").MenuItem) => Promise<void>;
1813
1817
  handleKeydown: (event: KeyboardEvent) => void;
1814
1818
  focusMenuItemByOffset: (offset: number) => import("menu/src").MenuItem;
@@ -1821,35 +1825,31 @@ export declare const MenuGroup: import("react").ComponentType<Partial<{
1821
1825
  export declare const MenuItem: import("react").ComponentType<Partial<{
1822
1826
  dir?: string | undefined;
1823
1827
  'aria-hidden'?: (boolean | "true" | "false") | undefined;
1824
- title?: string | undefined;
1825
- rel?: string | undefined;
1826
- id?: string | undefined;
1827
- className?: string | undefined;
1828
- slot?: string | undefined;
1829
- style?: import("react").CSSProperties | undefined;
1830
- tabIndex?: number | undefined;
1831
- 'aria-disabled'?: (boolean | "true" | "false") | undefined;
1832
- color?: string | undefined;
1833
- lang?: string | undefined;
1834
- 'aria-modal'?: (boolean | "true" | "false") | undefined;
1835
1828
  accessKey?: string | undefined;
1836
- role?: import("react").AriaRole | undefined;
1837
- 'aria-label'?: string | undefined;
1838
- 'aria-haspopup'?: boolean | "true" | "dialog" | "menu" | "false" | "listbox" | "grid" | "tree" | undefined;
1839
- 'aria-expanded'?: (boolean | "true" | "false") | undefined;
1840
- 'aria-pressed'?: boolean | "true" | "false" | "mixed" | undefined;
1841
1829
  draggable?: (boolean | "true" | "false") | undefined;
1842
1830
  hidden?: boolean | undefined;
1831
+ lang?: string | undefined;
1832
+ title?: string | undefined;
1843
1833
  translate?: "yes" | "no" | undefined;
1834
+ className?: string | undefined;
1835
+ id?: string | undefined;
1844
1836
  prefix?: string | undefined;
1837
+ slot?: string | undefined;
1845
1838
  children?: import("react").ReactNode;
1839
+ style?: import("react").CSSProperties | undefined;
1846
1840
  contentEditable?: "inherit" | (boolean | "true" | "false") | undefined;
1847
1841
  inputMode?: "search" | "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
1848
1842
  nonce?: string | undefined;
1843
+ tabIndex?: number | undefined;
1844
+ rel?: string | undefined;
1845
+ 'aria-disabled'?: (boolean | "true" | "false") | undefined;
1849
1846
  'aria-describedby'?: string | undefined;
1850
- 'aria-controls'?: string | undefined;
1847
+ 'aria-haspopup'?: boolean | "true" | "dialog" | "menu" | "false" | "listbox" | "tree" | "grid" | undefined;
1848
+ 'aria-expanded'?: (boolean | "true" | "false") | undefined;
1849
+ role?: import("react").AriaRole | undefined;
1851
1850
  'aria-selected'?: (boolean | "true" | "false") | undefined;
1852
1851
  'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
1852
+ 'aria-label'?: string | undefined;
1853
1853
  'aria-activedescendant'?: string | undefined;
1854
1854
  'aria-labelledby'?: string | undefined;
1855
1855
  defaultChecked?: boolean | undefined;
@@ -1873,6 +1873,7 @@ export declare const MenuItem: import("react").ComponentType<Partial<{
1873
1873
  autoCapitalize?: string | undefined;
1874
1874
  autoCorrect?: string | undefined;
1875
1875
  autoSave?: string | undefined;
1876
+ color?: string | undefined;
1876
1877
  itemProp?: string | undefined;
1877
1878
  itemScope?: boolean | undefined;
1878
1879
  itemType?: string | undefined;
@@ -1891,7 +1892,8 @@ export declare const MenuItem: import("react").ComponentType<Partial<{
1891
1892
  'aria-colindex'?: number | undefined;
1892
1893
  'aria-colindextext'?: string | undefined;
1893
1894
  'aria-colspan'?: number | undefined;
1894
- 'aria-current'?: boolean | "true" | "time" | "false" | "page" | "step" | "location" | "date" | undefined;
1895
+ 'aria-controls'?: string | undefined;
1896
+ 'aria-current'?: boolean | "true" | "time" | "page" | "false" | "step" | "location" | "date" | undefined;
1895
1897
  'aria-description'?: string | undefined;
1896
1898
  'aria-details'?: string | undefined;
1897
1899
  'aria-dropeffect'?: "link" | "none" | "copy" | "execute" | "move" | "popup" | undefined;
@@ -1902,12 +1904,14 @@ export declare const MenuItem: import("react").ComponentType<Partial<{
1902
1904
  'aria-keyshortcuts'?: string | undefined;
1903
1905
  'aria-level'?: number | undefined;
1904
1906
  'aria-live'?: "off" | "assertive" | "polite" | undefined;
1907
+ 'aria-modal'?: (boolean | "true" | "false") | undefined;
1905
1908
  'aria-multiline'?: (boolean | "true" | "false") | undefined;
1906
1909
  'aria-multiselectable'?: (boolean | "true" | "false") | undefined;
1907
1910
  'aria-orientation'?: "horizontal" | "vertical" | undefined;
1908
1911
  'aria-owns'?: string | undefined;
1909
1912
  'aria-placeholder'?: string | undefined;
1910
1913
  'aria-posinset'?: number | undefined;
1914
+ 'aria-pressed'?: boolean | "true" | "false" | "mixed" | undefined;
1911
1915
  'aria-readonly'?: (boolean | "true" | "false") | undefined;
1912
1916
  'aria-relevant'?: "text" | "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
1913
1917
  'aria-required'?: (boolean | "true" | "false") | undefined;
@@ -2099,28 +2103,13 @@ export declare const MenuItem: import("react").ComponentType<Partial<{
2099
2103
  (options?: ScrollToOptions | undefined): void;
2100
2104
  (x: number, y: number): void;
2101
2105
  };
2102
- download?: string | undefined;
2103
- href?: string | undefined;
2104
- target?: "_blank" | "_parent" | "_self" | "_top" | undefined;
2105
- ariaHidden: string | null;
2106
- animate: (keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions | undefined) => Animation;
2107
- disabled: boolean;
2108
- autofocus: boolean;
2109
- shadowRoot: ShadowRoot;
2110
- open: boolean;
2111
- readonly renderOptions: import("lit-html").RenderOptions;
2112
- active: boolean;
2113
- remove: () => void;
2114
- readonly childNodes: NodeListOf<ChildNode>;
2115
- selected: boolean;
2116
- value: string;
2117
- disconnectedCallback: () => void;
2118
- connectedCallback: () => void;
2119
2106
  readonly renderRoot: HTMLElement | ShadowRoot;
2120
2107
  isUpdatePending: boolean;
2121
2108
  hasUpdated: boolean;
2122
2109
  addController: (controller: import("lit").ReactiveController) => void;
2123
2110
  removeController: (controller: import("lit").ReactiveController) => void;
2111
+ connectedCallback: () => void;
2112
+ disconnectedCallback: () => void;
2124
2113
  attributeChangedCallback: (name: string, _old: string | null, value: string | null) => void;
2125
2114
  requestUpdate: (name?: PropertyKey | undefined, oldValue?: unknown, options?: import("lit").PropertyDeclaration<unknown, unknown> | undefined) => void;
2126
2115
  readonly updateComplete: Promise<boolean>;
@@ -2159,6 +2148,7 @@ export declare const MenuItem: import("react").ComponentType<Partial<{
2159
2148
  scrollLeft: number;
2160
2149
  scrollTop: number;
2161
2150
  readonly scrollWidth: number;
2151
+ shadowRoot: ShadowRoot;
2162
2152
  readonly tagName: string;
2163
2153
  attachShadow: (init: ShadowRootInit) => ShadowRoot;
2164
2154
  closest: {
@@ -2215,6 +2205,7 @@ export declare const MenuItem: import("react").ComponentType<Partial<{
2215
2205
  toggleAttribute: (qualifiedName: string, force?: boolean | undefined) => boolean;
2216
2206
  webkitMatchesSelector: (selectors: string) => boolean;
2217
2207
  readonly baseURI: string;
2208
+ readonly childNodes: NodeListOf<ChildNode>;
2218
2209
  readonly firstChild: ChildNode | null;
2219
2210
  readonly isConnected: boolean;
2220
2211
  readonly lastChild: ChildNode | null;
@@ -2270,6 +2261,7 @@ export declare const MenuItem: import("react").ComponentType<Partial<{
2270
2261
  ariaDisabled: string | null;
2271
2262
  ariaExpanded: string | null;
2272
2263
  ariaHasPopup: string | null;
2264
+ ariaHidden: string | null;
2273
2265
  ariaKeyShortcuts: string | null;
2274
2266
  ariaLabel: string | null;
2275
2267
  ariaLevel: string | null;
@@ -2294,9 +2286,11 @@ export declare const MenuItem: import("react").ComponentType<Partial<{
2294
2286
  ariaValueMin: string | null;
2295
2287
  ariaValueNow: string | null;
2296
2288
  ariaValueText: string | null;
2289
+ animate: (keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions | undefined) => Animation;
2297
2290
  getAnimations: (options?: GetAnimationsOptions | undefined) => Animation[];
2298
2291
  after: (...nodes: (string | Node)[]) => void;
2299
2292
  before: (...nodes: (string | Node)[]) => void;
2293
+ remove: () => void;
2300
2294
  replaceWith: (...nodes: (string | Node)[]) => void;
2301
2295
  innerHTML: string;
2302
2296
  readonly nextElementSibling: Element | null;
@@ -2412,25 +2406,40 @@ export declare const MenuItem: import("react").ComponentType<Partial<{
2412
2406
  onwebkitanimationstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
2413
2407
  onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
2414
2408
  onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
2409
+ autofocus: boolean;
2415
2410
  readonly dataset: DOMStringMap;
2416
- isLTR: boolean;
2417
- hasVisibleFocusInTree: () => boolean;
2411
+ download?: string | undefined;
2412
+ href?: string | undefined;
2413
+ target?: "_blank" | "_parent" | "_self" | "_top" | undefined;
2414
+ disabled: boolean;
2415
+ open: boolean;
2416
+ readonly renderOptions: import("lit-html").RenderOptions;
2417
+ active: boolean;
2418
2418
  focused: boolean;
2419
+ selected: boolean;
2420
+ value: string;
2419
2421
  hasSubmenu: boolean;
2422
+ contentSlot: HTMLSlotElement;
2423
+ iconSlot: HTMLSlotElement;
2420
2424
  noWrap: boolean;
2425
+ overlayElement: import("overlay/src").Overlay;
2421
2426
  readonly itemText: string;
2422
2427
  readonly focusElement: HTMLElement;
2423
2428
  readonly itemChildren: import("menu/src").MenuItemChildren;
2424
- closeOverlay?: (() => Promise<void>) | undefined;
2425
2429
  openOverlay: () => Promise<void>;
2426
2430
  updateAriaSelected: () => void;
2427
2431
  setRole: (role: string) => void;
2428
2432
  _parentElement: HTMLElement;
2429
2433
  triggerUpdate: () => Promise<void>;
2434
+ dispatchUpdate: () => void;
2430
2435
  menuData: {
2431
2436
  focusRoot?: import("menu/src").Menu | undefined;
2437
+ parentMenu?: import("menu/src").Menu | undefined;
2432
2438
  selectionRoot?: import("menu/src").Menu | undefined;
2439
+ cleanupSteps: ((item: import("menu/src").MenuItem) => void)[];
2433
2440
  };
2441
+ isLTR: boolean;
2442
+ hasVisibleFocusInTree: () => boolean;
2434
2443
  renderAnchor: (options: {
2435
2444
  id: string;
2436
2445
  className?: string | undefined;
@@ -2441,5 +2450,4 @@ export declare const MenuItem: import("react").ComponentType<Partial<{
2441
2450
  }) => import("lit-html").TemplateResult<2 | 1>;
2442
2451
  } & {
2443
2452
  spMenuItemAdded: (e: Event) => void;
2444
- spMenuItemRemoved: (e: Event) => void;
2445
2453
  }> & 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.35.0",
3
+ "version": "0.35.1-rc.15+9b76319e4",
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.35.0"
33
+ "@spectrum-web-components/menu": "^0.35.1-rc.15+9b76319e4"
34
34
  },
35
35
  "peerDependencies": {
36
36
  "next": "~13.4"
@@ -40,5 +40,5 @@
40
40
  "optional": true
41
41
  }
42
42
  },
43
- "gitHead": "1ee5a6c92838cdf48321276d97f61c20f8476ac1"
43
+ "gitHead": "9b76319e4f1cc7cb0dd03e9d9debf544e5bed4e9"
44
44
  }