@swc-react/menu 0.35.1-rc.26 → 0.36.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +1 -0
- package/index.dev.js +3 -1
- package/index.dev.js.map +2 -2
- package/index.js +1 -1
- package/index.js.map +2 -2
- package/next.d.ts +147 -148
- package/package.json +3 -3
package/index.d.ts
CHANGED
|
@@ -18,6 +18,7 @@ export declare const MenuGroup: import("@lit-labs/react").ReactWebComponent<SpMe
|
|
|
18
18
|
}>;
|
|
19
19
|
export declare const MenuItem: import("@lit-labs/react").ReactWebComponent<SpMenuItem, {
|
|
20
20
|
spMenuItemAdded: EventName<Event>;
|
|
21
|
+
spMenuItemRemoved: EventName<Event>;
|
|
21
22
|
}>;
|
|
22
23
|
export declare type MenuType = EventTarget & SpMenu;
|
|
23
24
|
export declare type MenuDividerType = EventTarget & SpMenuDivider;
|
package/index.dev.js
CHANGED
|
@@ -44,8 +44,10 @@ export const MenuItem = createComponent({
|
|
|
44
44
|
react: React,
|
|
45
45
|
tagName: "sp-menu-item",
|
|
46
46
|
events: {
|
|
47
|
-
spMenuItemAdded: "sp-menu-item-added"
|
|
47
|
+
spMenuItemAdded: "sp-menu-item-added",
|
|
48
48
|
// announces the item has been added so a parent menu can take ownerships
|
|
49
|
+
spMenuItemRemoved: "sp-menu-item-removed"
|
|
50
|
+
// announces when removed from the DOM so the parent menu can remove ownership and update selected state
|
|
49
51
|
}
|
|
50
52
|
});
|
|
51
53
|
//# sourceMappingURL=index.dev.js.map
|
package/index.dev.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["index.ts"],
|
|
4
|
-
"sourcesContent": ["/*\nCopyright 2022 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\nimport * as React from 'react';\nimport { createComponent } from '@lit-labs/react';\nimport type { EventName } from '@lit-labs/react';\nimport { Menu as SpMenu } from '@spectrum-web-components/menu';\nimport { MenuDivider as SpMenuDivider } from '@spectrum-web-components/menu';\nimport { MenuGroup as SpMenuGroup } from '@spectrum-web-components/menu';\nimport { MenuItem as SpMenuItem } from '@spectrum-web-components/menu';\n\nimport '@spectrum-web-components/menu/sp-menu-divider.js';\nimport '@spectrum-web-components/menu/sp-menu-group.js';\nimport '@spectrum-web-components/menu/sp-menu-item.js';\nimport '@spectrum-web-components/menu/sp-menu.js';\n\nexport const Menu = createComponent({\n displayName: 'Menu',\n elementClass: SpMenu,\n react: React,\n tagName: 'sp-menu',\n events: {\n change: 'change' as EventName<Event>, // Announces that the `value` of the element has changed\n close: 'close' as EventName<Event>,\n },\n});\nexport const MenuDivider = createComponent({\n displayName: 'MenuDivider',\n elementClass: SpMenuDivider,\n react: React,\n tagName: 'sp-menu-divider',\n events: {},\n});\nexport const MenuGroup = createComponent({\n displayName: 'MenuGroup',\n elementClass: SpMenuGroup,\n react: React,\n tagName: 'sp-menu-group',\n events: {\n change: 'change' as EventName<Event>, // Announces that the `value` of the element has changed\n close: 'close' as EventName<Event>,\n },\n});\nexport const MenuItem = createComponent({\n displayName: 'MenuItem',\n elementClass: SpMenuItem,\n react: React,\n tagName: 'sp-menu-item',\n events: {\n spMenuItemAdded: 'sp-menu-item-added' as EventName<Event>, // announces the item has been added so a parent menu can take ownerships\n },\n});\n\nexport type MenuType = EventTarget & SpMenu;\nexport type MenuDividerType = EventTarget & SpMenuDivider;\nexport type MenuGroupType = EventTarget & SpMenuGroup;\nexport type MenuItemType = EventTarget & SpMenuItem;\n"],
|
|
5
|
-
"mappings": ";AAYA,YAAY,WAAW;AACvB,SAAS,uBAAuB;AAEhC,SAAS,QAAQ,cAAc;AAC/B,SAAS,eAAe,qBAAqB;AAC7C,SAAS,aAAa,mBAAmB;AACzC,SAAS,YAAY,kBAAkB;AAEvC,OAAO;AACP,OAAO;AACP,OAAO;AACP,OAAO;AAEA,aAAM,OAAO,gBAAgB;AAAA,EAChC,aAAa;AAAA,EACb,cAAc;AAAA,EACd,OAAO;AAAA,EACP,SAAS;AAAA,EACT,QAAQ;AAAA,IACJ,QAAQ;AAAA;AAAA,IACR,OAAO;AAAA,EACX;AACJ,CAAC;AACM,aAAM,cAAc,gBAAgB;AAAA,EACvC,aAAa;AAAA,EACb,cAAc;AAAA,EACd,OAAO;AAAA,EACP,SAAS;AAAA,EACT,QAAQ,CAAC;AACb,CAAC;AACM,aAAM,YAAY,gBAAgB;AAAA,EACrC,aAAa;AAAA,EACb,cAAc;AAAA,EACd,OAAO;AAAA,EACP,SAAS;AAAA,EACT,QAAQ;AAAA,IACJ,QAAQ;AAAA;AAAA,IACR,OAAO;AAAA,EACX;AACJ,CAAC;AACM,aAAM,WAAW,gBAAgB;AAAA,EACpC,aAAa;AAAA,EACb,cAAc;AAAA,EACd,OAAO;AAAA,EACP,SAAS;AAAA,EACT,QAAQ;AAAA,IACJ,iBAAiB;AAAA;AAAA,
|
|
4
|
+
"sourcesContent": ["/*\nCopyright 2022 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\nimport * as React from 'react';\nimport { createComponent } from '@lit-labs/react';\nimport type { EventName } from '@lit-labs/react';\nimport { Menu as SpMenu } from '@spectrum-web-components/menu';\nimport { MenuDivider as SpMenuDivider } from '@spectrum-web-components/menu';\nimport { MenuGroup as SpMenuGroup } from '@spectrum-web-components/menu';\nimport { MenuItem as SpMenuItem } from '@spectrum-web-components/menu';\n\nimport '@spectrum-web-components/menu/sp-menu-divider.js';\nimport '@spectrum-web-components/menu/sp-menu-group.js';\nimport '@spectrum-web-components/menu/sp-menu-item.js';\nimport '@spectrum-web-components/menu/sp-menu.js';\n\nexport const Menu = createComponent({\n displayName: 'Menu',\n elementClass: SpMenu,\n react: React,\n tagName: 'sp-menu',\n events: {\n change: 'change' as EventName<Event>, // Announces that the `value` of the element has changed\n close: 'close' as EventName<Event>,\n },\n});\nexport const MenuDivider = createComponent({\n displayName: 'MenuDivider',\n elementClass: SpMenuDivider,\n react: React,\n tagName: 'sp-menu-divider',\n events: {},\n});\nexport const MenuGroup = createComponent({\n displayName: 'MenuGroup',\n elementClass: SpMenuGroup,\n react: React,\n tagName: 'sp-menu-group',\n events: {\n change: 'change' as EventName<Event>, // Announces that the `value` of the element has changed\n close: 'close' as EventName<Event>,\n },\n});\nexport const MenuItem = createComponent({\n displayName: 'MenuItem',\n elementClass: SpMenuItem,\n react: React,\n tagName: 'sp-menu-item',\n events: {\n spMenuItemAdded: 'sp-menu-item-added' as EventName<Event>, // announces the item has been added so a parent menu can take ownerships\n spMenuItemRemoved: 'sp-menu-item-removed' as EventName<Event>, // announces when removed from the DOM so the parent menu can remove ownership and update selected state\n },\n});\n\nexport type MenuType = EventTarget & SpMenu;\nexport type MenuDividerType = EventTarget & SpMenuDivider;\nexport type MenuGroupType = EventTarget & SpMenuGroup;\nexport type MenuItemType = EventTarget & SpMenuItem;\n"],
|
|
5
|
+
"mappings": ";AAYA,YAAY,WAAW;AACvB,SAAS,uBAAuB;AAEhC,SAAS,QAAQ,cAAc;AAC/B,SAAS,eAAe,qBAAqB;AAC7C,SAAS,aAAa,mBAAmB;AACzC,SAAS,YAAY,kBAAkB;AAEvC,OAAO;AACP,OAAO;AACP,OAAO;AACP,OAAO;AAEA,aAAM,OAAO,gBAAgB;AAAA,EAChC,aAAa;AAAA,EACb,cAAc;AAAA,EACd,OAAO;AAAA,EACP,SAAS;AAAA,EACT,QAAQ;AAAA,IACJ,QAAQ;AAAA;AAAA,IACR,OAAO;AAAA,EACX;AACJ,CAAC;AACM,aAAM,cAAc,gBAAgB;AAAA,EACvC,aAAa;AAAA,EACb,cAAc;AAAA,EACd,OAAO;AAAA,EACP,SAAS;AAAA,EACT,QAAQ,CAAC;AACb,CAAC;AACM,aAAM,YAAY,gBAAgB;AAAA,EACrC,aAAa;AAAA,EACb,cAAc;AAAA,EACd,OAAO;AAAA,EACP,SAAS;AAAA,EACT,QAAQ;AAAA,IACJ,QAAQ;AAAA;AAAA,IACR,OAAO;AAAA,EACX;AACJ,CAAC;AACM,aAAM,WAAW,gBAAgB;AAAA,EACpC,aAAa;AAAA,EACb,cAAc;AAAA,EACd,OAAO;AAAA,EACP,SAAS;AAAA,EACT,QAAQ;AAAA,IACJ,iBAAiB;AAAA;AAAA,IACjB,mBAAmB;AAAA;AAAA,EACvB;AACJ,CAAC;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";import*as e from"react";import{createComponent as t}from"@lit-labs/react";import{Menu as n}from"@spectrum-web-components/menu";import{MenuDivider as
|
|
1
|
+
"use strict";import*as e from"react";import{createComponent as t}from"@lit-labs/react";import{Menu as n}from"@spectrum-web-components/menu";import{MenuDivider as m}from"@spectrum-web-components/menu";import{MenuGroup as p}from"@spectrum-web-components/menu";import{MenuItem as a}from"@spectrum-web-components/menu";import"@spectrum-web-components/menu/sp-menu-divider.js";import"@spectrum-web-components/menu/sp-menu-group.js";import"@spectrum-web-components/menu/sp-menu-item.js";import"@spectrum-web-components/menu/sp-menu.js";export const Menu=t({displayName:"Menu",elementClass:n,react:e,tagName:"sp-menu",events:{change:"change",close:"close"}}),MenuDivider=t({displayName:"MenuDivider",elementClass:m,react:e,tagName:"sp-menu-divider",events:{}}),MenuGroup=t({displayName:"MenuGroup",elementClass:p,react:e,tagName:"sp-menu-group",events:{change:"change",close:"close"}}),MenuItem=t({displayName:"MenuItem",elementClass:a,react:e,tagName:"sp-menu-item",events:{spMenuItemAdded:"sp-menu-item-added",spMenuItemRemoved:"sp-menu-item-removed"}});
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/index.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["index.ts"],
|
|
4
|
-
"sourcesContent": ["/*\nCopyright 2022 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\nimport * as React from 'react';\nimport { createComponent } from '@lit-labs/react';\nimport type { EventName } from '@lit-labs/react';\nimport { Menu as SpMenu } from '@spectrum-web-components/menu';\nimport { MenuDivider as SpMenuDivider } from '@spectrum-web-components/menu';\nimport { MenuGroup as SpMenuGroup } from '@spectrum-web-components/menu';\nimport { MenuItem as SpMenuItem } from '@spectrum-web-components/menu';\n\nimport '@spectrum-web-components/menu/sp-menu-divider.js';\nimport '@spectrum-web-components/menu/sp-menu-group.js';\nimport '@spectrum-web-components/menu/sp-menu-item.js';\nimport '@spectrum-web-components/menu/sp-menu.js';\n\nexport const Menu = createComponent({\n displayName: 'Menu',\n elementClass: SpMenu,\n react: React,\n tagName: 'sp-menu',\n events: {\n change: 'change' as EventName<Event>, // Announces that the `value` of the element has changed\n close: 'close' as EventName<Event>,\n },\n});\nexport const MenuDivider = createComponent({\n displayName: 'MenuDivider',\n elementClass: SpMenuDivider,\n react: React,\n tagName: 'sp-menu-divider',\n events: {},\n});\nexport const MenuGroup = createComponent({\n displayName: 'MenuGroup',\n elementClass: SpMenuGroup,\n react: React,\n tagName: 'sp-menu-group',\n events: {\n change: 'change' as EventName<Event>, // Announces that the `value` of the element has changed\n close: 'close' as EventName<Event>,\n },\n});\nexport const MenuItem = createComponent({\n displayName: 'MenuItem',\n elementClass: SpMenuItem,\n react: React,\n tagName: 'sp-menu-item',\n events: {\n spMenuItemAdded: 'sp-menu-item-added' as EventName<Event>, // announces the item has been added so a parent menu can take ownerships\n },\n});\n\nexport type MenuType = EventTarget & SpMenu;\nexport type MenuDividerType = EventTarget & SpMenuDivider;\nexport type MenuGroupType = EventTarget & SpMenuGroup;\nexport type MenuItemType = EventTarget & SpMenuItem;\n"],
|
|
5
|
-
"mappings": "aAYA,UAAYA,MAAW,QACvB,OAAS,mBAAAC,MAAuB,kBAEhC,OAAS,QAAQC,MAAc,gCAC/B,OAAS,eAAeC,MAAqB,gCAC7C,OAAS,aAAaC,MAAmB,gCACzC,OAAS,YAAYC,MAAkB,gCAEvC,MAAO,mDACP,MAAO,iDACP,MAAO,gDACP,MAAO,2CAEA,aAAM,KAAOJ,EAAgB,CAChC,YAAa,OACb,aAAcC,EACd,MAAOF,EACP,QAAS,UACT,OAAQ,CACJ,OAAQ,SACR,MAAO,OACX,CACJ,CAAC,EACY,YAAcC,EAAgB,CACvC,YAAa,cACb,aAAcE,EACd,MAAOH,EACP,QAAS,kBACT,OAAQ,CAAC,CACb,CAAC,EACY,UAAYC,EAAgB,CACrC,YAAa,YACb,aAAcG,EACd,MAAOJ,EACP,QAAS,gBACT,OAAQ,CACJ,OAAQ,SACR,MAAO,OACX,CACJ,CAAC,EACY,SAAWC,EAAgB,CACpC,YAAa,WACb,aAAcI,EACd,MAAOL,EACP,QAAS,eACT,OAAQ,CACJ,gBAAiB,
|
|
4
|
+
"sourcesContent": ["/*\nCopyright 2022 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\nimport * as React from 'react';\nimport { createComponent } from '@lit-labs/react';\nimport type { EventName } from '@lit-labs/react';\nimport { Menu as SpMenu } from '@spectrum-web-components/menu';\nimport { MenuDivider as SpMenuDivider } from '@spectrum-web-components/menu';\nimport { MenuGroup as SpMenuGroup } from '@spectrum-web-components/menu';\nimport { MenuItem as SpMenuItem } from '@spectrum-web-components/menu';\n\nimport '@spectrum-web-components/menu/sp-menu-divider.js';\nimport '@spectrum-web-components/menu/sp-menu-group.js';\nimport '@spectrum-web-components/menu/sp-menu-item.js';\nimport '@spectrum-web-components/menu/sp-menu.js';\n\nexport const Menu = createComponent({\n displayName: 'Menu',\n elementClass: SpMenu,\n react: React,\n tagName: 'sp-menu',\n events: {\n change: 'change' as EventName<Event>, // Announces that the `value` of the element has changed\n close: 'close' as EventName<Event>,\n },\n});\nexport const MenuDivider = createComponent({\n displayName: 'MenuDivider',\n elementClass: SpMenuDivider,\n react: React,\n tagName: 'sp-menu-divider',\n events: {},\n});\nexport const MenuGroup = createComponent({\n displayName: 'MenuGroup',\n elementClass: SpMenuGroup,\n react: React,\n tagName: 'sp-menu-group',\n events: {\n change: 'change' as EventName<Event>, // Announces that the `value` of the element has changed\n close: 'close' as EventName<Event>,\n },\n});\nexport const MenuItem = createComponent({\n displayName: 'MenuItem',\n elementClass: SpMenuItem,\n react: React,\n tagName: 'sp-menu-item',\n events: {\n spMenuItemAdded: 'sp-menu-item-added' as EventName<Event>, // announces the item has been added so a parent menu can take ownerships\n spMenuItemRemoved: 'sp-menu-item-removed' as EventName<Event>, // announces when removed from the DOM so the parent menu can remove ownership and update selected state\n },\n});\n\nexport type MenuType = EventTarget & SpMenu;\nexport type MenuDividerType = EventTarget & SpMenuDivider;\nexport type MenuGroupType = EventTarget & SpMenuGroup;\nexport type MenuItemType = EventTarget & SpMenuItem;\n"],
|
|
5
|
+
"mappings": "aAYA,UAAYA,MAAW,QACvB,OAAS,mBAAAC,MAAuB,kBAEhC,OAAS,QAAQC,MAAc,gCAC/B,OAAS,eAAeC,MAAqB,gCAC7C,OAAS,aAAaC,MAAmB,gCACzC,OAAS,YAAYC,MAAkB,gCAEvC,MAAO,mDACP,MAAO,iDACP,MAAO,gDACP,MAAO,2CAEA,aAAM,KAAOJ,EAAgB,CAChC,YAAa,OACb,aAAcC,EACd,MAAOF,EACP,QAAS,UACT,OAAQ,CACJ,OAAQ,SACR,MAAO,OACX,CACJ,CAAC,EACY,YAAcC,EAAgB,CACvC,YAAa,cACb,aAAcE,EACd,MAAOH,EACP,QAAS,kBACT,OAAQ,CAAC,CACb,CAAC,EACY,UAAYC,EAAgB,CACrC,YAAa,YACb,aAAcG,EACd,MAAOJ,EACP,QAAS,gBACT,OAAQ,CACJ,OAAQ,SACR,MAAO,OACX,CACJ,CAAC,EACY,SAAWC,EAAgB,CACpC,YAAa,WACb,aAAcI,EACd,MAAOL,EACP,QAAS,eACT,OAAQ,CACJ,gBAAiB,qBACjB,kBAAmB,sBACvB,CACJ,CAAC",
|
|
6
6
|
"names": ["React", "createComponent", "SpMenu", "SpMenuDivider", "SpMenuGroup", "SpMenuItem"]
|
|
7
7
|
}
|
package/next.d.ts
CHANGED
|
@@ -2,32 +2,36 @@
|
|
|
2
2
|
/// <reference types="react" />
|
|
3
3
|
export declare const Menu: import("react").ComponentType<Partial<{
|
|
4
4
|
dir?: string | undefined;
|
|
5
|
+
slot?: string | undefined;
|
|
6
|
+
style?: import("react").CSSProperties | undefined;
|
|
7
|
+
title?: string | undefined;
|
|
8
|
+
tabIndex?: number | undefined;
|
|
9
|
+
'aria-disabled'?: (boolean | "true" | "false") | undefined;
|
|
10
|
+
rel?: string | undefined;
|
|
11
|
+
id?: string | undefined;
|
|
12
|
+
className?: string | undefined;
|
|
5
13
|
'aria-hidden'?: (boolean | "true" | "false") | undefined;
|
|
14
|
+
color?: string | undefined;
|
|
15
|
+
lang?: string | undefined;
|
|
16
|
+
'aria-modal'?: (boolean | "true" | "false") | undefined;
|
|
6
17
|
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;
|
|
7
23
|
draggable?: (boolean | "true" | "false") | undefined;
|
|
8
24
|
hidden?: boolean | undefined;
|
|
9
|
-
lang?: string | undefined;
|
|
10
|
-
title?: string | undefined;
|
|
11
25
|
translate?: "yes" | "no" | undefined;
|
|
12
|
-
className?: string | undefined;
|
|
13
|
-
id?: string | undefined;
|
|
14
26
|
prefix?: string | undefined;
|
|
15
|
-
slot?: string | undefined;
|
|
16
27
|
children?: import("react").ReactNode;
|
|
17
|
-
style?: import("react").CSSProperties | undefined;
|
|
18
28
|
contentEditable?: "inherit" | (boolean | "true" | "false") | undefined;
|
|
19
|
-
inputMode?: "
|
|
29
|
+
inputMode?: "text" | "search" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
20
30
|
nonce?: string | undefined;
|
|
21
|
-
tabIndex?: number | undefined;
|
|
22
|
-
rel?: string | undefined;
|
|
23
|
-
'aria-disabled'?: (boolean | "true" | "false") | undefined;
|
|
24
31
|
'aria-describedby'?: string | undefined;
|
|
25
|
-
'aria-
|
|
26
|
-
'aria-expanded'?: (boolean | "true" | "false") | undefined;
|
|
27
|
-
role?: import("react").AriaRole | undefined;
|
|
32
|
+
'aria-controls'?: string | undefined;
|
|
28
33
|
'aria-selected'?: (boolean | "true" | "false") | undefined;
|
|
29
34
|
'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
|
|
30
|
-
'aria-label'?: string | undefined;
|
|
31
35
|
'aria-activedescendant'?: string | undefined;
|
|
32
36
|
'aria-labelledby'?: string | undefined;
|
|
33
37
|
defaultChecked?: boolean | undefined;
|
|
@@ -51,7 +55,6 @@ export declare const Menu: import("react").ComponentType<Partial<{
|
|
|
51
55
|
autoCapitalize?: string | undefined;
|
|
52
56
|
autoCorrect?: string | undefined;
|
|
53
57
|
autoSave?: string | undefined;
|
|
54
|
-
color?: string | undefined;
|
|
55
58
|
itemProp?: string | undefined;
|
|
56
59
|
itemScope?: boolean | undefined;
|
|
57
60
|
itemType?: string | undefined;
|
|
@@ -70,11 +73,10 @@ export declare const Menu: import("react").ComponentType<Partial<{
|
|
|
70
73
|
'aria-colindex'?: number | undefined;
|
|
71
74
|
'aria-colindextext'?: string | undefined;
|
|
72
75
|
'aria-colspan'?: number | undefined;
|
|
73
|
-
'aria-
|
|
74
|
-
'aria-current'?: boolean | "true" | "time" | "page" | "false" | "step" | "location" | "date" | undefined;
|
|
76
|
+
'aria-current'?: boolean | "time" | "true" | "false" | "page" | "step" | "location" | "date" | undefined;
|
|
75
77
|
'aria-description'?: string | undefined;
|
|
76
78
|
'aria-details'?: string | undefined;
|
|
77
|
-
'aria-dropeffect'?: "link" | "
|
|
79
|
+
'aria-dropeffect'?: "link" | "copy" | "none" | "execute" | "move" | "popup" | undefined;
|
|
78
80
|
'aria-errormessage'?: string | undefined;
|
|
79
81
|
'aria-flowto'?: string | undefined;
|
|
80
82
|
'aria-grabbed'?: (boolean | "true" | "false") | undefined;
|
|
@@ -82,14 +84,12 @@ export declare const Menu: import("react").ComponentType<Partial<{
|
|
|
82
84
|
'aria-keyshortcuts'?: string | undefined;
|
|
83
85
|
'aria-level'?: number | undefined;
|
|
84
86
|
'aria-live'?: "off" | "assertive" | "polite" | undefined;
|
|
85
|
-
'aria-modal'?: (boolean | "true" | "false") | undefined;
|
|
86
87
|
'aria-multiline'?: (boolean | "true" | "false") | undefined;
|
|
87
88
|
'aria-multiselectable'?: (boolean | "true" | "false") | undefined;
|
|
88
89
|
'aria-orientation'?: "horizontal" | "vertical" | undefined;
|
|
89
90
|
'aria-owns'?: string | undefined;
|
|
90
91
|
'aria-placeholder'?: string | undefined;
|
|
91
92
|
'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;
|
|
@@ -272,8 +272,10 @@ export declare const Menu: import("react").ComponentType<Partial<{
|
|
|
272
272
|
} & {
|
|
273
273
|
readonly attributes: NamedNodeMap;
|
|
274
274
|
readonly localName: string;
|
|
275
|
+
size: import("@spectrum-web-components/base").ElementSize;
|
|
275
276
|
label: string;
|
|
276
|
-
|
|
277
|
+
animate: (keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions | undefined) => Animation;
|
|
278
|
+
readonly renderOptions: import("lit-html").RenderOptions;
|
|
277
279
|
blur: () => void;
|
|
278
280
|
click: () => void;
|
|
279
281
|
focus: ({ preventScroll }?: FocusOptions) => void;
|
|
@@ -281,13 +283,21 @@ export declare const Menu: import("react").ComponentType<Partial<{
|
|
|
281
283
|
(options?: ScrollToOptions | undefined): void;
|
|
282
284
|
(x: number, y: number): void;
|
|
283
285
|
};
|
|
286
|
+
autofocus: boolean;
|
|
287
|
+
normalize: () => void;
|
|
288
|
+
ariaHidden: string | null;
|
|
289
|
+
readonly childNodes: NodeListOf<ChildNode>;
|
|
290
|
+
shadowRoot: ShadowRoot;
|
|
291
|
+
remove: () => void;
|
|
292
|
+
selected: string[];
|
|
293
|
+
value: string;
|
|
294
|
+
disconnectedCallback: () => void;
|
|
295
|
+
connectedCallback: () => void;
|
|
284
296
|
readonly renderRoot: HTMLElement | ShadowRoot;
|
|
285
297
|
isUpdatePending: boolean;
|
|
286
298
|
hasUpdated: boolean;
|
|
287
299
|
addController: (controller: import("lit").ReactiveController) => void;
|
|
288
300
|
removeController: (controller: import("lit").ReactiveController) => void;
|
|
289
|
-
connectedCallback: () => void;
|
|
290
|
-
disconnectedCallback: () => void;
|
|
291
301
|
attributeChangedCallback: (name: string, _old: string | null, value: string | null) => void;
|
|
292
302
|
requestUpdate: (name?: PropertyKey | undefined, oldValue?: unknown, options?: import("lit").PropertyDeclaration<unknown, unknown> | undefined) => void;
|
|
293
303
|
readonly updateComplete: Promise<boolean>;
|
|
@@ -326,7 +336,6 @@ export declare const Menu: import("react").ComponentType<Partial<{
|
|
|
326
336
|
scrollLeft: number;
|
|
327
337
|
scrollTop: number;
|
|
328
338
|
readonly scrollWidth: number;
|
|
329
|
-
shadowRoot: ShadowRoot;
|
|
330
339
|
readonly tagName: string;
|
|
331
340
|
attachShadow: (init: ShadowRootInit) => ShadowRoot;
|
|
332
341
|
closest: {
|
|
@@ -383,7 +392,6 @@ export declare const Menu: import("react").ComponentType<Partial<{
|
|
|
383
392
|
toggleAttribute: (qualifiedName: string, force?: boolean | undefined) => boolean;
|
|
384
393
|
webkitMatchesSelector: (selectors: string) => boolean;
|
|
385
394
|
readonly baseURI: string;
|
|
386
|
-
readonly childNodes: NodeListOf<ChildNode>;
|
|
387
395
|
readonly firstChild: ChildNode | null;
|
|
388
396
|
readonly isConnected: boolean;
|
|
389
397
|
readonly lastChild: ChildNode | null;
|
|
@@ -439,7 +447,6 @@ export declare const Menu: import("react").ComponentType<Partial<{
|
|
|
439
447
|
ariaDisabled: string | null;
|
|
440
448
|
ariaExpanded: string | null;
|
|
441
449
|
ariaHasPopup: string | null;
|
|
442
|
-
ariaHidden: string | null;
|
|
443
450
|
ariaKeyShortcuts: string | null;
|
|
444
451
|
ariaLabel: string | null;
|
|
445
452
|
ariaLevel: string | null;
|
|
@@ -464,11 +471,9 @@ export declare const Menu: import("react").ComponentType<Partial<{
|
|
|
464
471
|
ariaValueMin: string | null;
|
|
465
472
|
ariaValueNow: string | null;
|
|
466
473
|
ariaValueText: string | null;
|
|
467
|
-
animate: (keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions | undefined) => Animation;
|
|
468
474
|
getAnimations: (options?: GetAnimationsOptions | undefined) => Animation[];
|
|
469
475
|
after: (...nodes: (string | Node)[]) => void;
|
|
470
476
|
before: (...nodes: (string | Node)[]) => void;
|
|
471
|
-
remove: () => void;
|
|
472
477
|
replaceWith: (...nodes: (string | Node)[]) => void;
|
|
473
478
|
innerHTML: string;
|
|
474
479
|
readonly nextElementSibling: Element | null;
|
|
@@ -584,19 +589,15 @@ export declare const Menu: import("react").ComponentType<Partial<{
|
|
|
584
589
|
onwebkitanimationstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
585
590
|
onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
586
591
|
onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
|
|
587
|
-
autofocus: boolean;
|
|
588
592
|
readonly dataset: DOMStringMap;
|
|
589
|
-
readonly renderOptions: import("lit-html").RenderOptions;
|
|
590
|
-
selected: string[];
|
|
591
|
-
value: string;
|
|
592
593
|
isLTR: boolean;
|
|
593
594
|
hasVisibleFocusInTree: () => boolean;
|
|
594
|
-
closeDescendentOverlays: () => void;
|
|
595
595
|
ignore: boolean;
|
|
596
|
-
selects: "inherit" | "
|
|
596
|
+
selects: "inherit" | "single" | "multiple" | undefined;
|
|
597
597
|
valueSeparator: string;
|
|
598
598
|
selectedItems: import("menu/src").MenuItem[];
|
|
599
599
|
menuSlot: HTMLSlotElement;
|
|
600
|
+
isSubmenu: boolean;
|
|
600
601
|
focusedItemIndex: number;
|
|
601
602
|
focusInItemIndex: number;
|
|
602
603
|
readonly childItems: import("menu/src").MenuItem[];
|
|
@@ -605,8 +606,6 @@ export declare const Menu: import("react").ComponentType<Partial<{
|
|
|
605
606
|
startListeningToKeyboard: () => void;
|
|
606
607
|
handleFocusout: (event: FocusEvent) => void;
|
|
607
608
|
stopListeningToKeyboard: () => void;
|
|
608
|
-
handleSubmenuClosed: (event: Event) => void;
|
|
609
|
-
handleSubmenuOpened: (event: Event) => void;
|
|
610
609
|
selectOrToggleItem: (targetItem: import("menu/src").MenuItem) => Promise<void>;
|
|
611
610
|
handleKeydown: (event: KeyboardEvent) => void;
|
|
612
611
|
focusMenuItemByOffset: (offset: number) => import("menu/src").MenuItem;
|
|
@@ -618,32 +617,36 @@ export declare const Menu: import("react").ComponentType<Partial<{
|
|
|
618
617
|
}> & import("react").RefAttributes<import("menu/src").Menu>>;
|
|
619
618
|
export declare const MenuDivider: import("react").ComponentType<Partial<{
|
|
620
619
|
dir?: string | undefined;
|
|
620
|
+
slot?: string | undefined;
|
|
621
|
+
style?: import("react").CSSProperties | undefined;
|
|
622
|
+
title?: string | undefined;
|
|
623
|
+
tabIndex?: number | undefined;
|
|
624
|
+
'aria-disabled'?: (boolean | "true" | "false") | undefined;
|
|
625
|
+
rel?: string | undefined;
|
|
626
|
+
id?: string | undefined;
|
|
627
|
+
className?: string | undefined;
|
|
621
628
|
'aria-hidden'?: (boolean | "true" | "false") | undefined;
|
|
629
|
+
color?: string | undefined;
|
|
630
|
+
lang?: string | undefined;
|
|
631
|
+
'aria-modal'?: (boolean | "true" | "false") | undefined;
|
|
622
632
|
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;
|
|
623
638
|
draggable?: (boolean | "true" | "false") | undefined;
|
|
624
639
|
hidden?: boolean | undefined;
|
|
625
|
-
lang?: string | undefined;
|
|
626
|
-
title?: string | undefined;
|
|
627
640
|
translate?: "yes" | "no" | undefined;
|
|
628
|
-
className?: string | undefined;
|
|
629
|
-
id?: string | undefined;
|
|
630
641
|
prefix?: string | undefined;
|
|
631
|
-
slot?: string | undefined;
|
|
632
642
|
children?: import("react").ReactNode;
|
|
633
|
-
style?: import("react").CSSProperties | undefined;
|
|
634
643
|
contentEditable?: "inherit" | (boolean | "true" | "false") | undefined;
|
|
635
|
-
inputMode?: "
|
|
644
|
+
inputMode?: "text" | "search" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
636
645
|
nonce?: string | undefined;
|
|
637
|
-
tabIndex?: number | undefined;
|
|
638
|
-
rel?: string | undefined;
|
|
639
|
-
'aria-disabled'?: (boolean | "true" | "false") | undefined;
|
|
640
646
|
'aria-describedby'?: string | undefined;
|
|
641
|
-
'aria-
|
|
642
|
-
'aria-expanded'?: (boolean | "true" | "false") | undefined;
|
|
643
|
-
role?: import("react").AriaRole | undefined;
|
|
647
|
+
'aria-controls'?: string | undefined;
|
|
644
648
|
'aria-selected'?: (boolean | "true" | "false") | undefined;
|
|
645
649
|
'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
|
|
646
|
-
'aria-label'?: string | undefined;
|
|
647
650
|
'aria-activedescendant'?: string | undefined;
|
|
648
651
|
'aria-labelledby'?: string | undefined;
|
|
649
652
|
defaultChecked?: boolean | undefined;
|
|
@@ -667,7 +670,6 @@ export declare const MenuDivider: import("react").ComponentType<Partial<{
|
|
|
667
670
|
autoCapitalize?: string | undefined;
|
|
668
671
|
autoCorrect?: string | undefined;
|
|
669
672
|
autoSave?: string | undefined;
|
|
670
|
-
color?: string | undefined;
|
|
671
673
|
itemProp?: string | undefined;
|
|
672
674
|
itemScope?: boolean | undefined;
|
|
673
675
|
itemType?: string | undefined;
|
|
@@ -686,11 +688,10 @@ export declare const MenuDivider: import("react").ComponentType<Partial<{
|
|
|
686
688
|
'aria-colindex'?: number | undefined;
|
|
687
689
|
'aria-colindextext'?: string | undefined;
|
|
688
690
|
'aria-colspan'?: number | undefined;
|
|
689
|
-
'aria-
|
|
690
|
-
'aria-current'?: boolean | "true" | "time" | "page" | "false" | "step" | "location" | "date" | undefined;
|
|
691
|
+
'aria-current'?: boolean | "time" | "true" | "false" | "page" | "step" | "location" | "date" | undefined;
|
|
691
692
|
'aria-description'?: string | undefined;
|
|
692
693
|
'aria-details'?: string | undefined;
|
|
693
|
-
'aria-dropeffect'?: "link" | "
|
|
694
|
+
'aria-dropeffect'?: "link" | "copy" | "none" | "execute" | "move" | "popup" | undefined;
|
|
694
695
|
'aria-errormessage'?: string | undefined;
|
|
695
696
|
'aria-flowto'?: string | undefined;
|
|
696
697
|
'aria-grabbed'?: (boolean | "true" | "false") | undefined;
|
|
@@ -698,14 +699,12 @@ export declare const MenuDivider: import("react").ComponentType<Partial<{
|
|
|
698
699
|
'aria-keyshortcuts'?: string | undefined;
|
|
699
700
|
'aria-level'?: number | undefined;
|
|
700
701
|
'aria-live'?: "off" | "assertive" | "polite" | undefined;
|
|
701
|
-
'aria-modal'?: (boolean | "true" | "false") | undefined;
|
|
702
702
|
'aria-multiline'?: (boolean | "true" | "false") | undefined;
|
|
703
703
|
'aria-multiselectable'?: (boolean | "true" | "false") | undefined;
|
|
704
704
|
'aria-orientation'?: "horizontal" | "vertical" | undefined;
|
|
705
705
|
'aria-owns'?: string | undefined;
|
|
706
706
|
'aria-placeholder'?: string | undefined;
|
|
707
707
|
'aria-posinset'?: number | undefined;
|
|
708
|
-
'aria-pressed'?: boolean | "true" | "false" | "mixed" | undefined;
|
|
709
708
|
'aria-readonly'?: (boolean | "true" | "false") | undefined;
|
|
710
709
|
'aria-relevant'?: "text" | "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
|
|
711
710
|
'aria-required'?: (boolean | "true" | "false") | undefined;
|
|
@@ -889,7 +888,8 @@ export declare const MenuDivider: import("react").ComponentType<Partial<{
|
|
|
889
888
|
readonly attributes: NamedNodeMap;
|
|
890
889
|
readonly localName: string;
|
|
891
890
|
size: import("@spectrum-web-components/base").ElementSize;
|
|
892
|
-
|
|
891
|
+
animate: (keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions | undefined) => Animation;
|
|
892
|
+
readonly renderOptions: import("lit-html").RenderOptions;
|
|
893
893
|
blur: () => void;
|
|
894
894
|
click: () => void;
|
|
895
895
|
focus: (options?: FocusOptions | undefined) => void;
|
|
@@ -897,13 +897,19 @@ export declare const MenuDivider: import("react").ComponentType<Partial<{
|
|
|
897
897
|
(options?: ScrollToOptions | undefined): void;
|
|
898
898
|
(x: number, y: number): void;
|
|
899
899
|
};
|
|
900
|
+
autofocus: boolean;
|
|
901
|
+
normalize: () => void;
|
|
902
|
+
ariaHidden: string | null;
|
|
903
|
+
readonly childNodes: NodeListOf<ChildNode>;
|
|
904
|
+
shadowRoot: ShadowRoot;
|
|
905
|
+
remove: () => void;
|
|
906
|
+
disconnectedCallback: () => void;
|
|
907
|
+
connectedCallback: () => void;
|
|
900
908
|
readonly renderRoot: HTMLElement | ShadowRoot;
|
|
901
909
|
isUpdatePending: boolean;
|
|
902
910
|
hasUpdated: boolean;
|
|
903
911
|
addController: (controller: import("lit").ReactiveController) => void;
|
|
904
912
|
removeController: (controller: import("lit").ReactiveController) => void;
|
|
905
|
-
connectedCallback: () => void;
|
|
906
|
-
disconnectedCallback: () => void;
|
|
907
913
|
attributeChangedCallback: (name: string, _old: string | null, value: string | null) => void;
|
|
908
914
|
requestUpdate: (name?: PropertyKey | undefined, oldValue?: unknown, options?: import("lit").PropertyDeclaration<unknown, unknown> | undefined) => void;
|
|
909
915
|
readonly updateComplete: Promise<boolean>;
|
|
@@ -942,7 +948,6 @@ export declare const MenuDivider: import("react").ComponentType<Partial<{
|
|
|
942
948
|
scrollLeft: number;
|
|
943
949
|
scrollTop: number;
|
|
944
950
|
readonly scrollWidth: number;
|
|
945
|
-
shadowRoot: ShadowRoot;
|
|
946
951
|
readonly tagName: string;
|
|
947
952
|
attachShadow: (init: ShadowRootInit) => ShadowRoot;
|
|
948
953
|
closest: {
|
|
@@ -999,7 +1004,6 @@ export declare const MenuDivider: import("react").ComponentType<Partial<{
|
|
|
999
1004
|
toggleAttribute: (qualifiedName: string, force?: boolean | undefined) => boolean;
|
|
1000
1005
|
webkitMatchesSelector: (selectors: string) => boolean;
|
|
1001
1006
|
readonly baseURI: string;
|
|
1002
|
-
readonly childNodes: NodeListOf<ChildNode>;
|
|
1003
1007
|
readonly firstChild: ChildNode | null;
|
|
1004
1008
|
readonly isConnected: boolean;
|
|
1005
1009
|
readonly lastChild: ChildNode | null;
|
|
@@ -1055,7 +1059,6 @@ export declare const MenuDivider: import("react").ComponentType<Partial<{
|
|
|
1055
1059
|
ariaDisabled: string | null;
|
|
1056
1060
|
ariaExpanded: string | null;
|
|
1057
1061
|
ariaHasPopup: string | null;
|
|
1058
|
-
ariaHidden: string | null;
|
|
1059
1062
|
ariaKeyShortcuts: string | null;
|
|
1060
1063
|
ariaLabel: string | null;
|
|
1061
1064
|
ariaLevel: string | null;
|
|
@@ -1080,11 +1083,9 @@ export declare const MenuDivider: import("react").ComponentType<Partial<{
|
|
|
1080
1083
|
ariaValueMin: string | null;
|
|
1081
1084
|
ariaValueNow: string | null;
|
|
1082
1085
|
ariaValueText: string | null;
|
|
1083
|
-
animate: (keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions | undefined) => Animation;
|
|
1084
1086
|
getAnimations: (options?: GetAnimationsOptions | undefined) => Animation[];
|
|
1085
1087
|
after: (...nodes: (string | Node)[]) => void;
|
|
1086
1088
|
before: (...nodes: (string | Node)[]) => void;
|
|
1087
|
-
remove: () => void;
|
|
1088
1089
|
replaceWith: (...nodes: (string | Node)[]) => void;
|
|
1089
1090
|
innerHTML: string;
|
|
1090
1091
|
readonly nextElementSibling: Element | null;
|
|
@@ -1200,40 +1201,42 @@ export declare const MenuDivider: import("react").ComponentType<Partial<{
|
|
|
1200
1201
|
onwebkitanimationstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
1201
1202
|
onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
1202
1203
|
onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
|
|
1203
|
-
autofocus: boolean;
|
|
1204
1204
|
readonly dataset: DOMStringMap;
|
|
1205
|
-
readonly renderOptions: import("lit-html").RenderOptions;
|
|
1206
1205
|
isLTR: boolean;
|
|
1207
1206
|
hasVisibleFocusInTree: () => boolean;
|
|
1208
1207
|
} & {}> & import("react").RefAttributes<import("menu/src").MenuDivider>>;
|
|
1209
1208
|
export declare const MenuGroup: import("react").ComponentType<Partial<{
|
|
1210
1209
|
dir?: string | undefined;
|
|
1210
|
+
slot?: string | undefined;
|
|
1211
|
+
style?: import("react").CSSProperties | undefined;
|
|
1212
|
+
title?: string | undefined;
|
|
1213
|
+
tabIndex?: number | undefined;
|
|
1214
|
+
'aria-disabled'?: (boolean | "true" | "false") | undefined;
|
|
1215
|
+
rel?: string | undefined;
|
|
1216
|
+
id?: string | undefined;
|
|
1217
|
+
className?: string | undefined;
|
|
1211
1218
|
'aria-hidden'?: (boolean | "true" | "false") | undefined;
|
|
1219
|
+
color?: string | undefined;
|
|
1220
|
+
lang?: string | undefined;
|
|
1221
|
+
'aria-modal'?: (boolean | "true" | "false") | undefined;
|
|
1212
1222
|
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;
|
|
1213
1228
|
draggable?: (boolean | "true" | "false") | undefined;
|
|
1214
1229
|
hidden?: boolean | undefined;
|
|
1215
|
-
lang?: string | undefined;
|
|
1216
|
-
title?: string | undefined;
|
|
1217
1230
|
translate?: "yes" | "no" | undefined;
|
|
1218
|
-
className?: string | undefined;
|
|
1219
|
-
id?: string | undefined;
|
|
1220
1231
|
prefix?: string | undefined;
|
|
1221
|
-
slot?: string | undefined;
|
|
1222
1232
|
children?: import("react").ReactNode;
|
|
1223
|
-
style?: import("react").CSSProperties | undefined;
|
|
1224
1233
|
contentEditable?: "inherit" | (boolean | "true" | "false") | undefined;
|
|
1225
|
-
inputMode?: "
|
|
1234
|
+
inputMode?: "text" | "search" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
1226
1235
|
nonce?: string | undefined;
|
|
1227
|
-
tabIndex?: number | undefined;
|
|
1228
|
-
rel?: string | undefined;
|
|
1229
|
-
'aria-disabled'?: (boolean | "true" | "false") | undefined;
|
|
1230
1236
|
'aria-describedby'?: string | undefined;
|
|
1231
|
-
'aria-
|
|
1232
|
-
'aria-expanded'?: (boolean | "true" | "false") | undefined;
|
|
1233
|
-
role?: import("react").AriaRole | undefined;
|
|
1237
|
+
'aria-controls'?: string | undefined;
|
|
1234
1238
|
'aria-selected'?: (boolean | "true" | "false") | undefined;
|
|
1235
1239
|
'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
|
|
1236
|
-
'aria-label'?: string | undefined;
|
|
1237
1240
|
'aria-activedescendant'?: string | undefined;
|
|
1238
1241
|
'aria-labelledby'?: string | undefined;
|
|
1239
1242
|
defaultChecked?: boolean | undefined;
|
|
@@ -1257,7 +1260,6 @@ export declare const MenuGroup: import("react").ComponentType<Partial<{
|
|
|
1257
1260
|
autoCapitalize?: string | undefined;
|
|
1258
1261
|
autoCorrect?: string | undefined;
|
|
1259
1262
|
autoSave?: string | undefined;
|
|
1260
|
-
color?: string | undefined;
|
|
1261
1263
|
itemProp?: string | undefined;
|
|
1262
1264
|
itemScope?: boolean | undefined;
|
|
1263
1265
|
itemType?: string | undefined;
|
|
@@ -1276,11 +1278,10 @@ export declare const MenuGroup: import("react").ComponentType<Partial<{
|
|
|
1276
1278
|
'aria-colindex'?: number | undefined;
|
|
1277
1279
|
'aria-colindextext'?: string | undefined;
|
|
1278
1280
|
'aria-colspan'?: number | undefined;
|
|
1279
|
-
'aria-
|
|
1280
|
-
'aria-current'?: boolean | "true" | "time" | "page" | "false" | "step" | "location" | "date" | undefined;
|
|
1281
|
+
'aria-current'?: boolean | "time" | "true" | "false" | "page" | "step" | "location" | "date" | undefined;
|
|
1281
1282
|
'aria-description'?: string | undefined;
|
|
1282
1283
|
'aria-details'?: string | undefined;
|
|
1283
|
-
'aria-dropeffect'?: "link" | "
|
|
1284
|
+
'aria-dropeffect'?: "link" | "copy" | "none" | "execute" | "move" | "popup" | undefined;
|
|
1284
1285
|
'aria-errormessage'?: string | undefined;
|
|
1285
1286
|
'aria-flowto'?: string | undefined;
|
|
1286
1287
|
'aria-grabbed'?: (boolean | "true" | "false") | undefined;
|
|
@@ -1288,14 +1289,12 @@ export declare const MenuGroup: import("react").ComponentType<Partial<{
|
|
|
1288
1289
|
'aria-keyshortcuts'?: string | undefined;
|
|
1289
1290
|
'aria-level'?: number | undefined;
|
|
1290
1291
|
'aria-live'?: "off" | "assertive" | "polite" | undefined;
|
|
1291
|
-
'aria-modal'?: (boolean | "true" | "false") | undefined;
|
|
1292
1292
|
'aria-multiline'?: (boolean | "true" | "false") | undefined;
|
|
1293
1293
|
'aria-multiselectable'?: (boolean | "true" | "false") | undefined;
|
|
1294
1294
|
'aria-orientation'?: "horizontal" | "vertical" | undefined;
|
|
1295
1295
|
'aria-owns'?: string | undefined;
|
|
1296
1296
|
'aria-placeholder'?: string | undefined;
|
|
1297
1297
|
'aria-posinset'?: number | undefined;
|
|
1298
|
-
'aria-pressed'?: boolean | "true" | "false" | "mixed" | undefined;
|
|
1299
1298
|
'aria-readonly'?: (boolean | "true" | "false") | undefined;
|
|
1300
1299
|
'aria-relevant'?: "text" | "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
|
|
1301
1300
|
'aria-required'?: (boolean | "true" | "false") | undefined;
|
|
@@ -1478,8 +1477,10 @@ export declare const MenuGroup: import("react").ComponentType<Partial<{
|
|
|
1478
1477
|
} & {
|
|
1479
1478
|
readonly attributes: NamedNodeMap;
|
|
1480
1479
|
readonly localName: string;
|
|
1480
|
+
size: import("@spectrum-web-components/base").ElementSize;
|
|
1481
1481
|
label: string;
|
|
1482
|
-
|
|
1482
|
+
animate: (keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions | undefined) => Animation;
|
|
1483
|
+
readonly renderOptions: import("lit-html").RenderOptions;
|
|
1483
1484
|
blur: () => void;
|
|
1484
1485
|
click: () => void;
|
|
1485
1486
|
focus: ({ preventScroll }?: FocusOptions) => void;
|
|
@@ -1487,13 +1488,21 @@ export declare const MenuGroup: import("react").ComponentType<Partial<{
|
|
|
1487
1488
|
(options?: ScrollToOptions | undefined): void;
|
|
1488
1489
|
(x: number, y: number): void;
|
|
1489
1490
|
};
|
|
1491
|
+
autofocus: boolean;
|
|
1492
|
+
normalize: () => void;
|
|
1493
|
+
ariaHidden: string | null;
|
|
1494
|
+
readonly childNodes: NodeListOf<ChildNode>;
|
|
1495
|
+
shadowRoot: ShadowRoot;
|
|
1496
|
+
remove: () => void;
|
|
1497
|
+
selected: string[];
|
|
1498
|
+
value: string;
|
|
1499
|
+
disconnectedCallback: () => void;
|
|
1500
|
+
connectedCallback: () => void;
|
|
1490
1501
|
readonly renderRoot: HTMLElement | ShadowRoot;
|
|
1491
1502
|
isUpdatePending: boolean;
|
|
1492
1503
|
hasUpdated: boolean;
|
|
1493
1504
|
addController: (controller: import("lit").ReactiveController) => void;
|
|
1494
1505
|
removeController: (controller: import("lit").ReactiveController) => void;
|
|
1495
|
-
connectedCallback: () => void;
|
|
1496
|
-
disconnectedCallback: () => void;
|
|
1497
1506
|
attributeChangedCallback: (name: string, _old: string | null, value: string | null) => void;
|
|
1498
1507
|
requestUpdate: (name?: PropertyKey | undefined, oldValue?: unknown, options?: import("lit").PropertyDeclaration<unknown, unknown> | undefined) => void;
|
|
1499
1508
|
readonly updateComplete: Promise<boolean>;
|
|
@@ -1532,7 +1541,6 @@ export declare const MenuGroup: import("react").ComponentType<Partial<{
|
|
|
1532
1541
|
scrollLeft: number;
|
|
1533
1542
|
scrollTop: number;
|
|
1534
1543
|
readonly scrollWidth: number;
|
|
1535
|
-
shadowRoot: ShadowRoot;
|
|
1536
1544
|
readonly tagName: string;
|
|
1537
1545
|
attachShadow: (init: ShadowRootInit) => ShadowRoot;
|
|
1538
1546
|
closest: {
|
|
@@ -1589,7 +1597,6 @@ export declare const MenuGroup: import("react").ComponentType<Partial<{
|
|
|
1589
1597
|
toggleAttribute: (qualifiedName: string, force?: boolean | undefined) => boolean;
|
|
1590
1598
|
webkitMatchesSelector: (selectors: string) => boolean;
|
|
1591
1599
|
readonly baseURI: string;
|
|
1592
|
-
readonly childNodes: NodeListOf<ChildNode>;
|
|
1593
1600
|
readonly firstChild: ChildNode | null;
|
|
1594
1601
|
readonly isConnected: boolean;
|
|
1595
1602
|
readonly lastChild: ChildNode | null;
|
|
@@ -1645,7 +1652,6 @@ export declare const MenuGroup: import("react").ComponentType<Partial<{
|
|
|
1645
1652
|
ariaDisabled: string | null;
|
|
1646
1653
|
ariaExpanded: string | null;
|
|
1647
1654
|
ariaHasPopup: string | null;
|
|
1648
|
-
ariaHidden: string | null;
|
|
1649
1655
|
ariaKeyShortcuts: string | null;
|
|
1650
1656
|
ariaLabel: string | null;
|
|
1651
1657
|
ariaLevel: string | null;
|
|
@@ -1670,11 +1676,9 @@ export declare const MenuGroup: import("react").ComponentType<Partial<{
|
|
|
1670
1676
|
ariaValueMin: string | null;
|
|
1671
1677
|
ariaValueNow: string | null;
|
|
1672
1678
|
ariaValueText: string | null;
|
|
1673
|
-
animate: (keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions | undefined) => Animation;
|
|
1674
1679
|
getAnimations: (options?: GetAnimationsOptions | undefined) => Animation[];
|
|
1675
1680
|
after: (...nodes: (string | Node)[]) => void;
|
|
1676
1681
|
before: (...nodes: (string | Node)[]) => void;
|
|
1677
|
-
remove: () => void;
|
|
1678
1682
|
replaceWith: (...nodes: (string | Node)[]) => void;
|
|
1679
1683
|
innerHTML: string;
|
|
1680
1684
|
readonly nextElementSibling: Element | null;
|
|
@@ -1790,19 +1794,15 @@ export declare const MenuGroup: import("react").ComponentType<Partial<{
|
|
|
1790
1794
|
onwebkitanimationstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
1791
1795
|
onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
1792
1796
|
onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
|
|
1793
|
-
autofocus: boolean;
|
|
1794
1797
|
readonly dataset: DOMStringMap;
|
|
1795
|
-
readonly renderOptions: import("lit-html").RenderOptions;
|
|
1796
|
-
selected: string[];
|
|
1797
|
-
value: string;
|
|
1798
1798
|
isLTR: boolean;
|
|
1799
1799
|
hasVisibleFocusInTree: () => boolean;
|
|
1800
|
-
closeDescendentOverlays: () => void;
|
|
1801
1800
|
ignore: boolean;
|
|
1802
|
-
selects: "inherit" | "
|
|
1801
|
+
selects: "inherit" | "single" | "multiple" | undefined;
|
|
1803
1802
|
valueSeparator: string;
|
|
1804
1803
|
selectedItems: import("menu/src").MenuItem[];
|
|
1805
1804
|
menuSlot: HTMLSlotElement;
|
|
1805
|
+
isSubmenu: boolean;
|
|
1806
1806
|
focusedItemIndex: number;
|
|
1807
1807
|
focusInItemIndex: number;
|
|
1808
1808
|
readonly childItems: import("menu/src").MenuItem[];
|
|
@@ -1811,8 +1811,6 @@ export declare const MenuGroup: import("react").ComponentType<Partial<{
|
|
|
1811
1811
|
startListeningToKeyboard: () => void;
|
|
1812
1812
|
handleFocusout: (event: FocusEvent) => void;
|
|
1813
1813
|
stopListeningToKeyboard: () => void;
|
|
1814
|
-
handleSubmenuClosed: (event: Event) => void;
|
|
1815
|
-
handleSubmenuOpened: (event: Event) => void;
|
|
1816
1814
|
selectOrToggleItem: (targetItem: import("menu/src").MenuItem) => Promise<void>;
|
|
1817
1815
|
handleKeydown: (event: KeyboardEvent) => void;
|
|
1818
1816
|
focusMenuItemByOffset: (offset: number) => import("menu/src").MenuItem;
|
|
@@ -1824,32 +1822,36 @@ export declare const MenuGroup: import("react").ComponentType<Partial<{
|
|
|
1824
1822
|
}> & import("react").RefAttributes<import("menu/src").MenuGroup>>;
|
|
1825
1823
|
export declare const MenuItem: import("react").ComponentType<Partial<{
|
|
1826
1824
|
dir?: string | undefined;
|
|
1825
|
+
slot?: string | undefined;
|
|
1826
|
+
style?: import("react").CSSProperties | undefined;
|
|
1827
|
+
title?: string | undefined;
|
|
1828
|
+
tabIndex?: number | undefined;
|
|
1829
|
+
'aria-disabled'?: (boolean | "true" | "false") | undefined;
|
|
1830
|
+
rel?: string | undefined;
|
|
1831
|
+
id?: string | undefined;
|
|
1832
|
+
className?: string | undefined;
|
|
1827
1833
|
'aria-hidden'?: (boolean | "true" | "false") | undefined;
|
|
1834
|
+
color?: string | undefined;
|
|
1835
|
+
lang?: string | undefined;
|
|
1836
|
+
'aria-modal'?: (boolean | "true" | "false") | undefined;
|
|
1828
1837
|
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;
|
|
1829
1843
|
draggable?: (boolean | "true" | "false") | undefined;
|
|
1830
1844
|
hidden?: boolean | undefined;
|
|
1831
|
-
lang?: string | undefined;
|
|
1832
|
-
title?: string | undefined;
|
|
1833
1845
|
translate?: "yes" | "no" | undefined;
|
|
1834
|
-
className?: string | undefined;
|
|
1835
|
-
id?: string | undefined;
|
|
1836
1846
|
prefix?: string | undefined;
|
|
1837
|
-
slot?: string | undefined;
|
|
1838
1847
|
children?: import("react").ReactNode;
|
|
1839
|
-
style?: import("react").CSSProperties | undefined;
|
|
1840
1848
|
contentEditable?: "inherit" | (boolean | "true" | "false") | undefined;
|
|
1841
|
-
inputMode?: "
|
|
1849
|
+
inputMode?: "text" | "search" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
1842
1850
|
nonce?: string | undefined;
|
|
1843
|
-
tabIndex?: number | undefined;
|
|
1844
|
-
rel?: string | undefined;
|
|
1845
|
-
'aria-disabled'?: (boolean | "true" | "false") | undefined;
|
|
1846
1851
|
'aria-describedby'?: string | undefined;
|
|
1847
|
-
'aria-
|
|
1848
|
-
'aria-expanded'?: (boolean | "true" | "false") | undefined;
|
|
1849
|
-
role?: import("react").AriaRole | undefined;
|
|
1852
|
+
'aria-controls'?: string | undefined;
|
|
1850
1853
|
'aria-selected'?: (boolean | "true" | "false") | undefined;
|
|
1851
1854
|
'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
|
|
1852
|
-
'aria-label'?: string | undefined;
|
|
1853
1855
|
'aria-activedescendant'?: string | undefined;
|
|
1854
1856
|
'aria-labelledby'?: string | undefined;
|
|
1855
1857
|
defaultChecked?: boolean | undefined;
|
|
@@ -1873,7 +1875,6 @@ export declare const MenuItem: import("react").ComponentType<Partial<{
|
|
|
1873
1875
|
autoCapitalize?: string | undefined;
|
|
1874
1876
|
autoCorrect?: string | undefined;
|
|
1875
1877
|
autoSave?: string | undefined;
|
|
1876
|
-
color?: string | undefined;
|
|
1877
1878
|
itemProp?: string | undefined;
|
|
1878
1879
|
itemScope?: boolean | undefined;
|
|
1879
1880
|
itemType?: string | undefined;
|
|
@@ -1892,11 +1893,10 @@ export declare const MenuItem: import("react").ComponentType<Partial<{
|
|
|
1892
1893
|
'aria-colindex'?: number | undefined;
|
|
1893
1894
|
'aria-colindextext'?: string | undefined;
|
|
1894
1895
|
'aria-colspan'?: number | undefined;
|
|
1895
|
-
'aria-
|
|
1896
|
-
'aria-current'?: boolean | "true" | "time" | "page" | "false" | "step" | "location" | "date" | undefined;
|
|
1896
|
+
'aria-current'?: boolean | "time" | "true" | "false" | "page" | "step" | "location" | "date" | undefined;
|
|
1897
1897
|
'aria-description'?: string | undefined;
|
|
1898
1898
|
'aria-details'?: string | undefined;
|
|
1899
|
-
'aria-dropeffect'?: "link" | "
|
|
1899
|
+
'aria-dropeffect'?: "link" | "copy" | "none" | "execute" | "move" | "popup" | undefined;
|
|
1900
1900
|
'aria-errormessage'?: string | undefined;
|
|
1901
1901
|
'aria-flowto'?: string | undefined;
|
|
1902
1902
|
'aria-grabbed'?: (boolean | "true" | "false") | undefined;
|
|
@@ -1904,14 +1904,12 @@ export declare const MenuItem: import("react").ComponentType<Partial<{
|
|
|
1904
1904
|
'aria-keyshortcuts'?: string | undefined;
|
|
1905
1905
|
'aria-level'?: number | undefined;
|
|
1906
1906
|
'aria-live'?: "off" | "assertive" | "polite" | undefined;
|
|
1907
|
-
'aria-modal'?: (boolean | "true" | "false") | undefined;
|
|
1908
1907
|
'aria-multiline'?: (boolean | "true" | "false") | undefined;
|
|
1909
1908
|
'aria-multiselectable'?: (boolean | "true" | "false") | undefined;
|
|
1910
1909
|
'aria-orientation'?: "horizontal" | "vertical" | undefined;
|
|
1911
1910
|
'aria-owns'?: string | undefined;
|
|
1912
1911
|
'aria-placeholder'?: string | undefined;
|
|
1913
1912
|
'aria-posinset'?: number | undefined;
|
|
1914
|
-
'aria-pressed'?: boolean | "true" | "false" | "mixed" | undefined;
|
|
1915
1913
|
'aria-readonly'?: (boolean | "true" | "false") | undefined;
|
|
1916
1914
|
'aria-relevant'?: "text" | "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
|
|
1917
1915
|
'aria-required'?: (boolean | "true" | "false") | undefined;
|
|
@@ -2095,7 +2093,8 @@ export declare const MenuItem: import("react").ComponentType<Partial<{
|
|
|
2095
2093
|
readonly attributes: NamedNodeMap;
|
|
2096
2094
|
readonly localName: string;
|
|
2097
2095
|
label?: string | undefined;
|
|
2098
|
-
|
|
2096
|
+
animate: (keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions | undefined) => Animation;
|
|
2097
|
+
readonly renderOptions: import("lit-html").RenderOptions;
|
|
2099
2098
|
blur: () => void;
|
|
2100
2099
|
click: () => void;
|
|
2101
2100
|
focus: (options?: FocusOptions | undefined) => void;
|
|
@@ -2103,13 +2102,29 @@ export declare const MenuItem: import("react").ComponentType<Partial<{
|
|
|
2103
2102
|
(options?: ScrollToOptions | undefined): void;
|
|
2104
2103
|
(x: number, y: number): void;
|
|
2105
2104
|
};
|
|
2105
|
+
disabled: boolean;
|
|
2106
|
+
autofocus: boolean;
|
|
2107
|
+
normalize: () => void;
|
|
2108
|
+
download?: string | undefined;
|
|
2109
|
+
href?: string | undefined;
|
|
2110
|
+
target?: "_blank" | "_parent" | "_self" | "_top" | undefined;
|
|
2111
|
+
ariaHidden: string | null;
|
|
2112
|
+
slotContentIsPresent: boolean;
|
|
2113
|
+
slotHasContent: boolean;
|
|
2114
|
+
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;
|
|
2106
2123
|
readonly renderRoot: HTMLElement | ShadowRoot;
|
|
2107
2124
|
isUpdatePending: boolean;
|
|
2108
2125
|
hasUpdated: boolean;
|
|
2109
2126
|
addController: (controller: import("lit").ReactiveController) => void;
|
|
2110
2127
|
removeController: (controller: import("lit").ReactiveController) => void;
|
|
2111
|
-
connectedCallback: () => void;
|
|
2112
|
-
disconnectedCallback: () => void;
|
|
2113
2128
|
attributeChangedCallback: (name: string, _old: string | null, value: string | null) => void;
|
|
2114
2129
|
requestUpdate: (name?: PropertyKey | undefined, oldValue?: unknown, options?: import("lit").PropertyDeclaration<unknown, unknown> | undefined) => void;
|
|
2115
2130
|
readonly updateComplete: Promise<boolean>;
|
|
@@ -2148,7 +2163,6 @@ export declare const MenuItem: import("react").ComponentType<Partial<{
|
|
|
2148
2163
|
scrollLeft: number;
|
|
2149
2164
|
scrollTop: number;
|
|
2150
2165
|
readonly scrollWidth: number;
|
|
2151
|
-
shadowRoot: ShadowRoot;
|
|
2152
2166
|
readonly tagName: string;
|
|
2153
2167
|
attachShadow: (init: ShadowRootInit) => ShadowRoot;
|
|
2154
2168
|
closest: {
|
|
@@ -2205,7 +2219,6 @@ export declare const MenuItem: import("react").ComponentType<Partial<{
|
|
|
2205
2219
|
toggleAttribute: (qualifiedName: string, force?: boolean | undefined) => boolean;
|
|
2206
2220
|
webkitMatchesSelector: (selectors: string) => boolean;
|
|
2207
2221
|
readonly baseURI: string;
|
|
2208
|
-
readonly childNodes: NodeListOf<ChildNode>;
|
|
2209
2222
|
readonly firstChild: ChildNode | null;
|
|
2210
2223
|
readonly isConnected: boolean;
|
|
2211
2224
|
readonly lastChild: ChildNode | null;
|
|
@@ -2261,7 +2274,6 @@ export declare const MenuItem: import("react").ComponentType<Partial<{
|
|
|
2261
2274
|
ariaDisabled: string | null;
|
|
2262
2275
|
ariaExpanded: string | null;
|
|
2263
2276
|
ariaHasPopup: string | null;
|
|
2264
|
-
ariaHidden: string | null;
|
|
2265
2277
|
ariaKeyShortcuts: string | null;
|
|
2266
2278
|
ariaLabel: string | null;
|
|
2267
2279
|
ariaLevel: string | null;
|
|
@@ -2286,11 +2298,9 @@ export declare const MenuItem: import("react").ComponentType<Partial<{
|
|
|
2286
2298
|
ariaValueMin: string | null;
|
|
2287
2299
|
ariaValueNow: string | null;
|
|
2288
2300
|
ariaValueText: string | null;
|
|
2289
|
-
animate: (keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions | undefined) => Animation;
|
|
2290
2301
|
getAnimations: (options?: GetAnimationsOptions | undefined) => Animation[];
|
|
2291
2302
|
after: (...nodes: (string | Node)[]) => void;
|
|
2292
2303
|
before: (...nodes: (string | Node)[]) => void;
|
|
2293
|
-
remove: () => void;
|
|
2294
2304
|
replaceWith: (...nodes: (string | Node)[]) => void;
|
|
2295
2305
|
innerHTML: string;
|
|
2296
2306
|
readonly nextElementSibling: Element | null;
|
|
@@ -2406,40 +2416,28 @@ export declare const MenuItem: import("react").ComponentType<Partial<{
|
|
|
2406
2416
|
onwebkitanimationstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
2407
2417
|
onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
2408
2418
|
onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
|
|
2409
|
-
autofocus: boolean;
|
|
2410
2419
|
readonly dataset: DOMStringMap;
|
|
2411
|
-
|
|
2412
|
-
|
|
2413
|
-
target?: "_blank" | "_parent" | "_self" | "_top" | undefined;
|
|
2414
|
-
disabled: boolean;
|
|
2415
|
-
open: boolean;
|
|
2416
|
-
readonly renderOptions: import("lit-html").RenderOptions;
|
|
2417
|
-
active: boolean;
|
|
2420
|
+
isLTR: boolean;
|
|
2421
|
+
hasVisibleFocusInTree: () => boolean;
|
|
2418
2422
|
focused: boolean;
|
|
2419
|
-
selected: boolean;
|
|
2420
|
-
value: string;
|
|
2421
2423
|
hasSubmenu: boolean;
|
|
2422
|
-
contentSlot: HTMLSlotElement;
|
|
2423
|
-
iconSlot: HTMLSlotElement;
|
|
2424
2424
|
noWrap: boolean;
|
|
2425
|
-
overlayElement: import("overlay/src").Overlay;
|
|
2426
2425
|
readonly itemText: string;
|
|
2427
2426
|
readonly focusElement: HTMLElement;
|
|
2428
2427
|
readonly itemChildren: import("menu/src").MenuItemChildren;
|
|
2428
|
+
closeOverlay?: (() => Promise<void>) | undefined;
|
|
2429
2429
|
openOverlay: () => Promise<void>;
|
|
2430
2430
|
updateAriaSelected: () => void;
|
|
2431
2431
|
setRole: (role: string) => void;
|
|
2432
2432
|
_parentElement: HTMLElement;
|
|
2433
2433
|
triggerUpdate: () => Promise<void>;
|
|
2434
|
-
dispatchUpdate: () => void;
|
|
2435
2434
|
menuData: {
|
|
2436
2435
|
focusRoot?: import("menu/src").Menu | undefined;
|
|
2437
|
-
parentMenu?: import("menu/src").Menu | undefined;
|
|
2438
2436
|
selectionRoot?: import("menu/src").Menu | undefined;
|
|
2439
|
-
cleanupSteps: ((item: import("menu/src").MenuItem) => void)[];
|
|
2440
2437
|
};
|
|
2441
|
-
|
|
2442
|
-
|
|
2438
|
+
getSlotContentPresence: (selector: string) => boolean;
|
|
2439
|
+
managePresenceObservedSlot: () => void;
|
|
2440
|
+
manageTextObservedSlot: () => void;
|
|
2443
2441
|
renderAnchor: (options: {
|
|
2444
2442
|
id: string;
|
|
2445
2443
|
className?: string | undefined;
|
|
@@ -2450,4 +2448,5 @@ export declare const MenuItem: import("react").ComponentType<Partial<{
|
|
|
2450
2448
|
}) => import("lit-html").TemplateResult<2 | 1>;
|
|
2451
2449
|
} & {
|
|
2452
2450
|
spMenuItemAdded: (e: Event) => void;
|
|
2451
|
+
spMenuItemRemoved: (e: Event) => void;
|
|
2453
2452
|
}> & import("react").RefAttributes<import("menu/src").MenuItem>>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@swc-react/menu",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.36.0",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
],
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@lit-labs/react": "^1.1.1",
|
|
33
|
-
"@spectrum-web-components/menu": "^0.
|
|
33
|
+
"@spectrum-web-components/menu": "^0.36.0"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
36
|
"next": "~13.4"
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
"optional": true
|
|
41
41
|
}
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "a532ff8a410abeefb54d9638a2316ae82570566e"
|
|
44
44
|
}
|