@swc-react/menu 0.36.0 → 0.38.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 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
@@ -11,27 +11,24 @@ export declare const Menu: import("react").ComponentType<Partial<{
11
11
  id?: string | undefined;
12
12
  className?: string | undefined;
13
13
  'aria-hidden'?: (boolean | "true" | "false") | undefined;
14
- color?: string | undefined;
15
- lang?: string | undefined;
16
- 'aria-modal'?: (boolean | "true" | "false") | undefined;
17
14
  accessKey?: string | undefined;
18
- role?: import("react").AriaRole | undefined;
19
- 'aria-label'?: string | undefined;
20
- 'aria-haspopup'?: boolean | "dialog" | "menu" | "true" | "false" | "listbox" | "grid" | "tree" | undefined;
21
- 'aria-expanded'?: (boolean | "true" | "false") | undefined;
22
- 'aria-pressed'?: boolean | "true" | "false" | "mixed" | undefined;
23
15
  draggable?: (boolean | "true" | "false") | undefined;
24
16
  hidden?: boolean | undefined;
17
+ lang?: string | undefined;
25
18
  translate?: "yes" | "no" | undefined;
26
19
  prefix?: string | undefined;
27
20
  children?: import("react").ReactNode;
28
21
  contentEditable?: "inherit" | (boolean | "true" | "false") | undefined;
29
22
  inputMode?: "text" | "search" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
30
23
  nonce?: string | undefined;
24
+ content?: string | undefined;
31
25
  'aria-describedby'?: string | undefined;
32
- 'aria-controls'?: string | undefined;
26
+ 'aria-haspopup'?: boolean | "dialog" | "menu" | "true" | "false" | "listbox" | "tree" | "grid" | undefined;
27
+ 'aria-expanded'?: (boolean | "true" | "false") | undefined;
28
+ role?: import("react").AriaRole | undefined;
33
29
  'aria-selected'?: (boolean | "true" | "false") | undefined;
34
30
  'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
31
+ 'aria-label'?: string | undefined;
35
32
  'aria-activedescendant'?: string | undefined;
36
33
  'aria-labelledby'?: string | undefined;
37
34
  defaultChecked?: boolean | undefined;
@@ -44,7 +41,6 @@ export declare const Menu: import("react").ComponentType<Partial<{
44
41
  spellCheck?: (boolean | "true" | "false") | undefined;
45
42
  radioGroup?: string | undefined;
46
43
  about?: string | undefined;
47
- content?: string | undefined;
48
44
  datatype?: string | undefined;
49
45
  inlist?: any;
50
46
  property?: string | 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 | "time" | "true" | "false" | "page" | "step" | "location" | "date" | undefined;
73
+ 'aria-controls'?: string | undefined;
74
+ 'aria-current'?: boolean | "time" | "true" | "page" | "false" | "step" | "location" | "date" | undefined;
77
75
  'aria-description'?: string | undefined;
78
76
  'aria-details'?: string | undefined;
79
77
  'aria-dropeffect'?: "link" | "copy" | "none" | "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;
@@ -287,17 +287,13 @@ export declare const Menu: import("react").ComponentType<Partial<{
287
287
  normalize: () => void;
288
288
  ariaHidden: string | null;
289
289
  readonly childNodes: NodeListOf<ChildNode>;
290
- shadowRoot: ShadowRoot;
291
- remove: () => void;
292
- selected: string[];
293
- value: string;
294
- disconnectedCallback: () => void;
295
- connectedCallback: () => void;
296
290
  readonly renderRoot: HTMLElement | ShadowRoot;
297
291
  isUpdatePending: boolean;
298
292
  hasUpdated: boolean;
299
293
  addController: (controller: import("lit").ReactiveController) => void;
300
294
  removeController: (controller: import("lit").ReactiveController) => void;
295
+ connectedCallback: () => void;
296
+ disconnectedCallback: () => void;
301
297
  attributeChangedCallback: (name: string, _old: string | null, value: string | null) => void;
302
298
  requestUpdate: (name?: PropertyKey | undefined, oldValue?: unknown, options?: import("lit").PropertyDeclaration<unknown, unknown> | undefined) => void;
303
299
  readonly updateComplete: Promise<boolean>;
@@ -336,6 +332,7 @@ export declare const Menu: import("react").ComponentType<Partial<{
336
332
  scrollLeft: number;
337
333
  scrollTop: number;
338
334
  readonly scrollWidth: number;
335
+ shadowRoot: ShadowRoot;
339
336
  readonly tagName: string;
340
337
  attachShadow: (init: ShadowRootInit) => ShadowRoot;
341
338
  closest: {
@@ -474,6 +471,7 @@ export declare const Menu: import("react").ComponentType<Partial<{
474
471
  getAnimations: (options?: GetAnimationsOptions | undefined) => Animation[];
475
472
  after: (...nodes: (string | Node)[]) => void;
476
473
  before: (...nodes: (string | Node)[]) => void;
474
+ remove: () => void;
477
475
  replaceWith: (...nodes: (string | Node)[]) => void;
478
476
  innerHTML: string;
479
477
  readonly nextElementSibling: Element | null;
@@ -590,14 +588,16 @@ export declare const Menu: import("react").ComponentType<Partial<{
590
588
  onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
591
589
  onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
592
590
  readonly dataset: DOMStringMap;
591
+ selected: string[];
592
+ value: string;
593
593
  isLTR: boolean;
594
594
  hasVisibleFocusInTree: () => boolean;
595
+ closeDescendentOverlays: () => void;
595
596
  ignore: boolean;
596
- selects: "inherit" | "single" | "multiple" | undefined;
597
+ selects: "inherit" | "multiple" | "single" | undefined;
597
598
  valueSeparator: string;
598
599
  selectedItems: import("menu/src").MenuItem[];
599
600
  menuSlot: HTMLSlotElement;
600
- isSubmenu: boolean;
601
601
  focusedItemIndex: number;
602
602
  focusInItemIndex: number;
603
603
  readonly childItems: import("menu/src").MenuItem[];
@@ -606,6 +606,8 @@ export declare const Menu: import("react").ComponentType<Partial<{
606
606
  startListeningToKeyboard: () => void;
607
607
  handleFocusout: (event: FocusEvent) => void;
608
608
  stopListeningToKeyboard: () => void;
609
+ handleSubmenuClosed: (event: Event) => void;
610
+ handleSubmenuOpened: (event: Event) => void;
609
611
  selectOrToggleItem: (targetItem: import("menu/src").MenuItem) => Promise<void>;
610
612
  handleKeydown: (event: KeyboardEvent) => void;
611
613
  focusMenuItemByOffset: (offset: number) => import("menu/src").MenuItem;
@@ -626,27 +628,24 @@ export declare const MenuDivider: import("react").ComponentType<Partial<{
626
628
  id?: string | undefined;
627
629
  className?: string | undefined;
628
630
  'aria-hidden'?: (boolean | "true" | "false") | undefined;
629
- color?: string | undefined;
630
- lang?: string | undefined;
631
- 'aria-modal'?: (boolean | "true" | "false") | undefined;
632
631
  accessKey?: string | undefined;
633
- role?: import("react").AriaRole | undefined;
634
- 'aria-label'?: string | undefined;
635
- 'aria-haspopup'?: boolean | "dialog" | "menu" | "true" | "false" | "listbox" | "grid" | "tree" | undefined;
636
- 'aria-expanded'?: (boolean | "true" | "false") | undefined;
637
- 'aria-pressed'?: boolean | "true" | "false" | "mixed" | undefined;
638
632
  draggable?: (boolean | "true" | "false") | undefined;
639
633
  hidden?: boolean | undefined;
634
+ lang?: string | undefined;
640
635
  translate?: "yes" | "no" | undefined;
641
636
  prefix?: string | undefined;
642
637
  children?: import("react").ReactNode;
643
638
  contentEditable?: "inherit" | (boolean | "true" | "false") | undefined;
644
639
  inputMode?: "text" | "search" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
645
640
  nonce?: string | undefined;
641
+ content?: string | undefined;
646
642
  'aria-describedby'?: string | undefined;
647
- 'aria-controls'?: string | undefined;
643
+ 'aria-haspopup'?: boolean | "dialog" | "menu" | "true" | "false" | "listbox" | "tree" | "grid" | undefined;
644
+ 'aria-expanded'?: (boolean | "true" | "false") | undefined;
645
+ role?: import("react").AriaRole | undefined;
648
646
  'aria-selected'?: (boolean | "true" | "false") | undefined;
649
647
  'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
648
+ 'aria-label'?: string | undefined;
650
649
  'aria-activedescendant'?: string | undefined;
651
650
  'aria-labelledby'?: string | undefined;
652
651
  defaultChecked?: boolean | undefined;
@@ -659,7 +658,6 @@ export declare const MenuDivider: import("react").ComponentType<Partial<{
659
658
  spellCheck?: (boolean | "true" | "false") | undefined;
660
659
  radioGroup?: string | undefined;
661
660
  about?: string | undefined;
662
- content?: string | undefined;
663
661
  datatype?: string | undefined;
664
662
  inlist?: any;
665
663
  property?: string | undefined;
@@ -670,6 +668,7 @@ export declare const MenuDivider: import("react").ComponentType<Partial<{
670
668
  autoCapitalize?: string | undefined;
671
669
  autoCorrect?: string | undefined;
672
670
  autoSave?: string | undefined;
671
+ color?: string | undefined;
673
672
  itemProp?: string | undefined;
674
673
  itemScope?: boolean | undefined;
675
674
  itemType?: string | undefined;
@@ -688,7 +687,8 @@ export declare const MenuDivider: import("react").ComponentType<Partial<{
688
687
  'aria-colindex'?: number | undefined;
689
688
  'aria-colindextext'?: string | undefined;
690
689
  'aria-colspan'?: number | undefined;
691
- 'aria-current'?: boolean | "time" | "true" | "false" | "page" | "step" | "location" | "date" | undefined;
690
+ 'aria-controls'?: string | undefined;
691
+ 'aria-current'?: boolean | "time" | "true" | "page" | "false" | "step" | "location" | "date" | undefined;
692
692
  'aria-description'?: string | undefined;
693
693
  'aria-details'?: string | undefined;
694
694
  'aria-dropeffect'?: "link" | "copy" | "none" | "execute" | "move" | "popup" | undefined;
@@ -699,12 +699,14 @@ export declare const MenuDivider: import("react").ComponentType<Partial<{
699
699
  'aria-keyshortcuts'?: string | undefined;
700
700
  'aria-level'?: number | undefined;
701
701
  'aria-live'?: "off" | "assertive" | "polite" | undefined;
702
+ 'aria-modal'?: (boolean | "true" | "false") | undefined;
702
703
  'aria-multiline'?: (boolean | "true" | "false") | undefined;
703
704
  'aria-multiselectable'?: (boolean | "true" | "false") | undefined;
704
705
  'aria-orientation'?: "horizontal" | "vertical" | undefined;
705
706
  'aria-owns'?: string | undefined;
706
707
  'aria-placeholder'?: string | undefined;
707
708
  'aria-posinset'?: number | undefined;
709
+ 'aria-pressed'?: boolean | "true" | "false" | "mixed" | undefined;
708
710
  'aria-readonly'?: (boolean | "true" | "false") | undefined;
709
711
  'aria-relevant'?: "text" | "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
710
712
  'aria-required'?: (boolean | "true" | "false") | undefined;
@@ -901,15 +903,13 @@ export declare const MenuDivider: import("react").ComponentType<Partial<{
901
903
  normalize: () => void;
902
904
  ariaHidden: string | null;
903
905
  readonly childNodes: NodeListOf<ChildNode>;
904
- shadowRoot: ShadowRoot;
905
- remove: () => void;
906
- disconnectedCallback: () => void;
907
- connectedCallback: () => void;
908
906
  readonly renderRoot: HTMLElement | ShadowRoot;
909
907
  isUpdatePending: boolean;
910
908
  hasUpdated: boolean;
911
909
  addController: (controller: import("lit").ReactiveController) => void;
912
910
  removeController: (controller: import("lit").ReactiveController) => void;
911
+ connectedCallback: () => void;
912
+ disconnectedCallback: () => void;
913
913
  attributeChangedCallback: (name: string, _old: string | null, value: string | null) => void;
914
914
  requestUpdate: (name?: PropertyKey | undefined, oldValue?: unknown, options?: import("lit").PropertyDeclaration<unknown, unknown> | undefined) => void;
915
915
  readonly updateComplete: Promise<boolean>;
@@ -948,6 +948,7 @@ export declare const MenuDivider: import("react").ComponentType<Partial<{
948
948
  scrollLeft: number;
949
949
  scrollTop: number;
950
950
  readonly scrollWidth: number;
951
+ shadowRoot: ShadowRoot;
951
952
  readonly tagName: string;
952
953
  attachShadow: (init: ShadowRootInit) => ShadowRoot;
953
954
  closest: {
@@ -1086,6 +1087,7 @@ export declare const MenuDivider: import("react").ComponentType<Partial<{
1086
1087
  getAnimations: (options?: GetAnimationsOptions | undefined) => Animation[];
1087
1088
  after: (...nodes: (string | Node)[]) => void;
1088
1089
  before: (...nodes: (string | Node)[]) => void;
1090
+ remove: () => void;
1089
1091
  replaceWith: (...nodes: (string | Node)[]) => void;
1090
1092
  innerHTML: string;
1091
1093
  readonly nextElementSibling: Element | null;
@@ -1216,27 +1218,24 @@ export declare const MenuGroup: import("react").ComponentType<Partial<{
1216
1218
  id?: string | undefined;
1217
1219
  className?: string | undefined;
1218
1220
  'aria-hidden'?: (boolean | "true" | "false") | undefined;
1219
- color?: string | undefined;
1220
- lang?: string | undefined;
1221
- 'aria-modal'?: (boolean | "true" | "false") | undefined;
1222
1221
  accessKey?: string | undefined;
1223
- role?: import("react").AriaRole | undefined;
1224
- 'aria-label'?: string | undefined;
1225
- 'aria-haspopup'?: boolean | "dialog" | "menu" | "true" | "false" | "listbox" | "grid" | "tree" | undefined;
1226
- 'aria-expanded'?: (boolean | "true" | "false") | undefined;
1227
- 'aria-pressed'?: boolean | "true" | "false" | "mixed" | undefined;
1228
1222
  draggable?: (boolean | "true" | "false") | undefined;
1229
1223
  hidden?: boolean | undefined;
1224
+ lang?: string | undefined;
1230
1225
  translate?: "yes" | "no" | undefined;
1231
1226
  prefix?: string | undefined;
1232
1227
  children?: import("react").ReactNode;
1233
1228
  contentEditable?: "inherit" | (boolean | "true" | "false") | undefined;
1234
1229
  inputMode?: "text" | "search" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
1235
1230
  nonce?: string | undefined;
1231
+ content?: string | undefined;
1236
1232
  'aria-describedby'?: string | undefined;
1237
- 'aria-controls'?: string | undefined;
1233
+ 'aria-haspopup'?: boolean | "dialog" | "menu" | "true" | "false" | "listbox" | "tree" | "grid" | undefined;
1234
+ 'aria-expanded'?: (boolean | "true" | "false") | undefined;
1235
+ role?: import("react").AriaRole | undefined;
1238
1236
  'aria-selected'?: (boolean | "true" | "false") | undefined;
1239
1237
  'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
1238
+ 'aria-label'?: string | undefined;
1240
1239
  'aria-activedescendant'?: string | undefined;
1241
1240
  'aria-labelledby'?: string | undefined;
1242
1241
  defaultChecked?: boolean | undefined;
@@ -1249,7 +1248,6 @@ export declare const MenuGroup: import("react").ComponentType<Partial<{
1249
1248
  spellCheck?: (boolean | "true" | "false") | undefined;
1250
1249
  radioGroup?: string | undefined;
1251
1250
  about?: string | undefined;
1252
- content?: string | undefined;
1253
1251
  datatype?: string | undefined;
1254
1252
  inlist?: any;
1255
1253
  property?: string | undefined;
@@ -1260,6 +1258,7 @@ export declare const MenuGroup: import("react").ComponentType<Partial<{
1260
1258
  autoCapitalize?: string | undefined;
1261
1259
  autoCorrect?: string | undefined;
1262
1260
  autoSave?: string | undefined;
1261
+ color?: string | undefined;
1263
1262
  itemProp?: string | undefined;
1264
1263
  itemScope?: boolean | undefined;
1265
1264
  itemType?: string | undefined;
@@ -1278,7 +1277,8 @@ export declare const MenuGroup: import("react").ComponentType<Partial<{
1278
1277
  'aria-colindex'?: number | undefined;
1279
1278
  'aria-colindextext'?: string | undefined;
1280
1279
  'aria-colspan'?: number | undefined;
1281
- 'aria-current'?: boolean | "time" | "true" | "false" | "page" | "step" | "location" | "date" | undefined;
1280
+ 'aria-controls'?: string | undefined;
1281
+ 'aria-current'?: boolean | "time" | "true" | "page" | "false" | "step" | "location" | "date" | undefined;
1282
1282
  'aria-description'?: string | undefined;
1283
1283
  'aria-details'?: string | undefined;
1284
1284
  'aria-dropeffect'?: "link" | "copy" | "none" | "execute" | "move" | "popup" | undefined;
@@ -1289,12 +1289,14 @@ export declare const MenuGroup: import("react").ComponentType<Partial<{
1289
1289
  'aria-keyshortcuts'?: string | undefined;
1290
1290
  'aria-level'?: number | undefined;
1291
1291
  'aria-live'?: "off" | "assertive" | "polite" | undefined;
1292
+ 'aria-modal'?: (boolean | "true" | "false") | undefined;
1292
1293
  'aria-multiline'?: (boolean | "true" | "false") | undefined;
1293
1294
  'aria-multiselectable'?: (boolean | "true" | "false") | undefined;
1294
1295
  'aria-orientation'?: "horizontal" | "vertical" | undefined;
1295
1296
  'aria-owns'?: string | undefined;
1296
1297
  'aria-placeholder'?: string | undefined;
1297
1298
  'aria-posinset'?: number | undefined;
1299
+ 'aria-pressed'?: boolean | "true" | "false" | "mixed" | undefined;
1298
1300
  'aria-readonly'?: (boolean | "true" | "false") | undefined;
1299
1301
  'aria-relevant'?: "text" | "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
1300
1302
  'aria-required'?: (boolean | "true" | "false") | undefined;
@@ -1492,17 +1494,13 @@ export declare const MenuGroup: import("react").ComponentType<Partial<{
1492
1494
  normalize: () => void;
1493
1495
  ariaHidden: string | null;
1494
1496
  readonly childNodes: NodeListOf<ChildNode>;
1495
- shadowRoot: ShadowRoot;
1496
- remove: () => void;
1497
- selected: string[];
1498
- value: string;
1499
- disconnectedCallback: () => void;
1500
- connectedCallback: () => void;
1501
1497
  readonly renderRoot: HTMLElement | ShadowRoot;
1502
1498
  isUpdatePending: boolean;
1503
1499
  hasUpdated: boolean;
1504
1500
  addController: (controller: import("lit").ReactiveController) => void;
1505
1501
  removeController: (controller: import("lit").ReactiveController) => void;
1502
+ connectedCallback: () => void;
1503
+ disconnectedCallback: () => void;
1506
1504
  attributeChangedCallback: (name: string, _old: string | null, value: string | null) => void;
1507
1505
  requestUpdate: (name?: PropertyKey | undefined, oldValue?: unknown, options?: import("lit").PropertyDeclaration<unknown, unknown> | undefined) => void;
1508
1506
  readonly updateComplete: Promise<boolean>;
@@ -1541,6 +1539,7 @@ export declare const MenuGroup: import("react").ComponentType<Partial<{
1541
1539
  scrollLeft: number;
1542
1540
  scrollTop: number;
1543
1541
  readonly scrollWidth: number;
1542
+ shadowRoot: ShadowRoot;
1544
1543
  readonly tagName: string;
1545
1544
  attachShadow: (init: ShadowRootInit) => ShadowRoot;
1546
1545
  closest: {
@@ -1679,6 +1678,7 @@ export declare const MenuGroup: import("react").ComponentType<Partial<{
1679
1678
  getAnimations: (options?: GetAnimationsOptions | undefined) => Animation[];
1680
1679
  after: (...nodes: (string | Node)[]) => void;
1681
1680
  before: (...nodes: (string | Node)[]) => void;
1681
+ remove: () => void;
1682
1682
  replaceWith: (...nodes: (string | Node)[]) => void;
1683
1683
  innerHTML: string;
1684
1684
  readonly nextElementSibling: Element | null;
@@ -1795,14 +1795,16 @@ export declare const MenuGroup: import("react").ComponentType<Partial<{
1795
1795
  onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
1796
1796
  onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
1797
1797
  readonly dataset: DOMStringMap;
1798
+ selected: string[];
1799
+ value: string;
1798
1800
  isLTR: boolean;
1799
1801
  hasVisibleFocusInTree: () => boolean;
1802
+ closeDescendentOverlays: () => void;
1800
1803
  ignore: boolean;
1801
- selects: "inherit" | "single" | "multiple" | undefined;
1804
+ selects: "inherit" | "multiple" | "single" | undefined;
1802
1805
  valueSeparator: string;
1803
1806
  selectedItems: import("menu/src").MenuItem[];
1804
1807
  menuSlot: HTMLSlotElement;
1805
- isSubmenu: boolean;
1806
1808
  focusedItemIndex: number;
1807
1809
  focusInItemIndex: number;
1808
1810
  readonly childItems: import("menu/src").MenuItem[];
@@ -1811,6 +1813,8 @@ export declare const MenuGroup: import("react").ComponentType<Partial<{
1811
1813
  startListeningToKeyboard: () => void;
1812
1814
  handleFocusout: (event: FocusEvent) => void;
1813
1815
  stopListeningToKeyboard: () => void;
1816
+ handleSubmenuClosed: (event: Event) => void;
1817
+ handleSubmenuOpened: (event: Event) => void;
1814
1818
  selectOrToggleItem: (targetItem: import("menu/src").MenuItem) => Promise<void>;
1815
1819
  handleKeydown: (event: KeyboardEvent) => void;
1816
1820
  focusMenuItemByOffset: (offset: number) => import("menu/src").MenuItem;
@@ -1831,27 +1835,24 @@ export declare const MenuItem: import("react").ComponentType<Partial<{
1831
1835
  id?: string | undefined;
1832
1836
  className?: string | undefined;
1833
1837
  'aria-hidden'?: (boolean | "true" | "false") | undefined;
1834
- color?: string | undefined;
1835
- lang?: string | undefined;
1836
- 'aria-modal'?: (boolean | "true" | "false") | undefined;
1837
1838
  accessKey?: string | undefined;
1838
- role?: import("react").AriaRole | undefined;
1839
- 'aria-label'?: string | undefined;
1840
- 'aria-haspopup'?: boolean | "dialog" | "menu" | "true" | "false" | "listbox" | "grid" | "tree" | undefined;
1841
- 'aria-expanded'?: (boolean | "true" | "false") | undefined;
1842
- 'aria-pressed'?: boolean | "true" | "false" | "mixed" | undefined;
1843
1839
  draggable?: (boolean | "true" | "false") | undefined;
1844
1840
  hidden?: boolean | undefined;
1841
+ lang?: string | undefined;
1845
1842
  translate?: "yes" | "no" | undefined;
1846
1843
  prefix?: string | undefined;
1847
1844
  children?: import("react").ReactNode;
1848
1845
  contentEditable?: "inherit" | (boolean | "true" | "false") | undefined;
1849
1846
  inputMode?: "text" | "search" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
1850
1847
  nonce?: string | undefined;
1848
+ content?: string | undefined;
1851
1849
  'aria-describedby'?: string | undefined;
1852
- 'aria-controls'?: string | undefined;
1850
+ 'aria-haspopup'?: boolean | "dialog" | "menu" | "true" | "false" | "listbox" | "tree" | "grid" | undefined;
1851
+ 'aria-expanded'?: (boolean | "true" | "false") | undefined;
1852
+ role?: import("react").AriaRole | undefined;
1853
1853
  'aria-selected'?: (boolean | "true" | "false") | undefined;
1854
1854
  'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
1855
+ 'aria-label'?: string | undefined;
1855
1856
  'aria-activedescendant'?: string | undefined;
1856
1857
  'aria-labelledby'?: string | undefined;
1857
1858
  defaultChecked?: boolean | undefined;
@@ -1864,7 +1865,6 @@ export declare const MenuItem: import("react").ComponentType<Partial<{
1864
1865
  spellCheck?: (boolean | "true" | "false") | undefined;
1865
1866
  radioGroup?: string | undefined;
1866
1867
  about?: string | undefined;
1867
- content?: string | undefined;
1868
1868
  datatype?: string | undefined;
1869
1869
  inlist?: any;
1870
1870
  property?: string | undefined;
@@ -1875,6 +1875,7 @@ export declare const MenuItem: import("react").ComponentType<Partial<{
1875
1875
  autoCapitalize?: string | undefined;
1876
1876
  autoCorrect?: string | undefined;
1877
1877
  autoSave?: string | undefined;
1878
+ color?: string | undefined;
1878
1879
  itemProp?: string | undefined;
1879
1880
  itemScope?: boolean | undefined;
1880
1881
  itemType?: string | undefined;
@@ -1893,7 +1894,8 @@ export declare const MenuItem: import("react").ComponentType<Partial<{
1893
1894
  'aria-colindex'?: number | undefined;
1894
1895
  'aria-colindextext'?: string | undefined;
1895
1896
  'aria-colspan'?: number | undefined;
1896
- 'aria-current'?: boolean | "time" | "true" | "false" | "page" | "step" | "location" | "date" | undefined;
1897
+ 'aria-controls'?: string | undefined;
1898
+ 'aria-current'?: boolean | "time" | "true" | "page" | "false" | "step" | "location" | "date" | undefined;
1897
1899
  'aria-description'?: string | undefined;
1898
1900
  'aria-details'?: string | undefined;
1899
1901
  'aria-dropeffect'?: "link" | "copy" | "none" | "execute" | "move" | "popup" | undefined;
@@ -1904,12 +1906,14 @@ export declare const MenuItem: import("react").ComponentType<Partial<{
1904
1906
  'aria-keyshortcuts'?: string | undefined;
1905
1907
  'aria-level'?: number | undefined;
1906
1908
  'aria-live'?: "off" | "assertive" | "polite" | undefined;
1909
+ 'aria-modal'?: (boolean | "true" | "false") | undefined;
1907
1910
  'aria-multiline'?: (boolean | "true" | "false") | undefined;
1908
1911
  'aria-multiselectable'?: (boolean | "true" | "false") | undefined;
1909
1912
  'aria-orientation'?: "horizontal" | "vertical" | undefined;
1910
1913
  'aria-owns'?: string | undefined;
1911
1914
  'aria-placeholder'?: string | undefined;
1912
1915
  'aria-posinset'?: number | undefined;
1916
+ 'aria-pressed'?: boolean | "true" | "false" | "mixed" | undefined;
1913
1917
  'aria-readonly'?: (boolean | "true" | "false") | undefined;
1914
1918
  'aria-relevant'?: "text" | "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
1915
1919
  'aria-required'?: (boolean | "true" | "false") | undefined;
@@ -2112,19 +2116,13 @@ export declare const MenuItem: import("react").ComponentType<Partial<{
2112
2116
  slotContentIsPresent: boolean;
2113
2117
  slotHasContent: boolean;
2114
2118
  readonly childNodes: NodeListOf<ChildNode>;
2115
- shadowRoot: ShadowRoot;
2116
- open: boolean;
2117
- active: boolean;
2118
- remove: () => void;
2119
- selected: boolean;
2120
- value: string;
2121
- disconnectedCallback: () => void;
2122
- connectedCallback: () => void;
2123
2119
  readonly renderRoot: HTMLElement | ShadowRoot;
2124
2120
  isUpdatePending: boolean;
2125
2121
  hasUpdated: boolean;
2126
2122
  addController: (controller: import("lit").ReactiveController) => void;
2127
2123
  removeController: (controller: import("lit").ReactiveController) => void;
2124
+ connectedCallback: () => void;
2125
+ disconnectedCallback: () => void;
2128
2126
  attributeChangedCallback: (name: string, _old: string | null, value: string | null) => void;
2129
2127
  requestUpdate: (name?: PropertyKey | undefined, oldValue?: unknown, options?: import("lit").PropertyDeclaration<unknown, unknown> | undefined) => void;
2130
2128
  readonly updateComplete: Promise<boolean>;
@@ -2163,6 +2161,7 @@ export declare const MenuItem: import("react").ComponentType<Partial<{
2163
2161
  scrollLeft: number;
2164
2162
  scrollTop: number;
2165
2163
  readonly scrollWidth: number;
2164
+ shadowRoot: ShadowRoot;
2166
2165
  readonly tagName: string;
2167
2166
  attachShadow: (init: ShadowRootInit) => ShadowRoot;
2168
2167
  closest: {
@@ -2301,6 +2300,7 @@ export declare const MenuItem: import("react").ComponentType<Partial<{
2301
2300
  getAnimations: (options?: GetAnimationsOptions | undefined) => Animation[];
2302
2301
  after: (...nodes: (string | Node)[]) => void;
2303
2302
  before: (...nodes: (string | Node)[]) => void;
2303
+ remove: () => void;
2304
2304
  replaceWith: (...nodes: (string | Node)[]) => void;
2305
2305
  innerHTML: string;
2306
2306
  readonly nextElementSibling: Element | null;
@@ -2417,24 +2417,35 @@ export declare const MenuItem: import("react").ComponentType<Partial<{
2417
2417
  onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
2418
2418
  onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
2419
2419
  readonly dataset: DOMStringMap;
2420
- isLTR: boolean;
2421
- hasVisibleFocusInTree: () => boolean;
2420
+ open: boolean;
2421
+ active: boolean;
2422
2422
  focused: boolean;
2423
+ selected: boolean;
2424
+ value: string;
2423
2425
  hasSubmenu: boolean;
2426
+ contentSlot: HTMLSlotElement;
2427
+ iconSlot: HTMLSlotElement;
2424
2428
  noWrap: boolean;
2429
+ overlayElement: import("overlay/src").Overlay;
2430
+ abortControllerPointer: AbortController;
2431
+ abortControllerSubmenu: AbortController;
2425
2432
  readonly itemText: string;
2426
2433
  readonly focusElement: HTMLElement;
2427
2434
  readonly itemChildren: import("menu/src").MenuItemChildren;
2428
- closeOverlay?: (() => Promise<void>) | undefined;
2429
2435
  openOverlay: () => Promise<void>;
2430
2436
  updateAriaSelected: () => void;
2431
2437
  setRole: (role: string) => void;
2432
2438
  _parentElement: HTMLElement;
2433
2439
  triggerUpdate: () => Promise<void>;
2440
+ dispatchUpdate: () => void;
2434
2441
  menuData: {
2435
2442
  focusRoot?: import("menu/src").Menu | undefined;
2443
+ parentMenu?: import("menu/src").Menu | undefined;
2436
2444
  selectionRoot?: import("menu/src").Menu | undefined;
2445
+ cleanupSteps: ((item: import("menu/src").MenuItem) => void)[];
2437
2446
  };
2447
+ isLTR: boolean;
2448
+ hasVisibleFocusInTree: () => boolean;
2438
2449
  getSlotContentPresence: (selector: string) => boolean;
2439
2450
  managePresenceObservedSlot: () => void;
2440
2451
  manageTextObservedSlot: () => void;
@@ -2448,5 +2459,4 @@ export declare const MenuItem: import("react").ComponentType<Partial<{
2448
2459
  }) => import("lit-html").TemplateResult<2 | 1>;
2449
2460
  } & {
2450
2461
  spMenuItemAdded: (e: Event) => void;
2451
- spMenuItemRemoved: (e: Event) => void;
2452
2462
  }> & 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.36.0",
3
+ "version": "0.38.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.36.0"
33
+ "@spectrum-web-components/menu": "^0.38.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": "a532ff8a410abeefb54d9638a2316ae82570566e"
43
+ "gitHead": "9a099b7543672f2fd4030833ab813b16c2cad62e"
44
44
  }