@swc-react/action-menu 0.34.1-rc.0 → 0.35.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 +47 -37
- package/package.json +3 -3
package/next.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react" />
|
|
2
3
|
export declare const ActionMenu: import("react").ComponentType<Partial<{
|
|
3
4
|
dir?: string | undefined;
|
|
4
5
|
slot?: string | undefined;
|
|
@@ -6,16 +7,20 @@ export declare const ActionMenu: import("react").ComponentType<Partial<{
|
|
|
6
7
|
title?: string | undefined;
|
|
7
8
|
tabIndex?: number | undefined;
|
|
8
9
|
'aria-disabled'?: (boolean | "true" | "false") | undefined;
|
|
10
|
+
'aria-hidden'?: (boolean | "true" | "false") | undefined;
|
|
9
11
|
hidden?: boolean | undefined;
|
|
10
|
-
|
|
11
|
-
color?: string | undefined;
|
|
12
|
-
lang?: string | undefined;
|
|
13
|
-
'aria-describedby'?: string | undefined;
|
|
12
|
+
rel?: string | undefined;
|
|
14
13
|
id?: string | undefined;
|
|
15
14
|
className?: string | undefined;
|
|
15
|
+
color?: string | undefined;
|
|
16
|
+
lang?: string | undefined;
|
|
17
|
+
'aria-modal'?: (boolean | "true" | "false") | undefined;
|
|
18
|
+
accessKey?: string | undefined;
|
|
16
19
|
role?: import("react").AriaRole | undefined;
|
|
17
|
-
'aria-
|
|
18
|
-
'aria-
|
|
20
|
+
'aria-label'?: string | undefined;
|
|
21
|
+
'aria-haspopup'?: boolean | "dialog" | "menu" | "true" | "false" | "listbox" | "grid" | "tree" | undefined;
|
|
22
|
+
'aria-expanded'?: (boolean | "true" | "false") | undefined;
|
|
23
|
+
'aria-pressed'?: boolean | "true" | "false" | "mixed" | undefined;
|
|
19
24
|
draggable?: (boolean | "true" | "false") | undefined;
|
|
20
25
|
translate?: "yes" | "no" | undefined;
|
|
21
26
|
prefix?: string | undefined;
|
|
@@ -23,25 +28,28 @@ export declare const ActionMenu: import("react").ComponentType<Partial<{
|
|
|
23
28
|
contentEditable?: "inherit" | (boolean | "true" | "false") | undefined;
|
|
24
29
|
inputMode?: "text" | "search" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
25
30
|
nonce?: string | undefined;
|
|
26
|
-
'aria-
|
|
31
|
+
'aria-describedby'?: string | undefined;
|
|
32
|
+
'aria-controls'?: string | undefined;
|
|
33
|
+
'aria-selected'?: (boolean | "true" | "false") | undefined;
|
|
34
|
+
'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
|
|
27
35
|
'aria-activedescendant'?: string | undefined;
|
|
28
36
|
'aria-labelledby'?: string | undefined;
|
|
29
37
|
placeholder?: string | undefined;
|
|
30
|
-
'aria-haspopup'?: boolean | "dialog" | "menu" | "true" | "false" | "listbox" | "grid" | "tree" | undefined;
|
|
31
|
-
'aria-expanded'?: (boolean | "true" | "false") | undefined;
|
|
32
|
-
'aria-pressed'?: boolean | "true" | "false" | "mixed" | undefined;
|
|
33
38
|
defaultChecked?: boolean | undefined;
|
|
34
39
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
35
40
|
suppressContentEditableWarning?: boolean | undefined;
|
|
36
41
|
suppressHydrationWarning?: boolean | undefined;
|
|
42
|
+
autoFocus?: boolean | undefined;
|
|
37
43
|
contextMenu?: string | undefined;
|
|
38
44
|
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
39
45
|
radioGroup?: string | undefined;
|
|
40
46
|
about?: string | undefined;
|
|
47
|
+
content?: string | undefined;
|
|
41
48
|
datatype?: string | undefined;
|
|
42
49
|
inlist?: any;
|
|
43
50
|
property?: string | undefined;
|
|
44
51
|
resource?: string | undefined;
|
|
52
|
+
rev?: string | undefined;
|
|
45
53
|
typeof?: string | undefined;
|
|
46
54
|
vocab?: string | undefined;
|
|
47
55
|
autoCapitalize?: string | undefined;
|
|
@@ -58,23 +66,24 @@ export declare const ActionMenu: import("react").ComponentType<Partial<{
|
|
|
58
66
|
is?: string | undefined;
|
|
59
67
|
'aria-atomic'?: (boolean | "true" | "false") | undefined;
|
|
60
68
|
'aria-autocomplete'?: "none" | "inline" | "list" | "both" | undefined;
|
|
69
|
+
'aria-braillelabel'?: string | undefined;
|
|
70
|
+
'aria-brailleroledescription'?: string | undefined;
|
|
61
71
|
'aria-busy'?: (boolean | "true" | "false") | undefined;
|
|
62
72
|
'aria-colcount'?: number | undefined;
|
|
63
73
|
'aria-colindex'?: number | undefined;
|
|
74
|
+
'aria-colindextext'?: string | undefined;
|
|
64
75
|
'aria-colspan'?: number | undefined;
|
|
65
|
-
'aria-controls'?: string | undefined;
|
|
66
76
|
'aria-current'?: boolean | "time" | "true" | "false" | "page" | "step" | "location" | "date" | undefined;
|
|
77
|
+
'aria-description'?: string | undefined;
|
|
67
78
|
'aria-details'?: string | undefined;
|
|
68
79
|
'aria-dropeffect'?: "link" | "copy" | "none" | "execute" | "move" | "popup" | undefined;
|
|
69
80
|
'aria-errormessage'?: string | undefined;
|
|
70
81
|
'aria-flowto'?: string | undefined;
|
|
71
82
|
'aria-grabbed'?: (boolean | "true" | "false") | undefined;
|
|
72
|
-
'aria-hidden'?: (boolean | "true" | "false") | undefined;
|
|
73
83
|
'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
|
|
74
84
|
'aria-keyshortcuts'?: string | undefined;
|
|
75
85
|
'aria-level'?: number | undefined;
|
|
76
86
|
'aria-live'?: "off" | "assertive" | "polite" | undefined;
|
|
77
|
-
'aria-modal'?: (boolean | "true" | "false") | undefined;
|
|
78
87
|
'aria-multiline'?: (boolean | "true" | "false") | undefined;
|
|
79
88
|
'aria-multiselectable'?: (boolean | "true" | "false") | undefined;
|
|
80
89
|
'aria-orientation'?: "horizontal" | "vertical" | undefined;
|
|
@@ -87,6 +96,7 @@ export declare const ActionMenu: 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 ActionMenu: 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("action-menu/src").ActionMenu> | undefined;
|
|
101
111
|
onCopyCapture?: import("react").ClipboardEventHandler<import("action-menu/src").ActionMenu> | undefined;
|
|
@@ -279,30 +289,20 @@ export declare const ActionMenu: import("react").ComponentType<Partial<{
|
|
|
279
289
|
disabled: boolean;
|
|
280
290
|
autofocus: boolean;
|
|
281
291
|
normalize: () => void;
|
|
282
|
-
addEventListener: {
|
|
283
|
-
<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
284
|
-
(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
285
|
-
};
|
|
286
|
-
dispatchEvent: (event: Event) => boolean;
|
|
287
|
-
removeEventListener: {
|
|
288
|
-
<K_1 extends keyof HTMLElementEventMap>(type: K_1, listener: (this: HTMLElement, ev: HTMLElementEventMap[K_1]) => any, options?: boolean | EventListenerOptions | undefined): void;
|
|
289
|
-
(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions | undefined): void;
|
|
290
|
-
};
|
|
291
292
|
readonly target: HTMLButtonElement | import("action-menu/src").ActionMenu;
|
|
292
|
-
|
|
293
|
-
readonly assignedSlot: HTMLSlotElement | null;
|
|
294
|
-
placement: import("@floating-ui/core").Placement;
|
|
293
|
+
ariaHidden: string | null;
|
|
295
294
|
shadowRoot: ShadowRoot;
|
|
296
|
-
|
|
295
|
+
open: boolean;
|
|
297
296
|
readonly renderOptions: import("lit-html").RenderOptions;
|
|
298
|
-
|
|
297
|
+
placement: import("overlay/src").Placement;
|
|
298
|
+
overlayOpenCallback: () => Promise<void>;
|
|
299
|
+
remove: () => void;
|
|
299
300
|
slotHasContent: boolean;
|
|
300
301
|
readonly childNodes: NodeListOf<ChildNode>;
|
|
301
|
-
|
|
302
|
+
quiet: boolean;
|
|
302
303
|
value: string;
|
|
303
|
-
readonly focusElement: HTMLElement;
|
|
304
|
-
connectedCallback: () => void;
|
|
305
304
|
disconnectedCallback: () => void;
|
|
305
|
+
connectedCallback: () => void;
|
|
306
306
|
readonly renderRoot: HTMLElement | ShadowRoot;
|
|
307
307
|
isUpdatePending: boolean;
|
|
308
308
|
hasUpdated: boolean;
|
|
@@ -323,6 +323,14 @@ export declare const ActionMenu: import("react").ComponentType<Partial<{
|
|
|
323
323
|
outerText: string;
|
|
324
324
|
spellcheck: boolean;
|
|
325
325
|
attachInternals: () => ElementInternals;
|
|
326
|
+
addEventListener: {
|
|
327
|
+
<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
328
|
+
(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
329
|
+
};
|
|
330
|
+
removeEventListener: {
|
|
331
|
+
<K_1 extends keyof HTMLElementEventMap>(type: K_1, listener: (this: HTMLElement, ev: HTMLElementEventMap[K_1]) => any, options?: boolean | EventListenerOptions | undefined): void;
|
|
332
|
+
(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions | undefined): void;
|
|
333
|
+
};
|
|
326
334
|
readonly classList: DOMTokenList;
|
|
327
335
|
readonly clientHeight: number;
|
|
328
336
|
readonly clientLeft: number;
|
|
@@ -401,6 +409,7 @@ export declare const ActionMenu: import("react").ComponentType<Partial<{
|
|
|
401
409
|
readonly nodeName: string;
|
|
402
410
|
readonly nodeType: number;
|
|
403
411
|
nodeValue: string | null;
|
|
412
|
+
readonly parentElement: HTMLElement | null;
|
|
404
413
|
readonly parentNode: ParentNode | null;
|
|
405
414
|
readonly previousSibling: ChildNode | null;
|
|
406
415
|
textContent: string | null;
|
|
@@ -436,6 +445,7 @@ export declare const ActionMenu: import("react").ComponentType<Partial<{
|
|
|
436
445
|
readonly NOTATION_NODE: number;
|
|
437
446
|
readonly PROCESSING_INSTRUCTION_NODE: number;
|
|
438
447
|
readonly TEXT_NODE: number;
|
|
448
|
+
dispatchEvent: (event: Event) => boolean;
|
|
439
449
|
ariaAtomic: string | null;
|
|
440
450
|
ariaAutoComplete: string | null;
|
|
441
451
|
ariaBusy: string | null;
|
|
@@ -474,7 +484,6 @@ export declare const ActionMenu: import("react").ComponentType<Partial<{
|
|
|
474
484
|
getAnimations: (options?: GetAnimationsOptions | undefined) => Animation[];
|
|
475
485
|
after: (...nodes: (string | Node)[]) => void;
|
|
476
486
|
before: (...nodes: (string | Node)[]) => void;
|
|
477
|
-
remove: () => void;
|
|
478
487
|
replaceWith: (...nodes: (string | Node)[]) => void;
|
|
479
488
|
innerHTML: string;
|
|
480
489
|
readonly nextElementSibling: Element | null;
|
|
@@ -495,6 +504,7 @@ export declare const ActionMenu: import("react").ComponentType<Partial<{
|
|
|
495
504
|
<E_2 extends Element = Element>(selectors: string): NodeListOf<E_2>;
|
|
496
505
|
};
|
|
497
506
|
replaceChildren: (...nodes: (string | Node)[]) => void;
|
|
507
|
+
readonly assignedSlot: HTMLSlotElement | null;
|
|
498
508
|
oncopy: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
499
509
|
oncut: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
500
510
|
onpaste: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
@@ -592,22 +602,22 @@ export declare const ActionMenu: import("react").ComponentType<Partial<{
|
|
|
592
602
|
readonly dataset: DOMStringMap;
|
|
593
603
|
isLTR: boolean;
|
|
594
604
|
hasVisibleFocusInTree: () => boolean;
|
|
605
|
+
focused: boolean;
|
|
606
|
+
readonly focusElement: HTMLElement;
|
|
595
607
|
selects: "single" | undefined;
|
|
596
608
|
appliedLabel?: string | undefined;
|
|
597
609
|
icons?: "none" | "only" | undefined;
|
|
598
610
|
readonly: boolean;
|
|
611
|
+
selectedItem?: import("menu/src").MenuItem | undefined;
|
|
612
|
+
menuItems: import("menu/src").MenuItem[];
|
|
599
613
|
optionsMenu: import("menu/src").Menu;
|
|
600
|
-
quiet: boolean;
|
|
601
|
-
selectedItem: import("menu/src").MenuItem | undefined;
|
|
602
|
-
readonly menuItems: import("menu/src").MenuItem[];
|
|
603
|
-
_selectedItem?: import("menu/src").MenuItem | undefined;
|
|
604
614
|
forceFocusVisible: () => void;
|
|
605
615
|
onButtonBlur: () => void;
|
|
606
616
|
onHelperFocus: () => void;
|
|
607
617
|
onButtonFocus: () => void;
|
|
608
618
|
handleChange: (event: Event) => void;
|
|
609
619
|
setValueFromItem: (item: import("menu/src").MenuItem, menuChangeEvent?: Event | undefined) => Promise<void>;
|
|
610
|
-
|
|
620
|
+
overlayCloseCallback: () => Promise<void>;
|
|
611
621
|
applyFocusElementLabel: (value?: string | undefined) => void;
|
|
612
622
|
manageTextObservedSlot: () => void;
|
|
613
623
|
} & {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@swc-react/action-menu",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.35.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/action-menu": "^0.
|
|
33
|
+
"@spectrum-web-components/action-menu": "^0.35.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": "1ee5a6c92838cdf48321276d97f61c20f8476ac1"
|
|
44
44
|
}
|