@swc-react/menu 0.34.1-rc.0 → 0.35.1-rc.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/next.d.ts +218 -181
- package/package.json +3 -3
package/next.d.ts
CHANGED
|
@@ -1,28 +1,32 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react" />
|
|
2
3
|
export declare const Menu: import("react").ComponentType<Partial<{
|
|
3
4
|
dir?: string | undefined;
|
|
5
|
+
'aria-hidden'?: (boolean | "true" | "false") | undefined;
|
|
6
|
+
accessKey?: string | undefined;
|
|
7
|
+
draggable?: (boolean | "true" | "false") | undefined;
|
|
8
|
+
hidden?: boolean | undefined;
|
|
9
|
+
lang?: string | undefined;
|
|
4
10
|
title?: string | undefined;
|
|
5
|
-
|
|
11
|
+
translate?: "yes" | "no" | undefined;
|
|
6
12
|
className?: string | undefined;
|
|
13
|
+
id?: string | undefined;
|
|
14
|
+
prefix?: string | undefined;
|
|
7
15
|
slot?: string | undefined;
|
|
16
|
+
children?: import("react").ReactNode;
|
|
8
17
|
style?: import("react").CSSProperties | undefined;
|
|
18
|
+
contentEditable?: "inherit" | (boolean | "true" | "false") | undefined;
|
|
19
|
+
inputMode?: "search" | "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
20
|
+
nonce?: string | undefined;
|
|
9
21
|
tabIndex?: number | undefined;
|
|
22
|
+
rel?: string | undefined;
|
|
10
23
|
'aria-disabled'?: (boolean | "true" | "false") | undefined;
|
|
11
|
-
accessKey?: string | undefined;
|
|
12
|
-
color?: string | undefined;
|
|
13
|
-
lang?: string | undefined;
|
|
14
24
|
'aria-describedby'?: string | undefined;
|
|
25
|
+
'aria-haspopup'?: boolean | "true" | "dialog" | "menu" | "false" | "listbox" | "tree" | "grid" | undefined;
|
|
26
|
+
'aria-expanded'?: (boolean | "true" | "false") | undefined;
|
|
15
27
|
role?: import("react").AriaRole | undefined;
|
|
16
28
|
'aria-selected'?: (boolean | "true" | "false") | undefined;
|
|
17
29
|
'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
|
|
18
|
-
draggable?: (boolean | "true" | "false") | undefined;
|
|
19
|
-
hidden?: boolean | undefined;
|
|
20
|
-
translate?: "yes" | "no" | undefined;
|
|
21
|
-
prefix?: string | undefined;
|
|
22
|
-
children?: import("react").ReactNode;
|
|
23
|
-
contentEditable?: "inherit" | (boolean | "true" | "false") | undefined;
|
|
24
|
-
inputMode?: "none" | "text" | "search" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
25
|
-
nonce?: string | undefined;
|
|
26
30
|
'aria-label'?: string | undefined;
|
|
27
31
|
'aria-activedescendant'?: string | undefined;
|
|
28
32
|
'aria-labelledby'?: string | undefined;
|
|
@@ -30,20 +34,24 @@ export declare const Menu: import("react").ComponentType<Partial<{
|
|
|
30
34
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
31
35
|
suppressContentEditableWarning?: boolean | undefined;
|
|
32
36
|
suppressHydrationWarning?: boolean | undefined;
|
|
37
|
+
autoFocus?: boolean | undefined;
|
|
33
38
|
contextMenu?: string | undefined;
|
|
34
39
|
placeholder?: string | undefined;
|
|
35
40
|
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
36
41
|
radioGroup?: string | undefined;
|
|
37
42
|
about?: string | undefined;
|
|
43
|
+
content?: string | undefined;
|
|
38
44
|
datatype?: string | undefined;
|
|
39
45
|
inlist?: any;
|
|
40
46
|
property?: string | undefined;
|
|
41
47
|
resource?: string | undefined;
|
|
48
|
+
rev?: string | undefined;
|
|
42
49
|
typeof?: string | undefined;
|
|
43
50
|
vocab?: string | undefined;
|
|
44
51
|
autoCapitalize?: string | undefined;
|
|
45
52
|
autoCorrect?: string | undefined;
|
|
46
53
|
autoSave?: string | undefined;
|
|
54
|
+
color?: string | undefined;
|
|
47
55
|
itemProp?: string | undefined;
|
|
48
56
|
itemScope?: boolean | undefined;
|
|
49
57
|
itemType?: string | undefined;
|
|
@@ -55,20 +63,21 @@ export declare const Menu: import("react").ComponentType<Partial<{
|
|
|
55
63
|
is?: string | undefined;
|
|
56
64
|
'aria-atomic'?: (boolean | "true" | "false") | undefined;
|
|
57
65
|
'aria-autocomplete'?: "none" | "inline" | "list" | "both" | undefined;
|
|
66
|
+
'aria-braillelabel'?: string | undefined;
|
|
67
|
+
'aria-brailleroledescription'?: string | undefined;
|
|
58
68
|
'aria-busy'?: (boolean | "true" | "false") | undefined;
|
|
59
69
|
'aria-colcount'?: number | undefined;
|
|
60
70
|
'aria-colindex'?: number | undefined;
|
|
71
|
+
'aria-colindextext'?: string | undefined;
|
|
61
72
|
'aria-colspan'?: number | undefined;
|
|
62
73
|
'aria-controls'?: string | undefined;
|
|
63
74
|
'aria-current'?: boolean | "true" | "time" | "page" | "false" | "step" | "location" | "date" | undefined;
|
|
75
|
+
'aria-description'?: string | undefined;
|
|
64
76
|
'aria-details'?: string | undefined;
|
|
65
|
-
'aria-dropeffect'?: "
|
|
77
|
+
'aria-dropeffect'?: "link" | "none" | "copy" | "execute" | "move" | "popup" | undefined;
|
|
66
78
|
'aria-errormessage'?: string | undefined;
|
|
67
|
-
'aria-expanded'?: (boolean | "true" | "false") | undefined;
|
|
68
79
|
'aria-flowto'?: string | undefined;
|
|
69
80
|
'aria-grabbed'?: (boolean | "true" | "false") | undefined;
|
|
70
|
-
'aria-haspopup'?: boolean | "true" | "dialog" | "menu" | "false" | "listbox" | "grid" | "tree" | undefined;
|
|
71
|
-
'aria-hidden'?: (boolean | "true" | "false") | undefined;
|
|
72
81
|
'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
|
|
73
82
|
'aria-keyshortcuts'?: string | undefined;
|
|
74
83
|
'aria-level'?: number | undefined;
|
|
@@ -87,6 +96,7 @@ export declare const Menu: import("react").ComponentType<Partial<{
|
|
|
87
96
|
'aria-roledescription'?: string | undefined;
|
|
88
97
|
'aria-rowcount'?: number | undefined;
|
|
89
98
|
'aria-rowindex'?: number | undefined;
|
|
99
|
+
'aria-rowindextext'?: string | undefined;
|
|
90
100
|
'aria-rowspan'?: number | undefined;
|
|
91
101
|
'aria-setsize'?: number | undefined;
|
|
92
102
|
'aria-sort'?: "none" | "ascending" | "descending" | "other" | undefined;
|
|
@@ -95,7 +105,7 @@ export declare const Menu: import("react").ComponentType<Partial<{
|
|
|
95
105
|
'aria-valuenow'?: number | undefined;
|
|
96
106
|
'aria-valuetext'?: string | undefined;
|
|
97
107
|
dangerouslySetInnerHTML?: {
|
|
98
|
-
__html: string;
|
|
108
|
+
__html: string | TrustedHTML;
|
|
99
109
|
} | undefined;
|
|
100
110
|
onCopy?: import("react").ClipboardEventHandler<import("menu/src").Menu> | undefined;
|
|
101
111
|
onCopyCapture?: import("react").ClipboardEventHandler<import("menu/src").Menu> | undefined;
|
|
@@ -263,6 +273,7 @@ export declare const Menu: import("react").ComponentType<Partial<{
|
|
|
263
273
|
readonly attributes: NamedNodeMap;
|
|
264
274
|
readonly localName: string;
|
|
265
275
|
label: string;
|
|
276
|
+
normalize: () => void;
|
|
266
277
|
blur: () => void;
|
|
267
278
|
click: () => void;
|
|
268
279
|
focus: ({ preventScroll }?: FocusOptions) => void;
|
|
@@ -270,33 +281,13 @@ export declare const Menu: import("react").ComponentType<Partial<{
|
|
|
270
281
|
(options?: ScrollToOptions | undefined): void;
|
|
271
282
|
(x: number, y: number): void;
|
|
272
283
|
};
|
|
273
|
-
ariaHidden: string | null;
|
|
274
|
-
animate: (keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions | undefined) => Animation;
|
|
275
|
-
autofocus: boolean;
|
|
276
|
-
normalize: () => void;
|
|
277
|
-
addEventListener: {
|
|
278
|
-
<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
279
|
-
(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
280
|
-
};
|
|
281
|
-
dispatchEvent: (event: Event) => boolean;
|
|
282
|
-
removeEventListener: {
|
|
283
|
-
<K_1 extends keyof HTMLElementEventMap>(type: K_1, listener: (this: HTMLElement, ev: HTMLElementEventMap[K_1]) => any, options?: boolean | EventListenerOptions | undefined): void;
|
|
284
|
-
(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions | undefined): void;
|
|
285
|
-
};
|
|
286
|
-
readonly assignedSlot: HTMLSlotElement | null;
|
|
287
|
-
shadowRoot: ShadowRoot;
|
|
288
|
-
readonly parentElement: HTMLElement | null;
|
|
289
|
-
readonly renderOptions: import("lit-html").RenderOptions;
|
|
290
|
-
readonly childNodes: NodeListOf<ChildNode>;
|
|
291
|
-
selected: string[];
|
|
292
|
-
value: string;
|
|
293
|
-
connectedCallback: () => void;
|
|
294
|
-
disconnectedCallback: () => void;
|
|
295
284
|
readonly renderRoot: HTMLElement | ShadowRoot;
|
|
296
285
|
isUpdatePending: boolean;
|
|
297
286
|
hasUpdated: boolean;
|
|
298
287
|
addController: (controller: import("lit").ReactiveController) => void;
|
|
299
288
|
removeController: (controller: import("lit").ReactiveController) => void;
|
|
289
|
+
connectedCallback: () => void;
|
|
290
|
+
disconnectedCallback: () => void;
|
|
300
291
|
attributeChangedCallback: (name: string, _old: string | null, value: string | null) => void;
|
|
301
292
|
requestUpdate: (name?: PropertyKey | undefined, oldValue?: unknown, options?: import("lit").PropertyDeclaration<unknown, unknown> | undefined) => void;
|
|
302
293
|
readonly updateComplete: Promise<boolean>;
|
|
@@ -312,6 +303,14 @@ export declare const Menu: import("react").ComponentType<Partial<{
|
|
|
312
303
|
outerText: string;
|
|
313
304
|
spellcheck: boolean;
|
|
314
305
|
attachInternals: () => ElementInternals;
|
|
306
|
+
addEventListener: {
|
|
307
|
+
<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
308
|
+
(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
309
|
+
};
|
|
310
|
+
removeEventListener: {
|
|
311
|
+
<K_1 extends keyof HTMLElementEventMap>(type: K_1, listener: (this: HTMLElement, ev: HTMLElementEventMap[K_1]) => any, options?: boolean | EventListenerOptions | undefined): void;
|
|
312
|
+
(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions | undefined): void;
|
|
313
|
+
};
|
|
315
314
|
readonly classList: DOMTokenList;
|
|
316
315
|
readonly clientHeight: number;
|
|
317
316
|
readonly clientLeft: number;
|
|
@@ -327,6 +326,7 @@ export declare const Menu: import("react").ComponentType<Partial<{
|
|
|
327
326
|
scrollLeft: number;
|
|
328
327
|
scrollTop: number;
|
|
329
328
|
readonly scrollWidth: number;
|
|
329
|
+
shadowRoot: ShadowRoot;
|
|
330
330
|
readonly tagName: string;
|
|
331
331
|
attachShadow: (init: ShadowRootInit) => ShadowRoot;
|
|
332
332
|
closest: {
|
|
@@ -383,6 +383,7 @@ export declare const Menu: import("react").ComponentType<Partial<{
|
|
|
383
383
|
toggleAttribute: (qualifiedName: string, force?: boolean | undefined) => boolean;
|
|
384
384
|
webkitMatchesSelector: (selectors: string) => boolean;
|
|
385
385
|
readonly baseURI: string;
|
|
386
|
+
readonly childNodes: NodeListOf<ChildNode>;
|
|
386
387
|
readonly firstChild: ChildNode | null;
|
|
387
388
|
readonly isConnected: boolean;
|
|
388
389
|
readonly lastChild: ChildNode | null;
|
|
@@ -390,6 +391,7 @@ export declare const Menu: import("react").ComponentType<Partial<{
|
|
|
390
391
|
readonly nodeName: string;
|
|
391
392
|
readonly nodeType: number;
|
|
392
393
|
nodeValue: string | null;
|
|
394
|
+
readonly parentElement: HTMLElement | null;
|
|
393
395
|
readonly parentNode: ParentNode | null;
|
|
394
396
|
readonly previousSibling: ChildNode | null;
|
|
395
397
|
textContent: string | null;
|
|
@@ -425,6 +427,7 @@ export declare const Menu: import("react").ComponentType<Partial<{
|
|
|
425
427
|
readonly NOTATION_NODE: number;
|
|
426
428
|
readonly PROCESSING_INSTRUCTION_NODE: number;
|
|
427
429
|
readonly TEXT_NODE: number;
|
|
430
|
+
dispatchEvent: (event: Event) => boolean;
|
|
428
431
|
ariaAtomic: string | null;
|
|
429
432
|
ariaAutoComplete: string | null;
|
|
430
433
|
ariaBusy: string | null;
|
|
@@ -436,6 +439,7 @@ export declare const Menu: import("react").ComponentType<Partial<{
|
|
|
436
439
|
ariaDisabled: string | null;
|
|
437
440
|
ariaExpanded: string | null;
|
|
438
441
|
ariaHasPopup: string | null;
|
|
442
|
+
ariaHidden: string | null;
|
|
439
443
|
ariaKeyShortcuts: string | null;
|
|
440
444
|
ariaLabel: string | null;
|
|
441
445
|
ariaLevel: string | null;
|
|
@@ -460,6 +464,7 @@ export declare const Menu: import("react").ComponentType<Partial<{
|
|
|
460
464
|
ariaValueMin: string | null;
|
|
461
465
|
ariaValueNow: string | null;
|
|
462
466
|
ariaValueText: string | null;
|
|
467
|
+
animate: (keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions | undefined) => Animation;
|
|
463
468
|
getAnimations: (options?: GetAnimationsOptions | undefined) => Animation[];
|
|
464
469
|
after: (...nodes: (string | Node)[]) => void;
|
|
465
470
|
before: (...nodes: (string | Node)[]) => void;
|
|
@@ -484,6 +489,7 @@ export declare const Menu: import("react").ComponentType<Partial<{
|
|
|
484
489
|
<E_2 extends Element = Element>(selectors: string): NodeListOf<E_2>;
|
|
485
490
|
};
|
|
486
491
|
replaceChildren: (...nodes: (string | Node)[]) => void;
|
|
492
|
+
readonly assignedSlot: HTMLSlotElement | null;
|
|
487
493
|
oncopy: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
488
494
|
oncut: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
489
495
|
onpaste: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
@@ -578,7 +584,11 @@ export declare const Menu: import("react").ComponentType<Partial<{
|
|
|
578
584
|
onwebkitanimationstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
579
585
|
onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
580
586
|
onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
|
|
587
|
+
autofocus: boolean;
|
|
581
588
|
readonly dataset: DOMStringMap;
|
|
589
|
+
readonly renderOptions: import("lit-html").RenderOptions;
|
|
590
|
+
selected: string[];
|
|
591
|
+
value: string;
|
|
582
592
|
isLTR: boolean;
|
|
583
593
|
hasVisibleFocusInTree: () => boolean;
|
|
584
594
|
closeDescendentOverlays: () => void;
|
|
@@ -608,28 +618,31 @@ export declare const Menu: import("react").ComponentType<Partial<{
|
|
|
608
618
|
}> & import("react").RefAttributes<import("menu/src").Menu>>;
|
|
609
619
|
export declare const MenuDivider: import("react").ComponentType<Partial<{
|
|
610
620
|
dir?: string | undefined;
|
|
621
|
+
'aria-hidden'?: (boolean | "true" | "false") | undefined;
|
|
622
|
+
accessKey?: string | undefined;
|
|
623
|
+
draggable?: (boolean | "true" | "false") | undefined;
|
|
624
|
+
hidden?: boolean | undefined;
|
|
625
|
+
lang?: string | undefined;
|
|
611
626
|
title?: string | undefined;
|
|
612
|
-
|
|
627
|
+
translate?: "yes" | "no" | undefined;
|
|
613
628
|
className?: string | undefined;
|
|
629
|
+
id?: string | undefined;
|
|
630
|
+
prefix?: string | undefined;
|
|
614
631
|
slot?: string | undefined;
|
|
632
|
+
children?: import("react").ReactNode;
|
|
615
633
|
style?: import("react").CSSProperties | undefined;
|
|
634
|
+
contentEditable?: "inherit" | (boolean | "true" | "false") | undefined;
|
|
635
|
+
inputMode?: "search" | "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
636
|
+
nonce?: string | undefined;
|
|
616
637
|
tabIndex?: number | undefined;
|
|
638
|
+
rel?: string | undefined;
|
|
617
639
|
'aria-disabled'?: (boolean | "true" | "false") | undefined;
|
|
618
|
-
accessKey?: string | undefined;
|
|
619
|
-
color?: string | undefined;
|
|
620
|
-
lang?: string | undefined;
|
|
621
640
|
'aria-describedby'?: string | undefined;
|
|
641
|
+
'aria-haspopup'?: boolean | "true" | "dialog" | "menu" | "false" | "listbox" | "tree" | "grid" | undefined;
|
|
642
|
+
'aria-expanded'?: (boolean | "true" | "false") | undefined;
|
|
622
643
|
role?: import("react").AriaRole | undefined;
|
|
623
644
|
'aria-selected'?: (boolean | "true" | "false") | undefined;
|
|
624
645
|
'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
|
|
625
|
-
draggable?: (boolean | "true" | "false") | undefined;
|
|
626
|
-
hidden?: boolean | undefined;
|
|
627
|
-
translate?: "yes" | "no" | undefined;
|
|
628
|
-
prefix?: string | undefined;
|
|
629
|
-
children?: import("react").ReactNode;
|
|
630
|
-
contentEditable?: "inherit" | (boolean | "true" | "false") | undefined;
|
|
631
|
-
inputMode?: "none" | "text" | "search" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
632
|
-
nonce?: string | undefined;
|
|
633
646
|
'aria-label'?: string | undefined;
|
|
634
647
|
'aria-activedescendant'?: string | undefined;
|
|
635
648
|
'aria-labelledby'?: string | undefined;
|
|
@@ -637,20 +650,24 @@ export declare const MenuDivider: import("react").ComponentType<Partial<{
|
|
|
637
650
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
638
651
|
suppressContentEditableWarning?: boolean | undefined;
|
|
639
652
|
suppressHydrationWarning?: boolean | undefined;
|
|
653
|
+
autoFocus?: boolean | undefined;
|
|
640
654
|
contextMenu?: string | undefined;
|
|
641
655
|
placeholder?: string | undefined;
|
|
642
656
|
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
643
657
|
radioGroup?: string | undefined;
|
|
644
658
|
about?: string | undefined;
|
|
659
|
+
content?: string | undefined;
|
|
645
660
|
datatype?: string | undefined;
|
|
646
661
|
inlist?: any;
|
|
647
662
|
property?: string | undefined;
|
|
648
663
|
resource?: string | undefined;
|
|
664
|
+
rev?: string | undefined;
|
|
649
665
|
typeof?: string | undefined;
|
|
650
666
|
vocab?: string | undefined;
|
|
651
667
|
autoCapitalize?: string | undefined;
|
|
652
668
|
autoCorrect?: string | undefined;
|
|
653
669
|
autoSave?: string | undefined;
|
|
670
|
+
color?: string | undefined;
|
|
654
671
|
itemProp?: string | undefined;
|
|
655
672
|
itemScope?: boolean | undefined;
|
|
656
673
|
itemType?: string | undefined;
|
|
@@ -662,20 +679,21 @@ export declare const MenuDivider: import("react").ComponentType<Partial<{
|
|
|
662
679
|
is?: string | undefined;
|
|
663
680
|
'aria-atomic'?: (boolean | "true" | "false") | undefined;
|
|
664
681
|
'aria-autocomplete'?: "none" | "inline" | "list" | "both" | undefined;
|
|
682
|
+
'aria-braillelabel'?: string | undefined;
|
|
683
|
+
'aria-brailleroledescription'?: string | undefined;
|
|
665
684
|
'aria-busy'?: (boolean | "true" | "false") | undefined;
|
|
666
685
|
'aria-colcount'?: number | undefined;
|
|
667
686
|
'aria-colindex'?: number | undefined;
|
|
687
|
+
'aria-colindextext'?: string | undefined;
|
|
668
688
|
'aria-colspan'?: number | undefined;
|
|
669
689
|
'aria-controls'?: string | undefined;
|
|
670
690
|
'aria-current'?: boolean | "true" | "time" | "page" | "false" | "step" | "location" | "date" | undefined;
|
|
691
|
+
'aria-description'?: string | undefined;
|
|
671
692
|
'aria-details'?: string | undefined;
|
|
672
|
-
'aria-dropeffect'?: "
|
|
693
|
+
'aria-dropeffect'?: "link" | "none" | "copy" | "execute" | "move" | "popup" | undefined;
|
|
673
694
|
'aria-errormessage'?: string | undefined;
|
|
674
|
-
'aria-expanded'?: (boolean | "true" | "false") | undefined;
|
|
675
695
|
'aria-flowto'?: string | undefined;
|
|
676
696
|
'aria-grabbed'?: (boolean | "true" | "false") | undefined;
|
|
677
|
-
'aria-haspopup'?: boolean | "true" | "dialog" | "menu" | "false" | "listbox" | "grid" | "tree" | undefined;
|
|
678
|
-
'aria-hidden'?: (boolean | "true" | "false") | undefined;
|
|
679
697
|
'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
|
|
680
698
|
'aria-keyshortcuts'?: string | undefined;
|
|
681
699
|
'aria-level'?: number | undefined;
|
|
@@ -694,6 +712,7 @@ export declare const MenuDivider: import("react").ComponentType<Partial<{
|
|
|
694
712
|
'aria-roledescription'?: string | undefined;
|
|
695
713
|
'aria-rowcount'?: number | undefined;
|
|
696
714
|
'aria-rowindex'?: number | undefined;
|
|
715
|
+
'aria-rowindextext'?: string | undefined;
|
|
697
716
|
'aria-rowspan'?: number | undefined;
|
|
698
717
|
'aria-setsize'?: number | undefined;
|
|
699
718
|
'aria-sort'?: "none" | "ascending" | "descending" | "other" | undefined;
|
|
@@ -702,7 +721,7 @@ export declare const MenuDivider: import("react").ComponentType<Partial<{
|
|
|
702
721
|
'aria-valuenow'?: number | undefined;
|
|
703
722
|
'aria-valuetext'?: string | undefined;
|
|
704
723
|
dangerouslySetInnerHTML?: {
|
|
705
|
-
__html: string;
|
|
724
|
+
__html: string | TrustedHTML;
|
|
706
725
|
} | undefined;
|
|
707
726
|
onCopy?: import("react").ClipboardEventHandler<import("menu/src").MenuDivider> | undefined;
|
|
708
727
|
onCopyCapture?: import("react").ClipboardEventHandler<import("menu/src").MenuDivider> | undefined;
|
|
@@ -870,6 +889,7 @@ export declare const MenuDivider: import("react").ComponentType<Partial<{
|
|
|
870
889
|
readonly attributes: NamedNodeMap;
|
|
871
890
|
readonly localName: string;
|
|
872
891
|
size: import("@spectrum-web-components/base").ElementSize;
|
|
892
|
+
normalize: () => void;
|
|
873
893
|
blur: () => void;
|
|
874
894
|
click: () => void;
|
|
875
895
|
focus: (options?: FocusOptions | undefined) => void;
|
|
@@ -877,31 +897,13 @@ export declare const MenuDivider: import("react").ComponentType<Partial<{
|
|
|
877
897
|
(options?: ScrollToOptions | undefined): void;
|
|
878
898
|
(x: number, y: number): void;
|
|
879
899
|
};
|
|
880
|
-
ariaHidden: string | null;
|
|
881
|
-
animate: (keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions | undefined) => Animation;
|
|
882
|
-
autofocus: boolean;
|
|
883
|
-
normalize: () => void;
|
|
884
|
-
addEventListener: {
|
|
885
|
-
<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
886
|
-
(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
887
|
-
};
|
|
888
|
-
dispatchEvent: (event: Event) => boolean;
|
|
889
|
-
removeEventListener: {
|
|
890
|
-
<K_1 extends keyof HTMLElementEventMap>(type: K_1, listener: (this: HTMLElement, ev: HTMLElementEventMap[K_1]) => any, options?: boolean | EventListenerOptions | undefined): void;
|
|
891
|
-
(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions | undefined): void;
|
|
892
|
-
};
|
|
893
|
-
readonly assignedSlot: HTMLSlotElement | null;
|
|
894
|
-
shadowRoot: ShadowRoot;
|
|
895
|
-
readonly parentElement: HTMLElement | null;
|
|
896
|
-
readonly renderOptions: import("lit-html").RenderOptions;
|
|
897
|
-
readonly childNodes: NodeListOf<ChildNode>;
|
|
898
|
-
connectedCallback: () => void;
|
|
899
|
-
disconnectedCallback: () => void;
|
|
900
900
|
readonly renderRoot: HTMLElement | ShadowRoot;
|
|
901
901
|
isUpdatePending: boolean;
|
|
902
902
|
hasUpdated: boolean;
|
|
903
903
|
addController: (controller: import("lit").ReactiveController) => void;
|
|
904
904
|
removeController: (controller: import("lit").ReactiveController) => void;
|
|
905
|
+
connectedCallback: () => void;
|
|
906
|
+
disconnectedCallback: () => void;
|
|
905
907
|
attributeChangedCallback: (name: string, _old: string | null, value: string | null) => void;
|
|
906
908
|
requestUpdate: (name?: PropertyKey | undefined, oldValue?: unknown, options?: import("lit").PropertyDeclaration<unknown, unknown> | undefined) => void;
|
|
907
909
|
readonly updateComplete: Promise<boolean>;
|
|
@@ -917,6 +919,14 @@ export declare const MenuDivider: import("react").ComponentType<Partial<{
|
|
|
917
919
|
outerText: string;
|
|
918
920
|
spellcheck: boolean;
|
|
919
921
|
attachInternals: () => ElementInternals;
|
|
922
|
+
addEventListener: {
|
|
923
|
+
<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
924
|
+
(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
925
|
+
};
|
|
926
|
+
removeEventListener: {
|
|
927
|
+
<K_1 extends keyof HTMLElementEventMap>(type: K_1, listener: (this: HTMLElement, ev: HTMLElementEventMap[K_1]) => any, options?: boolean | EventListenerOptions | undefined): void;
|
|
928
|
+
(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions | undefined): void;
|
|
929
|
+
};
|
|
920
930
|
readonly classList: DOMTokenList;
|
|
921
931
|
readonly clientHeight: number;
|
|
922
932
|
readonly clientLeft: number;
|
|
@@ -932,6 +942,7 @@ export declare const MenuDivider: import("react").ComponentType<Partial<{
|
|
|
932
942
|
scrollLeft: number;
|
|
933
943
|
scrollTop: number;
|
|
934
944
|
readonly scrollWidth: number;
|
|
945
|
+
shadowRoot: ShadowRoot;
|
|
935
946
|
readonly tagName: string;
|
|
936
947
|
attachShadow: (init: ShadowRootInit) => ShadowRoot;
|
|
937
948
|
closest: {
|
|
@@ -988,6 +999,7 @@ export declare const MenuDivider: import("react").ComponentType<Partial<{
|
|
|
988
999
|
toggleAttribute: (qualifiedName: string, force?: boolean | undefined) => boolean;
|
|
989
1000
|
webkitMatchesSelector: (selectors: string) => boolean;
|
|
990
1001
|
readonly baseURI: string;
|
|
1002
|
+
readonly childNodes: NodeListOf<ChildNode>;
|
|
991
1003
|
readonly firstChild: ChildNode | null;
|
|
992
1004
|
readonly isConnected: boolean;
|
|
993
1005
|
readonly lastChild: ChildNode | null;
|
|
@@ -995,6 +1007,7 @@ export declare const MenuDivider: import("react").ComponentType<Partial<{
|
|
|
995
1007
|
readonly nodeName: string;
|
|
996
1008
|
readonly nodeType: number;
|
|
997
1009
|
nodeValue: string | null;
|
|
1010
|
+
readonly parentElement: HTMLElement | null;
|
|
998
1011
|
readonly parentNode: ParentNode | null;
|
|
999
1012
|
readonly previousSibling: ChildNode | null;
|
|
1000
1013
|
textContent: string | null;
|
|
@@ -1030,6 +1043,7 @@ export declare const MenuDivider: import("react").ComponentType<Partial<{
|
|
|
1030
1043
|
readonly NOTATION_NODE: number;
|
|
1031
1044
|
readonly PROCESSING_INSTRUCTION_NODE: number;
|
|
1032
1045
|
readonly TEXT_NODE: number;
|
|
1046
|
+
dispatchEvent: (event: Event) => boolean;
|
|
1033
1047
|
ariaAtomic: string | null;
|
|
1034
1048
|
ariaAutoComplete: string | null;
|
|
1035
1049
|
ariaBusy: string | null;
|
|
@@ -1041,6 +1055,7 @@ export declare const MenuDivider: import("react").ComponentType<Partial<{
|
|
|
1041
1055
|
ariaDisabled: string | null;
|
|
1042
1056
|
ariaExpanded: string | null;
|
|
1043
1057
|
ariaHasPopup: string | null;
|
|
1058
|
+
ariaHidden: string | null;
|
|
1044
1059
|
ariaKeyShortcuts: string | null;
|
|
1045
1060
|
ariaLabel: string | null;
|
|
1046
1061
|
ariaLevel: string | null;
|
|
@@ -1065,6 +1080,7 @@ export declare const MenuDivider: import("react").ComponentType<Partial<{
|
|
|
1065
1080
|
ariaValueMin: string | null;
|
|
1066
1081
|
ariaValueNow: string | null;
|
|
1067
1082
|
ariaValueText: string | null;
|
|
1083
|
+
animate: (keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions | undefined) => Animation;
|
|
1068
1084
|
getAnimations: (options?: GetAnimationsOptions | undefined) => Animation[];
|
|
1069
1085
|
after: (...nodes: (string | Node)[]) => void;
|
|
1070
1086
|
before: (...nodes: (string | Node)[]) => void;
|
|
@@ -1089,6 +1105,7 @@ export declare const MenuDivider: import("react").ComponentType<Partial<{
|
|
|
1089
1105
|
<E_2 extends Element = Element>(selectors: string): NodeListOf<E_2>;
|
|
1090
1106
|
};
|
|
1091
1107
|
replaceChildren: (...nodes: (string | Node)[]) => void;
|
|
1108
|
+
readonly assignedSlot: HTMLSlotElement | null;
|
|
1092
1109
|
oncopy: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
1093
1110
|
oncut: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
1094
1111
|
onpaste: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
@@ -1183,34 +1200,39 @@ export declare const MenuDivider: import("react").ComponentType<Partial<{
|
|
|
1183
1200
|
onwebkitanimationstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
1184
1201
|
onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
1185
1202
|
onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
|
|
1203
|
+
autofocus: boolean;
|
|
1186
1204
|
readonly dataset: DOMStringMap;
|
|
1205
|
+
readonly renderOptions: import("lit-html").RenderOptions;
|
|
1187
1206
|
isLTR: boolean;
|
|
1188
1207
|
hasVisibleFocusInTree: () => boolean;
|
|
1189
1208
|
} & {}> & import("react").RefAttributes<import("menu/src").MenuDivider>>;
|
|
1190
1209
|
export declare const MenuGroup: import("react").ComponentType<Partial<{
|
|
1191
1210
|
dir?: string | undefined;
|
|
1211
|
+
'aria-hidden'?: (boolean | "true" | "false") | undefined;
|
|
1212
|
+
accessKey?: string | undefined;
|
|
1213
|
+
draggable?: (boolean | "true" | "false") | undefined;
|
|
1214
|
+
hidden?: boolean | undefined;
|
|
1215
|
+
lang?: string | undefined;
|
|
1192
1216
|
title?: string | undefined;
|
|
1193
|
-
|
|
1217
|
+
translate?: "yes" | "no" | undefined;
|
|
1194
1218
|
className?: string | undefined;
|
|
1219
|
+
id?: string | undefined;
|
|
1220
|
+
prefix?: string | undefined;
|
|
1195
1221
|
slot?: string | undefined;
|
|
1222
|
+
children?: import("react").ReactNode;
|
|
1196
1223
|
style?: import("react").CSSProperties | undefined;
|
|
1224
|
+
contentEditable?: "inherit" | (boolean | "true" | "false") | undefined;
|
|
1225
|
+
inputMode?: "search" | "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
1226
|
+
nonce?: string | undefined;
|
|
1197
1227
|
tabIndex?: number | undefined;
|
|
1228
|
+
rel?: string | undefined;
|
|
1198
1229
|
'aria-disabled'?: (boolean | "true" | "false") | undefined;
|
|
1199
|
-
accessKey?: string | undefined;
|
|
1200
|
-
color?: string | undefined;
|
|
1201
|
-
lang?: string | undefined;
|
|
1202
1230
|
'aria-describedby'?: string | undefined;
|
|
1231
|
+
'aria-haspopup'?: boolean | "true" | "dialog" | "menu" | "false" | "listbox" | "tree" | "grid" | undefined;
|
|
1232
|
+
'aria-expanded'?: (boolean | "true" | "false") | undefined;
|
|
1203
1233
|
role?: import("react").AriaRole | undefined;
|
|
1204
1234
|
'aria-selected'?: (boolean | "true" | "false") | undefined;
|
|
1205
1235
|
'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
|
|
1206
|
-
draggable?: (boolean | "true" | "false") | undefined;
|
|
1207
|
-
hidden?: boolean | undefined;
|
|
1208
|
-
translate?: "yes" | "no" | undefined;
|
|
1209
|
-
prefix?: string | undefined;
|
|
1210
|
-
children?: import("react").ReactNode;
|
|
1211
|
-
contentEditable?: "inherit" | (boolean | "true" | "false") | undefined;
|
|
1212
|
-
inputMode?: "none" | "text" | "search" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
1213
|
-
nonce?: string | undefined;
|
|
1214
1236
|
'aria-label'?: string | undefined;
|
|
1215
1237
|
'aria-activedescendant'?: string | undefined;
|
|
1216
1238
|
'aria-labelledby'?: string | undefined;
|
|
@@ -1218,20 +1240,24 @@ export declare const MenuGroup: import("react").ComponentType<Partial<{
|
|
|
1218
1240
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
1219
1241
|
suppressContentEditableWarning?: boolean | undefined;
|
|
1220
1242
|
suppressHydrationWarning?: boolean | undefined;
|
|
1243
|
+
autoFocus?: boolean | undefined;
|
|
1221
1244
|
contextMenu?: string | undefined;
|
|
1222
1245
|
placeholder?: string | undefined;
|
|
1223
1246
|
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
1224
1247
|
radioGroup?: string | undefined;
|
|
1225
1248
|
about?: string | undefined;
|
|
1249
|
+
content?: string | undefined;
|
|
1226
1250
|
datatype?: string | undefined;
|
|
1227
1251
|
inlist?: any;
|
|
1228
1252
|
property?: string | undefined;
|
|
1229
1253
|
resource?: string | undefined;
|
|
1254
|
+
rev?: string | undefined;
|
|
1230
1255
|
typeof?: string | undefined;
|
|
1231
1256
|
vocab?: string | undefined;
|
|
1232
1257
|
autoCapitalize?: string | undefined;
|
|
1233
1258
|
autoCorrect?: string | undefined;
|
|
1234
1259
|
autoSave?: string | undefined;
|
|
1260
|
+
color?: string | undefined;
|
|
1235
1261
|
itemProp?: string | undefined;
|
|
1236
1262
|
itemScope?: boolean | undefined;
|
|
1237
1263
|
itemType?: string | undefined;
|
|
@@ -1243,20 +1269,21 @@ export declare const MenuGroup: import("react").ComponentType<Partial<{
|
|
|
1243
1269
|
is?: string | undefined;
|
|
1244
1270
|
'aria-atomic'?: (boolean | "true" | "false") | undefined;
|
|
1245
1271
|
'aria-autocomplete'?: "none" | "inline" | "list" | "both" | undefined;
|
|
1272
|
+
'aria-braillelabel'?: string | undefined;
|
|
1273
|
+
'aria-brailleroledescription'?: string | undefined;
|
|
1246
1274
|
'aria-busy'?: (boolean | "true" | "false") | undefined;
|
|
1247
1275
|
'aria-colcount'?: number | undefined;
|
|
1248
1276
|
'aria-colindex'?: number | undefined;
|
|
1277
|
+
'aria-colindextext'?: string | undefined;
|
|
1249
1278
|
'aria-colspan'?: number | undefined;
|
|
1250
1279
|
'aria-controls'?: string | undefined;
|
|
1251
1280
|
'aria-current'?: boolean | "true" | "time" | "page" | "false" | "step" | "location" | "date" | undefined;
|
|
1281
|
+
'aria-description'?: string | undefined;
|
|
1252
1282
|
'aria-details'?: string | undefined;
|
|
1253
|
-
'aria-dropeffect'?: "
|
|
1283
|
+
'aria-dropeffect'?: "link" | "none" | "copy" | "execute" | "move" | "popup" | undefined;
|
|
1254
1284
|
'aria-errormessage'?: string | undefined;
|
|
1255
|
-
'aria-expanded'?: (boolean | "true" | "false") | undefined;
|
|
1256
1285
|
'aria-flowto'?: string | undefined;
|
|
1257
1286
|
'aria-grabbed'?: (boolean | "true" | "false") | undefined;
|
|
1258
|
-
'aria-haspopup'?: boolean | "true" | "dialog" | "menu" | "false" | "listbox" | "grid" | "tree" | undefined;
|
|
1259
|
-
'aria-hidden'?: (boolean | "true" | "false") | undefined;
|
|
1260
1287
|
'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
|
|
1261
1288
|
'aria-keyshortcuts'?: string | undefined;
|
|
1262
1289
|
'aria-level'?: number | undefined;
|
|
@@ -1275,6 +1302,7 @@ export declare const MenuGroup: import("react").ComponentType<Partial<{
|
|
|
1275
1302
|
'aria-roledescription'?: string | undefined;
|
|
1276
1303
|
'aria-rowcount'?: number | undefined;
|
|
1277
1304
|
'aria-rowindex'?: number | undefined;
|
|
1305
|
+
'aria-rowindextext'?: string | undefined;
|
|
1278
1306
|
'aria-rowspan'?: number | undefined;
|
|
1279
1307
|
'aria-setsize'?: number | undefined;
|
|
1280
1308
|
'aria-sort'?: "none" | "ascending" | "descending" | "other" | undefined;
|
|
@@ -1283,7 +1311,7 @@ export declare const MenuGroup: import("react").ComponentType<Partial<{
|
|
|
1283
1311
|
'aria-valuenow'?: number | undefined;
|
|
1284
1312
|
'aria-valuetext'?: string | undefined;
|
|
1285
1313
|
dangerouslySetInnerHTML?: {
|
|
1286
|
-
__html: string;
|
|
1314
|
+
__html: string | TrustedHTML;
|
|
1287
1315
|
} | undefined;
|
|
1288
1316
|
onCopy?: import("react").ClipboardEventHandler<import("menu/src").MenuGroup> | undefined;
|
|
1289
1317
|
onCopyCapture?: import("react").ClipboardEventHandler<import("menu/src").MenuGroup> | undefined;
|
|
@@ -1451,6 +1479,7 @@ export declare const MenuGroup: import("react").ComponentType<Partial<{
|
|
|
1451
1479
|
readonly attributes: NamedNodeMap;
|
|
1452
1480
|
readonly localName: string;
|
|
1453
1481
|
label: string;
|
|
1482
|
+
normalize: () => void;
|
|
1454
1483
|
blur: () => void;
|
|
1455
1484
|
click: () => void;
|
|
1456
1485
|
focus: ({ preventScroll }?: FocusOptions) => void;
|
|
@@ -1458,33 +1487,13 @@ export declare const MenuGroup: import("react").ComponentType<Partial<{
|
|
|
1458
1487
|
(options?: ScrollToOptions | undefined): void;
|
|
1459
1488
|
(x: number, y: number): void;
|
|
1460
1489
|
};
|
|
1461
|
-
ariaHidden: string | null;
|
|
1462
|
-
animate: (keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions | undefined) => Animation;
|
|
1463
|
-
autofocus: boolean;
|
|
1464
|
-
normalize: () => void;
|
|
1465
|
-
addEventListener: {
|
|
1466
|
-
<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
1467
|
-
(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
1468
|
-
};
|
|
1469
|
-
dispatchEvent: (event: Event) => boolean;
|
|
1470
|
-
removeEventListener: {
|
|
1471
|
-
<K_1 extends keyof HTMLElementEventMap>(type: K_1, listener: (this: HTMLElement, ev: HTMLElementEventMap[K_1]) => any, options?: boolean | EventListenerOptions | undefined): void;
|
|
1472
|
-
(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions | undefined): void;
|
|
1473
|
-
};
|
|
1474
|
-
readonly assignedSlot: HTMLSlotElement | null;
|
|
1475
|
-
shadowRoot: ShadowRoot;
|
|
1476
|
-
readonly parentElement: HTMLElement | null;
|
|
1477
|
-
readonly renderOptions: import("lit-html").RenderOptions;
|
|
1478
|
-
readonly childNodes: NodeListOf<ChildNode>;
|
|
1479
|
-
selected: string[];
|
|
1480
|
-
value: string;
|
|
1481
|
-
connectedCallback: () => void;
|
|
1482
|
-
disconnectedCallback: () => void;
|
|
1483
1490
|
readonly renderRoot: HTMLElement | ShadowRoot;
|
|
1484
1491
|
isUpdatePending: boolean;
|
|
1485
1492
|
hasUpdated: boolean;
|
|
1486
1493
|
addController: (controller: import("lit").ReactiveController) => void;
|
|
1487
1494
|
removeController: (controller: import("lit").ReactiveController) => void;
|
|
1495
|
+
connectedCallback: () => void;
|
|
1496
|
+
disconnectedCallback: () => void;
|
|
1488
1497
|
attributeChangedCallback: (name: string, _old: string | null, value: string | null) => void;
|
|
1489
1498
|
requestUpdate: (name?: PropertyKey | undefined, oldValue?: unknown, options?: import("lit").PropertyDeclaration<unknown, unknown> | undefined) => void;
|
|
1490
1499
|
readonly updateComplete: Promise<boolean>;
|
|
@@ -1500,6 +1509,14 @@ export declare const MenuGroup: import("react").ComponentType<Partial<{
|
|
|
1500
1509
|
outerText: string;
|
|
1501
1510
|
spellcheck: boolean;
|
|
1502
1511
|
attachInternals: () => ElementInternals;
|
|
1512
|
+
addEventListener: {
|
|
1513
|
+
<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
1514
|
+
(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
1515
|
+
};
|
|
1516
|
+
removeEventListener: {
|
|
1517
|
+
<K_1 extends keyof HTMLElementEventMap>(type: K_1, listener: (this: HTMLElement, ev: HTMLElementEventMap[K_1]) => any, options?: boolean | EventListenerOptions | undefined): void;
|
|
1518
|
+
(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions | undefined): void;
|
|
1519
|
+
};
|
|
1503
1520
|
readonly classList: DOMTokenList;
|
|
1504
1521
|
readonly clientHeight: number;
|
|
1505
1522
|
readonly clientLeft: number;
|
|
@@ -1515,6 +1532,7 @@ export declare const MenuGroup: import("react").ComponentType<Partial<{
|
|
|
1515
1532
|
scrollLeft: number;
|
|
1516
1533
|
scrollTop: number;
|
|
1517
1534
|
readonly scrollWidth: number;
|
|
1535
|
+
shadowRoot: ShadowRoot;
|
|
1518
1536
|
readonly tagName: string;
|
|
1519
1537
|
attachShadow: (init: ShadowRootInit) => ShadowRoot;
|
|
1520
1538
|
closest: {
|
|
@@ -1571,6 +1589,7 @@ export declare const MenuGroup: import("react").ComponentType<Partial<{
|
|
|
1571
1589
|
toggleAttribute: (qualifiedName: string, force?: boolean | undefined) => boolean;
|
|
1572
1590
|
webkitMatchesSelector: (selectors: string) => boolean;
|
|
1573
1591
|
readonly baseURI: string;
|
|
1592
|
+
readonly childNodes: NodeListOf<ChildNode>;
|
|
1574
1593
|
readonly firstChild: ChildNode | null;
|
|
1575
1594
|
readonly isConnected: boolean;
|
|
1576
1595
|
readonly lastChild: ChildNode | null;
|
|
@@ -1578,6 +1597,7 @@ export declare const MenuGroup: import("react").ComponentType<Partial<{
|
|
|
1578
1597
|
readonly nodeName: string;
|
|
1579
1598
|
readonly nodeType: number;
|
|
1580
1599
|
nodeValue: string | null;
|
|
1600
|
+
readonly parentElement: HTMLElement | null;
|
|
1581
1601
|
readonly parentNode: ParentNode | null;
|
|
1582
1602
|
readonly previousSibling: ChildNode | null;
|
|
1583
1603
|
textContent: string | null;
|
|
@@ -1613,6 +1633,7 @@ export declare const MenuGroup: import("react").ComponentType<Partial<{
|
|
|
1613
1633
|
readonly NOTATION_NODE: number;
|
|
1614
1634
|
readonly PROCESSING_INSTRUCTION_NODE: number;
|
|
1615
1635
|
readonly TEXT_NODE: number;
|
|
1636
|
+
dispatchEvent: (event: Event) => boolean;
|
|
1616
1637
|
ariaAtomic: string | null;
|
|
1617
1638
|
ariaAutoComplete: string | null;
|
|
1618
1639
|
ariaBusy: string | null;
|
|
@@ -1624,6 +1645,7 @@ export declare const MenuGroup: import("react").ComponentType<Partial<{
|
|
|
1624
1645
|
ariaDisabled: string | null;
|
|
1625
1646
|
ariaExpanded: string | null;
|
|
1626
1647
|
ariaHasPopup: string | null;
|
|
1648
|
+
ariaHidden: string | null;
|
|
1627
1649
|
ariaKeyShortcuts: string | null;
|
|
1628
1650
|
ariaLabel: string | null;
|
|
1629
1651
|
ariaLevel: string | null;
|
|
@@ -1648,6 +1670,7 @@ export declare const MenuGroup: import("react").ComponentType<Partial<{
|
|
|
1648
1670
|
ariaValueMin: string | null;
|
|
1649
1671
|
ariaValueNow: string | null;
|
|
1650
1672
|
ariaValueText: string | null;
|
|
1673
|
+
animate: (keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions | undefined) => Animation;
|
|
1651
1674
|
getAnimations: (options?: GetAnimationsOptions | undefined) => Animation[];
|
|
1652
1675
|
after: (...nodes: (string | Node)[]) => void;
|
|
1653
1676
|
before: (...nodes: (string | Node)[]) => void;
|
|
@@ -1672,6 +1695,7 @@ export declare const MenuGroup: import("react").ComponentType<Partial<{
|
|
|
1672
1695
|
<E_2 extends Element = Element>(selectors: string): NodeListOf<E_2>;
|
|
1673
1696
|
};
|
|
1674
1697
|
replaceChildren: (...nodes: (string | Node)[]) => void;
|
|
1698
|
+
readonly assignedSlot: HTMLSlotElement | null;
|
|
1675
1699
|
oncopy: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
1676
1700
|
oncut: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
1677
1701
|
onpaste: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
@@ -1766,7 +1790,11 @@ export declare const MenuGroup: import("react").ComponentType<Partial<{
|
|
|
1766
1790
|
onwebkitanimationstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
1767
1791
|
onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
1768
1792
|
onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
|
|
1793
|
+
autofocus: boolean;
|
|
1769
1794
|
readonly dataset: DOMStringMap;
|
|
1795
|
+
readonly renderOptions: import("lit-html").RenderOptions;
|
|
1796
|
+
selected: string[];
|
|
1797
|
+
value: string;
|
|
1770
1798
|
isLTR: boolean;
|
|
1771
1799
|
hasVisibleFocusInTree: () => boolean;
|
|
1772
1800
|
closeDescendentOverlays: () => void;
|
|
@@ -1796,28 +1824,31 @@ export declare const MenuGroup: import("react").ComponentType<Partial<{
|
|
|
1796
1824
|
}> & import("react").RefAttributes<import("menu/src").MenuGroup>>;
|
|
1797
1825
|
export declare const MenuItem: import("react").ComponentType<Partial<{
|
|
1798
1826
|
dir?: string | undefined;
|
|
1827
|
+
'aria-hidden'?: (boolean | "true" | "false") | undefined;
|
|
1828
|
+
accessKey?: string | undefined;
|
|
1829
|
+
draggable?: (boolean | "true" | "false") | undefined;
|
|
1830
|
+
hidden?: boolean | undefined;
|
|
1831
|
+
lang?: string | undefined;
|
|
1799
1832
|
title?: string | undefined;
|
|
1800
|
-
|
|
1833
|
+
translate?: "yes" | "no" | undefined;
|
|
1801
1834
|
className?: string | undefined;
|
|
1835
|
+
id?: string | undefined;
|
|
1836
|
+
prefix?: string | undefined;
|
|
1802
1837
|
slot?: string | undefined;
|
|
1838
|
+
children?: import("react").ReactNode;
|
|
1803
1839
|
style?: import("react").CSSProperties | undefined;
|
|
1840
|
+
contentEditable?: "inherit" | (boolean | "true" | "false") | undefined;
|
|
1841
|
+
inputMode?: "search" | "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
1842
|
+
nonce?: string | undefined;
|
|
1804
1843
|
tabIndex?: number | undefined;
|
|
1844
|
+
rel?: string | undefined;
|
|
1805
1845
|
'aria-disabled'?: (boolean | "true" | "false") | undefined;
|
|
1806
|
-
accessKey?: string | undefined;
|
|
1807
|
-
color?: string | undefined;
|
|
1808
|
-
lang?: string | undefined;
|
|
1809
1846
|
'aria-describedby'?: string | undefined;
|
|
1847
|
+
'aria-haspopup'?: boolean | "true" | "dialog" | "menu" | "false" | "listbox" | "tree" | "grid" | undefined;
|
|
1848
|
+
'aria-expanded'?: (boolean | "true" | "false") | undefined;
|
|
1810
1849
|
role?: import("react").AriaRole | undefined;
|
|
1811
1850
|
'aria-selected'?: (boolean | "true" | "false") | undefined;
|
|
1812
1851
|
'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
|
|
1813
|
-
draggable?: (boolean | "true" | "false") | undefined;
|
|
1814
|
-
hidden?: boolean | undefined;
|
|
1815
|
-
translate?: "yes" | "no" | undefined;
|
|
1816
|
-
prefix?: string | undefined;
|
|
1817
|
-
children?: import("react").ReactNode;
|
|
1818
|
-
contentEditable?: "inherit" | (boolean | "true" | "false") | undefined;
|
|
1819
|
-
inputMode?: "none" | "text" | "search" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
1820
|
-
nonce?: string | undefined;
|
|
1821
1852
|
'aria-label'?: string | undefined;
|
|
1822
1853
|
'aria-activedescendant'?: string | undefined;
|
|
1823
1854
|
'aria-labelledby'?: string | undefined;
|
|
@@ -1825,20 +1856,24 @@ export declare const MenuItem: import("react").ComponentType<Partial<{
|
|
|
1825
1856
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
1826
1857
|
suppressContentEditableWarning?: boolean | undefined;
|
|
1827
1858
|
suppressHydrationWarning?: boolean | undefined;
|
|
1859
|
+
autoFocus?: boolean | undefined;
|
|
1828
1860
|
contextMenu?: string | undefined;
|
|
1829
1861
|
placeholder?: string | undefined;
|
|
1830
1862
|
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
1831
1863
|
radioGroup?: string | undefined;
|
|
1832
1864
|
about?: string | undefined;
|
|
1865
|
+
content?: string | undefined;
|
|
1833
1866
|
datatype?: string | undefined;
|
|
1834
1867
|
inlist?: any;
|
|
1835
1868
|
property?: string | undefined;
|
|
1836
1869
|
resource?: string | undefined;
|
|
1870
|
+
rev?: string | undefined;
|
|
1837
1871
|
typeof?: string | undefined;
|
|
1838
1872
|
vocab?: string | undefined;
|
|
1839
1873
|
autoCapitalize?: string | undefined;
|
|
1840
1874
|
autoCorrect?: string | undefined;
|
|
1841
1875
|
autoSave?: string | undefined;
|
|
1876
|
+
color?: string | undefined;
|
|
1842
1877
|
itemProp?: string | undefined;
|
|
1843
1878
|
itemScope?: boolean | undefined;
|
|
1844
1879
|
itemType?: string | undefined;
|
|
@@ -1850,20 +1885,21 @@ export declare const MenuItem: import("react").ComponentType<Partial<{
|
|
|
1850
1885
|
is?: string | undefined;
|
|
1851
1886
|
'aria-atomic'?: (boolean | "true" | "false") | undefined;
|
|
1852
1887
|
'aria-autocomplete'?: "none" | "inline" | "list" | "both" | undefined;
|
|
1888
|
+
'aria-braillelabel'?: string | undefined;
|
|
1889
|
+
'aria-brailleroledescription'?: string | undefined;
|
|
1853
1890
|
'aria-busy'?: (boolean | "true" | "false") | undefined;
|
|
1854
1891
|
'aria-colcount'?: number | undefined;
|
|
1855
1892
|
'aria-colindex'?: number | undefined;
|
|
1893
|
+
'aria-colindextext'?: string | undefined;
|
|
1856
1894
|
'aria-colspan'?: number | undefined;
|
|
1857
1895
|
'aria-controls'?: string | undefined;
|
|
1858
1896
|
'aria-current'?: boolean | "true" | "time" | "page" | "false" | "step" | "location" | "date" | undefined;
|
|
1897
|
+
'aria-description'?: string | undefined;
|
|
1859
1898
|
'aria-details'?: string | undefined;
|
|
1860
|
-
'aria-dropeffect'?: "
|
|
1899
|
+
'aria-dropeffect'?: "link" | "none" | "copy" | "execute" | "move" | "popup" | undefined;
|
|
1861
1900
|
'aria-errormessage'?: string | undefined;
|
|
1862
|
-
'aria-expanded'?: (boolean | "true" | "false") | undefined;
|
|
1863
1901
|
'aria-flowto'?: string | undefined;
|
|
1864
1902
|
'aria-grabbed'?: (boolean | "true" | "false") | undefined;
|
|
1865
|
-
'aria-haspopup'?: boolean | "true" | "dialog" | "menu" | "false" | "listbox" | "grid" | "tree" | undefined;
|
|
1866
|
-
'aria-hidden'?: (boolean | "true" | "false") | undefined;
|
|
1867
1903
|
'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
|
|
1868
1904
|
'aria-keyshortcuts'?: string | undefined;
|
|
1869
1905
|
'aria-level'?: number | undefined;
|
|
@@ -1882,6 +1918,7 @@ export declare const MenuItem: import("react").ComponentType<Partial<{
|
|
|
1882
1918
|
'aria-roledescription'?: string | undefined;
|
|
1883
1919
|
'aria-rowcount'?: number | undefined;
|
|
1884
1920
|
'aria-rowindex'?: number | undefined;
|
|
1921
|
+
'aria-rowindextext'?: string | undefined;
|
|
1885
1922
|
'aria-rowspan'?: number | undefined;
|
|
1886
1923
|
'aria-setsize'?: number | undefined;
|
|
1887
1924
|
'aria-sort'?: "none" | "ascending" | "descending" | "other" | undefined;
|
|
@@ -1890,7 +1927,7 @@ export declare const MenuItem: import("react").ComponentType<Partial<{
|
|
|
1890
1927
|
'aria-valuenow'?: number | undefined;
|
|
1891
1928
|
'aria-valuetext'?: string | undefined;
|
|
1892
1929
|
dangerouslySetInnerHTML?: {
|
|
1893
|
-
__html: string;
|
|
1930
|
+
__html: string | TrustedHTML;
|
|
1894
1931
|
} | undefined;
|
|
1895
1932
|
onCopy?: import("react").ClipboardEventHandler<import("menu/src").MenuItem> | undefined;
|
|
1896
1933
|
onCopyCapture?: import("react").ClipboardEventHandler<import("menu/src").MenuItem> | undefined;
|
|
@@ -2058,6 +2095,7 @@ export declare const MenuItem: import("react").ComponentType<Partial<{
|
|
|
2058
2095
|
readonly attributes: NamedNodeMap;
|
|
2059
2096
|
readonly localName: string;
|
|
2060
2097
|
label?: string | undefined;
|
|
2098
|
+
normalize: () => void;
|
|
2061
2099
|
blur: () => void;
|
|
2062
2100
|
click: () => void;
|
|
2063
2101
|
focus: (options?: FocusOptions | undefined) => void;
|
|
@@ -2065,60 +2103,13 @@ export declare const MenuItem: import("react").ComponentType<Partial<{
|
|
|
2065
2103
|
(options?: ScrollToOptions | undefined): void;
|
|
2066
2104
|
(x: number, y: number): void;
|
|
2067
2105
|
};
|
|
2068
|
-
download?: string | undefined;
|
|
2069
|
-
href?: string | undefined;
|
|
2070
|
-
target?: "_blank" | "_parent" | "_self" | "_top" | undefined;
|
|
2071
|
-
rel?: string | undefined;
|
|
2072
|
-
ariaHidden: string | null;
|
|
2073
|
-
animate: (keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions | undefined) => Animation;
|
|
2074
|
-
disabled: boolean;
|
|
2075
|
-
autofocus: boolean;
|
|
2076
|
-
normalize: () => void;
|
|
2077
|
-
addEventListener: {
|
|
2078
|
-
<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
2079
|
-
(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
2080
|
-
};
|
|
2081
|
-
dispatchEvent: (event: Event) => boolean;
|
|
2082
|
-
removeEventListener: {
|
|
2083
|
-
<K_1 extends keyof HTMLElementEventMap>(type: K_1, listener: (this: HTMLElement, ev: HTMLElementEventMap[K_1]) => any, options?: boolean | EventListenerOptions | undefined): void;
|
|
2084
|
-
(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions | undefined): void;
|
|
2085
|
-
};
|
|
2086
|
-
open: boolean;
|
|
2087
|
-
readonly assignedSlot: HTMLSlotElement | null;
|
|
2088
|
-
shadowRoot: ShadowRoot;
|
|
2089
|
-
readonly parentElement: HTMLElement | null;
|
|
2090
|
-
readonly renderOptions: import("lit-html").RenderOptions;
|
|
2091
|
-
readonly childNodes: NodeListOf<ChildNode>;
|
|
2092
|
-
active: boolean;
|
|
2093
|
-
focused: boolean;
|
|
2094
|
-
selected: boolean;
|
|
2095
|
-
value: string;
|
|
2096
|
-
hasSubmenu: boolean;
|
|
2097
|
-
noWrap: boolean;
|
|
2098
|
-
overlayElement: import("overlay/src/OverlayBase").OverlayBase;
|
|
2099
|
-
readonly itemText: string;
|
|
2100
|
-
readonly focusElement: HTMLElement;
|
|
2101
|
-
readonly itemChildren: import("menu/src").MenuItemChildren;
|
|
2102
|
-
closeOverlay?: (() => Promise<void>) | undefined;
|
|
2103
|
-
openOverlay: () => Promise<void>;
|
|
2104
|
-
updateAriaSelected: () => void;
|
|
2105
|
-
setRole: (role: string) => void;
|
|
2106
|
-
connectedCallback: () => void;
|
|
2107
|
-
_parentElement: HTMLElement;
|
|
2108
|
-
disconnectedCallback: () => void;
|
|
2109
|
-
triggerUpdate: () => Promise<void>;
|
|
2110
|
-
dispatchUpdate: () => void;
|
|
2111
|
-
menuData: {
|
|
2112
|
-
focusRoot?: import("menu/src").Menu | undefined;
|
|
2113
|
-
parentMenu?: import("menu/src").Menu | undefined;
|
|
2114
|
-
selectionRoot?: import("menu/src").Menu | undefined;
|
|
2115
|
-
cleanupSteps: ((item: import("menu/src").MenuItem) => void)[];
|
|
2116
|
-
};
|
|
2117
2106
|
readonly renderRoot: HTMLElement | ShadowRoot;
|
|
2118
2107
|
isUpdatePending: boolean;
|
|
2119
2108
|
hasUpdated: boolean;
|
|
2120
2109
|
addController: (controller: import("lit").ReactiveController) => void;
|
|
2121
2110
|
removeController: (controller: import("lit").ReactiveController) => void;
|
|
2111
|
+
connectedCallback: () => void;
|
|
2112
|
+
disconnectedCallback: () => void;
|
|
2122
2113
|
attributeChangedCallback: (name: string, _old: string | null, value: string | null) => void;
|
|
2123
2114
|
requestUpdate: (name?: PropertyKey | undefined, oldValue?: unknown, options?: import("lit").PropertyDeclaration<unknown, unknown> | undefined) => void;
|
|
2124
2115
|
readonly updateComplete: Promise<boolean>;
|
|
@@ -2134,6 +2125,14 @@ export declare const MenuItem: import("react").ComponentType<Partial<{
|
|
|
2134
2125
|
outerText: string;
|
|
2135
2126
|
spellcheck: boolean;
|
|
2136
2127
|
attachInternals: () => ElementInternals;
|
|
2128
|
+
addEventListener: {
|
|
2129
|
+
<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
2130
|
+
(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
2131
|
+
};
|
|
2132
|
+
removeEventListener: {
|
|
2133
|
+
<K_1 extends keyof HTMLElementEventMap>(type: K_1, listener: (this: HTMLElement, ev: HTMLElementEventMap[K_1]) => any, options?: boolean | EventListenerOptions | undefined): void;
|
|
2134
|
+
(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions | undefined): void;
|
|
2135
|
+
};
|
|
2137
2136
|
readonly classList: DOMTokenList;
|
|
2138
2137
|
readonly clientHeight: number;
|
|
2139
2138
|
readonly clientLeft: number;
|
|
@@ -2149,6 +2148,7 @@ export declare const MenuItem: import("react").ComponentType<Partial<{
|
|
|
2149
2148
|
scrollLeft: number;
|
|
2150
2149
|
scrollTop: number;
|
|
2151
2150
|
readonly scrollWidth: number;
|
|
2151
|
+
shadowRoot: ShadowRoot;
|
|
2152
2152
|
readonly tagName: string;
|
|
2153
2153
|
attachShadow: (init: ShadowRootInit) => ShadowRoot;
|
|
2154
2154
|
closest: {
|
|
@@ -2205,6 +2205,7 @@ export declare const MenuItem: import("react").ComponentType<Partial<{
|
|
|
2205
2205
|
toggleAttribute: (qualifiedName: string, force?: boolean | undefined) => boolean;
|
|
2206
2206
|
webkitMatchesSelector: (selectors: string) => boolean;
|
|
2207
2207
|
readonly baseURI: string;
|
|
2208
|
+
readonly childNodes: NodeListOf<ChildNode>;
|
|
2208
2209
|
readonly firstChild: ChildNode | null;
|
|
2209
2210
|
readonly isConnected: boolean;
|
|
2210
2211
|
readonly lastChild: ChildNode | null;
|
|
@@ -2212,6 +2213,7 @@ export declare const MenuItem: import("react").ComponentType<Partial<{
|
|
|
2212
2213
|
readonly nodeName: string;
|
|
2213
2214
|
readonly nodeType: number;
|
|
2214
2215
|
nodeValue: string | null;
|
|
2216
|
+
readonly parentElement: HTMLElement | null;
|
|
2215
2217
|
readonly parentNode: ParentNode | null;
|
|
2216
2218
|
readonly previousSibling: ChildNode | null;
|
|
2217
2219
|
textContent: string | null;
|
|
@@ -2247,6 +2249,7 @@ export declare const MenuItem: import("react").ComponentType<Partial<{
|
|
|
2247
2249
|
readonly NOTATION_NODE: number;
|
|
2248
2250
|
readonly PROCESSING_INSTRUCTION_NODE: number;
|
|
2249
2251
|
readonly TEXT_NODE: number;
|
|
2252
|
+
dispatchEvent: (event: Event) => boolean;
|
|
2250
2253
|
ariaAtomic: string | null;
|
|
2251
2254
|
ariaAutoComplete: string | null;
|
|
2252
2255
|
ariaBusy: string | null;
|
|
@@ -2258,6 +2261,7 @@ export declare const MenuItem: import("react").ComponentType<Partial<{
|
|
|
2258
2261
|
ariaDisabled: string | null;
|
|
2259
2262
|
ariaExpanded: string | null;
|
|
2260
2263
|
ariaHasPopup: string | null;
|
|
2264
|
+
ariaHidden: string | null;
|
|
2261
2265
|
ariaKeyShortcuts: string | null;
|
|
2262
2266
|
ariaLabel: string | null;
|
|
2263
2267
|
ariaLevel: string | null;
|
|
@@ -2282,6 +2286,7 @@ export declare const MenuItem: import("react").ComponentType<Partial<{
|
|
|
2282
2286
|
ariaValueMin: string | null;
|
|
2283
2287
|
ariaValueNow: string | null;
|
|
2284
2288
|
ariaValueText: string | null;
|
|
2289
|
+
animate: (keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions | undefined) => Animation;
|
|
2285
2290
|
getAnimations: (options?: GetAnimationsOptions | undefined) => Animation[];
|
|
2286
2291
|
after: (...nodes: (string | Node)[]) => void;
|
|
2287
2292
|
before: (...nodes: (string | Node)[]) => void;
|
|
@@ -2306,6 +2311,7 @@ export declare const MenuItem: import("react").ComponentType<Partial<{
|
|
|
2306
2311
|
<E_2 extends Element = Element>(selectors: string): NodeListOf<E_2>;
|
|
2307
2312
|
};
|
|
2308
2313
|
replaceChildren: (...nodes: (string | Node)[]) => void;
|
|
2314
|
+
readonly assignedSlot: HTMLSlotElement | null;
|
|
2309
2315
|
oncopy: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
2310
2316
|
oncut: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
2311
2317
|
onpaste: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
@@ -2400,7 +2406,38 @@ export declare const MenuItem: import("react").ComponentType<Partial<{
|
|
|
2400
2406
|
onwebkitanimationstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
2401
2407
|
onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
2402
2408
|
onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
|
|
2409
|
+
autofocus: boolean;
|
|
2403
2410
|
readonly dataset: DOMStringMap;
|
|
2411
|
+
download?: string | undefined;
|
|
2412
|
+
href?: string | undefined;
|
|
2413
|
+
target?: "_blank" | "_parent" | "_self" | "_top" | undefined;
|
|
2414
|
+
disabled: boolean;
|
|
2415
|
+
open: boolean;
|
|
2416
|
+
readonly renderOptions: import("lit-html").RenderOptions;
|
|
2417
|
+
active: boolean;
|
|
2418
|
+
focused: boolean;
|
|
2419
|
+
selected: boolean;
|
|
2420
|
+
value: string;
|
|
2421
|
+
hasSubmenu: boolean;
|
|
2422
|
+
contentSlot: HTMLSlotElement;
|
|
2423
|
+
iconSlot: HTMLSlotElement;
|
|
2424
|
+
noWrap: boolean;
|
|
2425
|
+
overlayElement: import("overlay/src").Overlay;
|
|
2426
|
+
readonly itemText: string;
|
|
2427
|
+
readonly focusElement: HTMLElement;
|
|
2428
|
+
readonly itemChildren: import("menu/src").MenuItemChildren;
|
|
2429
|
+
openOverlay: () => Promise<void>;
|
|
2430
|
+
updateAriaSelected: () => void;
|
|
2431
|
+
setRole: (role: string) => void;
|
|
2432
|
+
_parentElement: HTMLElement;
|
|
2433
|
+
triggerUpdate: () => Promise<void>;
|
|
2434
|
+
dispatchUpdate: () => void;
|
|
2435
|
+
menuData: {
|
|
2436
|
+
focusRoot?: import("menu/src").Menu | undefined;
|
|
2437
|
+
parentMenu?: import("menu/src").Menu | undefined;
|
|
2438
|
+
selectionRoot?: import("menu/src").Menu | undefined;
|
|
2439
|
+
cleanupSteps: ((item: import("menu/src").MenuItem) => void)[];
|
|
2440
|
+
};
|
|
2404
2441
|
isLTR: boolean;
|
|
2405
2442
|
hasVisibleFocusInTree: () => boolean;
|
|
2406
2443
|
renderAnchor: (options: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@swc-react/menu",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.35.1-rc.15+9b76319e4",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
],
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@lit-labs/react": "^1.1.1",
|
|
33
|
-
"@spectrum-web-components/menu": "^0.
|
|
33
|
+
"@spectrum-web-components/menu": "^0.35.1-rc.15+9b76319e4"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
36
|
"next": "~13.4"
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
"optional": true
|
|
41
41
|
}
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "9b76319e4f1cc7cb0dd03e9d9debf544e5bed4e9"
|
|
44
44
|
}
|