@swc-react/menu 0.35.1-rc.34 → 0.37.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/next.d.ts +87 -80
- package/package.json +3 -3
package/next.d.ts
CHANGED
|
@@ -2,32 +2,33 @@
|
|
|
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;
|
|
6
14
|
accessKey?: string | undefined;
|
|
7
15
|
draggable?: (boolean | "true" | "false") | undefined;
|
|
8
16
|
hidden?: boolean | undefined;
|
|
9
17
|
lang?: string | undefined;
|
|
10
|
-
title?: string | undefined;
|
|
11
18
|
translate?: "yes" | "no" | undefined;
|
|
12
|
-
className?: string | undefined;
|
|
13
|
-
id?: string | undefined;
|
|
14
19
|
prefix?: string | undefined;
|
|
15
|
-
slot?: string | undefined;
|
|
16
20
|
children?: import("react").ReactNode;
|
|
17
|
-
style?: import("react").CSSProperties | undefined;
|
|
18
21
|
contentEditable?: "inherit" | (boolean | "true" | "false") | undefined;
|
|
19
|
-
inputMode?: "
|
|
22
|
+
inputMode?: "text" | "search" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
20
23
|
nonce?: string | undefined;
|
|
21
|
-
tabIndex?: number | undefined;
|
|
22
|
-
rel?: string | undefined;
|
|
23
|
-
'aria-disabled'?: (boolean | "true" | "false") | undefined;
|
|
24
24
|
'aria-describedby'?: string | undefined;
|
|
25
|
-
'aria-haspopup'?: boolean | "
|
|
25
|
+
'aria-haspopup'?: boolean | "dialog" | "menu" | "true" | "false" | "listbox" | "tree" | "grid" | undefined;
|
|
26
26
|
'aria-expanded'?: (boolean | "true" | "false") | undefined;
|
|
27
27
|
role?: import("react").AriaRole | undefined;
|
|
28
28
|
'aria-selected'?: (boolean | "true" | "false") | undefined;
|
|
29
29
|
'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
|
|
30
30
|
'aria-label'?: string | undefined;
|
|
31
|
+
content?: string | undefined;
|
|
31
32
|
'aria-activedescendant'?: string | undefined;
|
|
32
33
|
'aria-labelledby'?: string | undefined;
|
|
33
34
|
defaultChecked?: boolean | undefined;
|
|
@@ -40,7 +41,6 @@ export declare const Menu: import("react").ComponentType<Partial<{
|
|
|
40
41
|
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
41
42
|
radioGroup?: string | undefined;
|
|
42
43
|
about?: string | undefined;
|
|
43
|
-
content?: string | undefined;
|
|
44
44
|
datatype?: string | undefined;
|
|
45
45
|
inlist?: any;
|
|
46
46
|
property?: string | undefined;
|
|
@@ -71,10 +71,10 @@ export declare const Menu: import("react").ComponentType<Partial<{
|
|
|
71
71
|
'aria-colindextext'?: string | undefined;
|
|
72
72
|
'aria-colspan'?: number | undefined;
|
|
73
73
|
'aria-controls'?: string | undefined;
|
|
74
|
-
'aria-current'?: boolean | "
|
|
74
|
+
'aria-current'?: boolean | "time" | "true" | "page" | "false" | "step" | "location" | "date" | undefined;
|
|
75
75
|
'aria-description'?: string | undefined;
|
|
76
76
|
'aria-details'?: string | undefined;
|
|
77
|
-
'aria-dropeffect'?: "link" | "
|
|
77
|
+
'aria-dropeffect'?: "link" | "copy" | "none" | "execute" | "move" | "popup" | undefined;
|
|
78
78
|
'aria-errormessage'?: string | undefined;
|
|
79
79
|
'aria-flowto'?: string | undefined;
|
|
80
80
|
'aria-grabbed'?: (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,6 +283,10 @@ 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>;
|
|
284
290
|
readonly renderRoot: HTMLElement | ShadowRoot;
|
|
285
291
|
isUpdatePending: boolean;
|
|
286
292
|
hasUpdated: boolean;
|
|
@@ -383,7 +389,6 @@ export declare const Menu: import("react").ComponentType<Partial<{
|
|
|
383
389
|
toggleAttribute: (qualifiedName: string, force?: boolean | undefined) => boolean;
|
|
384
390
|
webkitMatchesSelector: (selectors: string) => boolean;
|
|
385
391
|
readonly baseURI: string;
|
|
386
|
-
readonly childNodes: NodeListOf<ChildNode>;
|
|
387
392
|
readonly firstChild: ChildNode | null;
|
|
388
393
|
readonly isConnected: boolean;
|
|
389
394
|
readonly lastChild: ChildNode | null;
|
|
@@ -439,7 +444,6 @@ export declare const Menu: import("react").ComponentType<Partial<{
|
|
|
439
444
|
ariaDisabled: string | null;
|
|
440
445
|
ariaExpanded: string | null;
|
|
441
446
|
ariaHasPopup: string | null;
|
|
442
|
-
ariaHidden: string | null;
|
|
443
447
|
ariaKeyShortcuts: string | null;
|
|
444
448
|
ariaLabel: string | null;
|
|
445
449
|
ariaLevel: string | null;
|
|
@@ -464,7 +468,6 @@ export declare const Menu: import("react").ComponentType<Partial<{
|
|
|
464
468
|
ariaValueMin: string | null;
|
|
465
469
|
ariaValueNow: string | null;
|
|
466
470
|
ariaValueText: string | null;
|
|
467
|
-
animate: (keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions | undefined) => Animation;
|
|
468
471
|
getAnimations: (options?: GetAnimationsOptions | undefined) => Animation[];
|
|
469
472
|
after: (...nodes: (string | Node)[]) => void;
|
|
470
473
|
before: (...nodes: (string | Node)[]) => void;
|
|
@@ -584,9 +587,7 @@ export declare const Menu: import("react").ComponentType<Partial<{
|
|
|
584
587
|
onwebkitanimationstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
585
588
|
onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
586
589
|
onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
|
|
587
|
-
autofocus: boolean;
|
|
588
590
|
readonly dataset: DOMStringMap;
|
|
589
|
-
readonly renderOptions: import("lit-html").RenderOptions;
|
|
590
591
|
selected: string[];
|
|
591
592
|
value: string;
|
|
592
593
|
isLTR: boolean;
|
|
@@ -618,32 +619,33 @@ export declare const Menu: import("react").ComponentType<Partial<{
|
|
|
618
619
|
}> & import("react").RefAttributes<import("menu/src").Menu>>;
|
|
619
620
|
export declare const MenuDivider: import("react").ComponentType<Partial<{
|
|
620
621
|
dir?: string | undefined;
|
|
622
|
+
slot?: string | undefined;
|
|
623
|
+
style?: import("react").CSSProperties | undefined;
|
|
624
|
+
title?: string | undefined;
|
|
625
|
+
tabIndex?: number | undefined;
|
|
626
|
+
'aria-disabled'?: (boolean | "true" | "false") | undefined;
|
|
627
|
+
rel?: string | undefined;
|
|
628
|
+
id?: string | undefined;
|
|
629
|
+
className?: string | undefined;
|
|
621
630
|
'aria-hidden'?: (boolean | "true" | "false") | undefined;
|
|
622
631
|
accessKey?: string | undefined;
|
|
623
632
|
draggable?: (boolean | "true" | "false") | undefined;
|
|
624
633
|
hidden?: boolean | undefined;
|
|
625
634
|
lang?: string | undefined;
|
|
626
|
-
title?: string | undefined;
|
|
627
635
|
translate?: "yes" | "no" | undefined;
|
|
628
|
-
className?: string | undefined;
|
|
629
|
-
id?: string | undefined;
|
|
630
636
|
prefix?: string | undefined;
|
|
631
|
-
slot?: string | undefined;
|
|
632
637
|
children?: import("react").ReactNode;
|
|
633
|
-
style?: import("react").CSSProperties | undefined;
|
|
634
638
|
contentEditable?: "inherit" | (boolean | "true" | "false") | undefined;
|
|
635
|
-
inputMode?: "
|
|
639
|
+
inputMode?: "text" | "search" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
636
640
|
nonce?: string | undefined;
|
|
637
|
-
tabIndex?: number | undefined;
|
|
638
|
-
rel?: string | undefined;
|
|
639
|
-
'aria-disabled'?: (boolean | "true" | "false") | undefined;
|
|
640
641
|
'aria-describedby'?: string | undefined;
|
|
641
|
-
'aria-haspopup'?: boolean | "
|
|
642
|
+
'aria-haspopup'?: boolean | "dialog" | "menu" | "true" | "false" | "listbox" | "tree" | "grid" | undefined;
|
|
642
643
|
'aria-expanded'?: (boolean | "true" | "false") | undefined;
|
|
643
644
|
role?: import("react").AriaRole | undefined;
|
|
644
645
|
'aria-selected'?: (boolean | "true" | "false") | undefined;
|
|
645
646
|
'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
|
|
646
647
|
'aria-label'?: string | undefined;
|
|
648
|
+
content?: string | undefined;
|
|
647
649
|
'aria-activedescendant'?: string | undefined;
|
|
648
650
|
'aria-labelledby'?: string | undefined;
|
|
649
651
|
defaultChecked?: boolean | undefined;
|
|
@@ -656,7 +658,6 @@ export declare const MenuDivider: import("react").ComponentType<Partial<{
|
|
|
656
658
|
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
657
659
|
radioGroup?: string | undefined;
|
|
658
660
|
about?: string | undefined;
|
|
659
|
-
content?: string | undefined;
|
|
660
661
|
datatype?: string | undefined;
|
|
661
662
|
inlist?: any;
|
|
662
663
|
property?: string | undefined;
|
|
@@ -687,10 +688,10 @@ export declare const MenuDivider: import("react").ComponentType<Partial<{
|
|
|
687
688
|
'aria-colindextext'?: string | undefined;
|
|
688
689
|
'aria-colspan'?: number | undefined;
|
|
689
690
|
'aria-controls'?: string | undefined;
|
|
690
|
-
'aria-current'?: boolean | "
|
|
691
|
+
'aria-current'?: boolean | "time" | "true" | "page" | "false" | "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;
|
|
@@ -889,7 +890,8 @@ export declare const MenuDivider: import("react").ComponentType<Partial<{
|
|
|
889
890
|
readonly attributes: NamedNodeMap;
|
|
890
891
|
readonly localName: string;
|
|
891
892
|
size: import("@spectrum-web-components/base").ElementSize;
|
|
892
|
-
|
|
893
|
+
animate: (keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions | undefined) => Animation;
|
|
894
|
+
readonly renderOptions: import("lit-html").RenderOptions;
|
|
893
895
|
blur: () => void;
|
|
894
896
|
click: () => void;
|
|
895
897
|
focus: (options?: FocusOptions | undefined) => void;
|
|
@@ -897,6 +899,10 @@ export declare const MenuDivider: import("react").ComponentType<Partial<{
|
|
|
897
899
|
(options?: ScrollToOptions | undefined): void;
|
|
898
900
|
(x: number, y: number): void;
|
|
899
901
|
};
|
|
902
|
+
autofocus: boolean;
|
|
903
|
+
normalize: () => void;
|
|
904
|
+
ariaHidden: string | null;
|
|
905
|
+
readonly childNodes: NodeListOf<ChildNode>;
|
|
900
906
|
readonly renderRoot: HTMLElement | ShadowRoot;
|
|
901
907
|
isUpdatePending: boolean;
|
|
902
908
|
hasUpdated: boolean;
|
|
@@ -999,7 +1005,6 @@ export declare const MenuDivider: import("react").ComponentType<Partial<{
|
|
|
999
1005
|
toggleAttribute: (qualifiedName: string, force?: boolean | undefined) => boolean;
|
|
1000
1006
|
webkitMatchesSelector: (selectors: string) => boolean;
|
|
1001
1007
|
readonly baseURI: string;
|
|
1002
|
-
readonly childNodes: NodeListOf<ChildNode>;
|
|
1003
1008
|
readonly firstChild: ChildNode | null;
|
|
1004
1009
|
readonly isConnected: boolean;
|
|
1005
1010
|
readonly lastChild: ChildNode | null;
|
|
@@ -1055,7 +1060,6 @@ export declare const MenuDivider: import("react").ComponentType<Partial<{
|
|
|
1055
1060
|
ariaDisabled: string | null;
|
|
1056
1061
|
ariaExpanded: string | null;
|
|
1057
1062
|
ariaHasPopup: string | null;
|
|
1058
|
-
ariaHidden: string | null;
|
|
1059
1063
|
ariaKeyShortcuts: string | null;
|
|
1060
1064
|
ariaLabel: string | null;
|
|
1061
1065
|
ariaLevel: string | null;
|
|
@@ -1080,7 +1084,6 @@ export declare const MenuDivider: import("react").ComponentType<Partial<{
|
|
|
1080
1084
|
ariaValueMin: string | null;
|
|
1081
1085
|
ariaValueNow: string | null;
|
|
1082
1086
|
ariaValueText: string | null;
|
|
1083
|
-
animate: (keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions | undefined) => Animation;
|
|
1084
1087
|
getAnimations: (options?: GetAnimationsOptions | undefined) => Animation[];
|
|
1085
1088
|
after: (...nodes: (string | Node)[]) => void;
|
|
1086
1089
|
before: (...nodes: (string | Node)[]) => void;
|
|
@@ -1200,40 +1203,39 @@ export declare const MenuDivider: import("react").ComponentType<Partial<{
|
|
|
1200
1203
|
onwebkitanimationstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
1201
1204
|
onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
1202
1205
|
onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
|
|
1203
|
-
autofocus: boolean;
|
|
1204
1206
|
readonly dataset: DOMStringMap;
|
|
1205
|
-
readonly renderOptions: import("lit-html").RenderOptions;
|
|
1206
1207
|
isLTR: boolean;
|
|
1207
1208
|
hasVisibleFocusInTree: () => boolean;
|
|
1208
1209
|
} & {}> & import("react").RefAttributes<import("menu/src").MenuDivider>>;
|
|
1209
1210
|
export declare const MenuGroup: import("react").ComponentType<Partial<{
|
|
1210
1211
|
dir?: string | undefined;
|
|
1212
|
+
slot?: string | undefined;
|
|
1213
|
+
style?: import("react").CSSProperties | undefined;
|
|
1214
|
+
title?: string | undefined;
|
|
1215
|
+
tabIndex?: number | undefined;
|
|
1216
|
+
'aria-disabled'?: (boolean | "true" | "false") | undefined;
|
|
1217
|
+
rel?: string | undefined;
|
|
1218
|
+
id?: string | undefined;
|
|
1219
|
+
className?: string | undefined;
|
|
1211
1220
|
'aria-hidden'?: (boolean | "true" | "false") | undefined;
|
|
1212
1221
|
accessKey?: string | undefined;
|
|
1213
1222
|
draggable?: (boolean | "true" | "false") | undefined;
|
|
1214
1223
|
hidden?: boolean | undefined;
|
|
1215
1224
|
lang?: string | undefined;
|
|
1216
|
-
title?: string | undefined;
|
|
1217
1225
|
translate?: "yes" | "no" | undefined;
|
|
1218
|
-
className?: string | undefined;
|
|
1219
|
-
id?: string | undefined;
|
|
1220
1226
|
prefix?: string | undefined;
|
|
1221
|
-
slot?: string | undefined;
|
|
1222
1227
|
children?: import("react").ReactNode;
|
|
1223
|
-
style?: import("react").CSSProperties | undefined;
|
|
1224
1228
|
contentEditable?: "inherit" | (boolean | "true" | "false") | undefined;
|
|
1225
|
-
inputMode?: "
|
|
1229
|
+
inputMode?: "text" | "search" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
1226
1230
|
nonce?: string | undefined;
|
|
1227
|
-
tabIndex?: number | undefined;
|
|
1228
|
-
rel?: string | undefined;
|
|
1229
|
-
'aria-disabled'?: (boolean | "true" | "false") | undefined;
|
|
1230
1231
|
'aria-describedby'?: string | undefined;
|
|
1231
|
-
'aria-haspopup'?: boolean | "
|
|
1232
|
+
'aria-haspopup'?: boolean | "dialog" | "menu" | "true" | "false" | "listbox" | "tree" | "grid" | undefined;
|
|
1232
1233
|
'aria-expanded'?: (boolean | "true" | "false") | undefined;
|
|
1233
1234
|
role?: import("react").AriaRole | undefined;
|
|
1234
1235
|
'aria-selected'?: (boolean | "true" | "false") | undefined;
|
|
1235
1236
|
'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
|
|
1236
1237
|
'aria-label'?: string | undefined;
|
|
1238
|
+
content?: string | undefined;
|
|
1237
1239
|
'aria-activedescendant'?: string | undefined;
|
|
1238
1240
|
'aria-labelledby'?: string | undefined;
|
|
1239
1241
|
defaultChecked?: boolean | undefined;
|
|
@@ -1246,7 +1248,6 @@ export declare const MenuGroup: import("react").ComponentType<Partial<{
|
|
|
1246
1248
|
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
1247
1249
|
radioGroup?: string | undefined;
|
|
1248
1250
|
about?: string | undefined;
|
|
1249
|
-
content?: string | undefined;
|
|
1250
1251
|
datatype?: string | undefined;
|
|
1251
1252
|
inlist?: any;
|
|
1252
1253
|
property?: string | undefined;
|
|
@@ -1277,10 +1278,10 @@ export declare const MenuGroup: import("react").ComponentType<Partial<{
|
|
|
1277
1278
|
'aria-colindextext'?: string | undefined;
|
|
1278
1279
|
'aria-colspan'?: number | undefined;
|
|
1279
1280
|
'aria-controls'?: string | undefined;
|
|
1280
|
-
'aria-current'?: boolean | "
|
|
1281
|
+
'aria-current'?: boolean | "time" | "true" | "page" | "false" | "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;
|
|
@@ -1478,8 +1479,10 @@ export declare const MenuGroup: import("react").ComponentType<Partial<{
|
|
|
1478
1479
|
} & {
|
|
1479
1480
|
readonly attributes: NamedNodeMap;
|
|
1480
1481
|
readonly localName: string;
|
|
1482
|
+
size: import("@spectrum-web-components/base").ElementSize;
|
|
1481
1483
|
label: string;
|
|
1482
|
-
|
|
1484
|
+
animate: (keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions | undefined) => Animation;
|
|
1485
|
+
readonly renderOptions: import("lit-html").RenderOptions;
|
|
1483
1486
|
blur: () => void;
|
|
1484
1487
|
click: () => void;
|
|
1485
1488
|
focus: ({ preventScroll }?: FocusOptions) => void;
|
|
@@ -1487,6 +1490,10 @@ export declare const MenuGroup: import("react").ComponentType<Partial<{
|
|
|
1487
1490
|
(options?: ScrollToOptions | undefined): void;
|
|
1488
1491
|
(x: number, y: number): void;
|
|
1489
1492
|
};
|
|
1493
|
+
autofocus: boolean;
|
|
1494
|
+
normalize: () => void;
|
|
1495
|
+
ariaHidden: string | null;
|
|
1496
|
+
readonly childNodes: NodeListOf<ChildNode>;
|
|
1490
1497
|
readonly renderRoot: HTMLElement | ShadowRoot;
|
|
1491
1498
|
isUpdatePending: boolean;
|
|
1492
1499
|
hasUpdated: boolean;
|
|
@@ -1589,7 +1596,6 @@ export declare const MenuGroup: import("react").ComponentType<Partial<{
|
|
|
1589
1596
|
toggleAttribute: (qualifiedName: string, force?: boolean | undefined) => boolean;
|
|
1590
1597
|
webkitMatchesSelector: (selectors: string) => boolean;
|
|
1591
1598
|
readonly baseURI: string;
|
|
1592
|
-
readonly childNodes: NodeListOf<ChildNode>;
|
|
1593
1599
|
readonly firstChild: ChildNode | null;
|
|
1594
1600
|
readonly isConnected: boolean;
|
|
1595
1601
|
readonly lastChild: ChildNode | null;
|
|
@@ -1645,7 +1651,6 @@ export declare const MenuGroup: import("react").ComponentType<Partial<{
|
|
|
1645
1651
|
ariaDisabled: string | null;
|
|
1646
1652
|
ariaExpanded: string | null;
|
|
1647
1653
|
ariaHasPopup: string | null;
|
|
1648
|
-
ariaHidden: string | null;
|
|
1649
1654
|
ariaKeyShortcuts: string | null;
|
|
1650
1655
|
ariaLabel: string | null;
|
|
1651
1656
|
ariaLevel: string | null;
|
|
@@ -1670,7 +1675,6 @@ export declare const MenuGroup: import("react").ComponentType<Partial<{
|
|
|
1670
1675
|
ariaValueMin: string | null;
|
|
1671
1676
|
ariaValueNow: string | null;
|
|
1672
1677
|
ariaValueText: string | null;
|
|
1673
|
-
animate: (keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions | undefined) => Animation;
|
|
1674
1678
|
getAnimations: (options?: GetAnimationsOptions | undefined) => Animation[];
|
|
1675
1679
|
after: (...nodes: (string | Node)[]) => void;
|
|
1676
1680
|
before: (...nodes: (string | Node)[]) => void;
|
|
@@ -1790,9 +1794,7 @@ 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
1798
|
selected: string[];
|
|
1797
1799
|
value: string;
|
|
1798
1800
|
isLTR: boolean;
|
|
@@ -1824,32 +1826,33 @@ export declare const MenuGroup: import("react").ComponentType<Partial<{
|
|
|
1824
1826
|
}> & import("react").RefAttributes<import("menu/src").MenuGroup>>;
|
|
1825
1827
|
export declare const MenuItem: import("react").ComponentType<Partial<{
|
|
1826
1828
|
dir?: string | undefined;
|
|
1829
|
+
slot?: string | undefined;
|
|
1830
|
+
style?: import("react").CSSProperties | undefined;
|
|
1831
|
+
title?: string | undefined;
|
|
1832
|
+
tabIndex?: number | undefined;
|
|
1833
|
+
'aria-disabled'?: (boolean | "true" | "false") | undefined;
|
|
1834
|
+
rel?: string | undefined;
|
|
1835
|
+
id?: string | undefined;
|
|
1836
|
+
className?: string | undefined;
|
|
1827
1837
|
'aria-hidden'?: (boolean | "true" | "false") | undefined;
|
|
1828
1838
|
accessKey?: string | undefined;
|
|
1829
1839
|
draggable?: (boolean | "true" | "false") | undefined;
|
|
1830
1840
|
hidden?: boolean | undefined;
|
|
1831
1841
|
lang?: string | undefined;
|
|
1832
|
-
title?: string | undefined;
|
|
1833
1842
|
translate?: "yes" | "no" | undefined;
|
|
1834
|
-
className?: string | undefined;
|
|
1835
|
-
id?: string | undefined;
|
|
1836
1843
|
prefix?: string | undefined;
|
|
1837
|
-
slot?: string | undefined;
|
|
1838
1844
|
children?: import("react").ReactNode;
|
|
1839
|
-
style?: import("react").CSSProperties | undefined;
|
|
1840
1845
|
contentEditable?: "inherit" | (boolean | "true" | "false") | undefined;
|
|
1841
|
-
inputMode?: "
|
|
1846
|
+
inputMode?: "text" | "search" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
1842
1847
|
nonce?: string | undefined;
|
|
1843
|
-
tabIndex?: number | undefined;
|
|
1844
|
-
rel?: string | undefined;
|
|
1845
|
-
'aria-disabled'?: (boolean | "true" | "false") | undefined;
|
|
1846
1848
|
'aria-describedby'?: string | undefined;
|
|
1847
|
-
'aria-haspopup'?: boolean | "
|
|
1849
|
+
'aria-haspopup'?: boolean | "dialog" | "menu" | "true" | "false" | "listbox" | "tree" | "grid" | undefined;
|
|
1848
1850
|
'aria-expanded'?: (boolean | "true" | "false") | undefined;
|
|
1849
1851
|
role?: import("react").AriaRole | undefined;
|
|
1850
1852
|
'aria-selected'?: (boolean | "true" | "false") | undefined;
|
|
1851
1853
|
'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
|
|
1852
1854
|
'aria-label'?: string | undefined;
|
|
1855
|
+
content?: string | undefined;
|
|
1853
1856
|
'aria-activedescendant'?: string | undefined;
|
|
1854
1857
|
'aria-labelledby'?: string | undefined;
|
|
1855
1858
|
defaultChecked?: boolean | undefined;
|
|
@@ -1862,7 +1865,6 @@ export declare const MenuItem: import("react").ComponentType<Partial<{
|
|
|
1862
1865
|
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
1863
1866
|
radioGroup?: string | undefined;
|
|
1864
1867
|
about?: string | undefined;
|
|
1865
|
-
content?: string | undefined;
|
|
1866
1868
|
datatype?: string | undefined;
|
|
1867
1869
|
inlist?: any;
|
|
1868
1870
|
property?: string | undefined;
|
|
@@ -1893,10 +1895,10 @@ export declare const MenuItem: import("react").ComponentType<Partial<{
|
|
|
1893
1895
|
'aria-colindextext'?: string | undefined;
|
|
1894
1896
|
'aria-colspan'?: number | undefined;
|
|
1895
1897
|
'aria-controls'?: string | undefined;
|
|
1896
|
-
'aria-current'?: boolean | "
|
|
1898
|
+
'aria-current'?: boolean | "time" | "true" | "page" | "false" | "step" | "location" | "date" | undefined;
|
|
1897
1899
|
'aria-description'?: string | undefined;
|
|
1898
1900
|
'aria-details'?: string | undefined;
|
|
1899
|
-
'aria-dropeffect'?: "link" | "
|
|
1901
|
+
'aria-dropeffect'?: "link" | "copy" | "none" | "execute" | "move" | "popup" | undefined;
|
|
1900
1902
|
'aria-errormessage'?: string | undefined;
|
|
1901
1903
|
'aria-flowto'?: string | undefined;
|
|
1902
1904
|
'aria-grabbed'?: (boolean | "true" | "false") | undefined;
|
|
@@ -2095,7 +2097,8 @@ export declare const MenuItem: import("react").ComponentType<Partial<{
|
|
|
2095
2097
|
readonly attributes: NamedNodeMap;
|
|
2096
2098
|
readonly localName: string;
|
|
2097
2099
|
label?: string | undefined;
|
|
2098
|
-
|
|
2100
|
+
animate: (keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions | undefined) => Animation;
|
|
2101
|
+
readonly renderOptions: import("lit-html").RenderOptions;
|
|
2099
2102
|
blur: () => void;
|
|
2100
2103
|
click: () => void;
|
|
2101
2104
|
focus: (options?: FocusOptions | undefined) => void;
|
|
@@ -2103,6 +2106,16 @@ export declare const MenuItem: import("react").ComponentType<Partial<{
|
|
|
2103
2106
|
(options?: ScrollToOptions | undefined): void;
|
|
2104
2107
|
(x: number, y: number): void;
|
|
2105
2108
|
};
|
|
2109
|
+
disabled: boolean;
|
|
2110
|
+
autofocus: boolean;
|
|
2111
|
+
normalize: () => void;
|
|
2112
|
+
download?: string | undefined;
|
|
2113
|
+
href?: string | undefined;
|
|
2114
|
+
target?: "_blank" | "_parent" | "_self" | "_top" | undefined;
|
|
2115
|
+
ariaHidden: string | null;
|
|
2116
|
+
slotContentIsPresent: boolean;
|
|
2117
|
+
slotHasContent: boolean;
|
|
2118
|
+
readonly childNodes: NodeListOf<ChildNode>;
|
|
2106
2119
|
readonly renderRoot: HTMLElement | ShadowRoot;
|
|
2107
2120
|
isUpdatePending: boolean;
|
|
2108
2121
|
hasUpdated: boolean;
|
|
@@ -2205,7 +2218,6 @@ export declare const MenuItem: import("react").ComponentType<Partial<{
|
|
|
2205
2218
|
toggleAttribute: (qualifiedName: string, force?: boolean | undefined) => boolean;
|
|
2206
2219
|
webkitMatchesSelector: (selectors: string) => boolean;
|
|
2207
2220
|
readonly baseURI: string;
|
|
2208
|
-
readonly childNodes: NodeListOf<ChildNode>;
|
|
2209
2221
|
readonly firstChild: ChildNode | null;
|
|
2210
2222
|
readonly isConnected: boolean;
|
|
2211
2223
|
readonly lastChild: ChildNode | null;
|
|
@@ -2261,7 +2273,6 @@ export declare const MenuItem: import("react").ComponentType<Partial<{
|
|
|
2261
2273
|
ariaDisabled: string | null;
|
|
2262
2274
|
ariaExpanded: string | null;
|
|
2263
2275
|
ariaHasPopup: string | null;
|
|
2264
|
-
ariaHidden: string | null;
|
|
2265
2276
|
ariaKeyShortcuts: string | null;
|
|
2266
2277
|
ariaLabel: string | null;
|
|
2267
2278
|
ariaLevel: string | null;
|
|
@@ -2286,7 +2297,6 @@ export declare const MenuItem: import("react").ComponentType<Partial<{
|
|
|
2286
2297
|
ariaValueMin: string | null;
|
|
2287
2298
|
ariaValueNow: string | null;
|
|
2288
2299
|
ariaValueText: string | null;
|
|
2289
|
-
animate: (keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions | undefined) => Animation;
|
|
2290
2300
|
getAnimations: (options?: GetAnimationsOptions | undefined) => Animation[];
|
|
2291
2301
|
after: (...nodes: (string | Node)[]) => void;
|
|
2292
2302
|
before: (...nodes: (string | Node)[]) => void;
|
|
@@ -2406,14 +2416,8 @@ 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
|
-
download?: string | undefined;
|
|
2412
|
-
href?: string | undefined;
|
|
2413
|
-
target?: "_blank" | "_parent" | "_self" | "_top" | undefined;
|
|
2414
|
-
disabled: boolean;
|
|
2415
2420
|
open: boolean;
|
|
2416
|
-
readonly renderOptions: import("lit-html").RenderOptions;
|
|
2417
2421
|
active: boolean;
|
|
2418
2422
|
focused: boolean;
|
|
2419
2423
|
selected: boolean;
|
|
@@ -2442,6 +2446,9 @@ export declare const MenuItem: import("react").ComponentType<Partial<{
|
|
|
2442
2446
|
};
|
|
2443
2447
|
isLTR: boolean;
|
|
2444
2448
|
hasVisibleFocusInTree: () => boolean;
|
|
2449
|
+
getSlotContentPresence: (selector: string) => boolean;
|
|
2450
|
+
managePresenceObservedSlot: () => void;
|
|
2451
|
+
manageTextObservedSlot: () => void;
|
|
2445
2452
|
renderAnchor: (options: {
|
|
2446
2453
|
id: string;
|
|
2447
2454
|
className?: string | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@swc-react/menu",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.37.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.37.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": "d771f62f0d8063070af43283bb0fd5e3400bad06"
|
|
44
44
|
}
|