@swc-react/action-menu 0.33.1-overlay.41 → 0.33.2
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 +33 -33
- package/package.json +6 -6
package/next.d.ts
CHANGED
|
@@ -7,15 +7,16 @@ export declare const ActionMenu: import("react").ComponentType<Partial<{
|
|
|
7
7
|
tabIndex?: number | undefined;
|
|
8
8
|
'aria-disabled'?: (boolean | "true" | "false") | undefined;
|
|
9
9
|
hidden?: boolean | undefined;
|
|
10
|
-
accessKey?: string | undefined;
|
|
11
|
-
color?: string | undefined;
|
|
12
|
-
lang?: string | undefined;
|
|
13
|
-
'aria-describedby'?: string | undefined;
|
|
14
10
|
id?: string | undefined;
|
|
15
11
|
className?: string | undefined;
|
|
12
|
+
color?: string | undefined;
|
|
13
|
+
lang?: string | undefined;
|
|
14
|
+
'aria-modal'?: (boolean | "true" | "false") | undefined;
|
|
15
|
+
accessKey?: string | undefined;
|
|
16
|
+
'aria-hidden'?: (boolean | "true" | "false") | undefined;
|
|
16
17
|
role?: import("react").AriaRole | undefined;
|
|
17
|
-
'aria-
|
|
18
|
-
'aria-
|
|
18
|
+
'aria-label'?: string | undefined;
|
|
19
|
+
'aria-pressed'?: boolean | "true" | "false" | "mixed" | undefined;
|
|
19
20
|
draggable?: (boolean | "true" | "false") | undefined;
|
|
20
21
|
translate?: "yes" | "no" | undefined;
|
|
21
22
|
prefix?: string | undefined;
|
|
@@ -23,11 +24,12 @@ export declare const ActionMenu: import("react").ComponentType<Partial<{
|
|
|
23
24
|
contentEditable?: "inherit" | (boolean | "true" | "false") | undefined;
|
|
24
25
|
inputMode?: "text" | "search" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
25
26
|
nonce?: string | undefined;
|
|
26
|
-
'aria-
|
|
27
|
+
'aria-describedby'?: string | undefined;
|
|
28
|
+
'aria-selected'?: (boolean | "true" | "false") | undefined;
|
|
29
|
+
'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
|
|
27
30
|
'aria-activedescendant'?: string | undefined;
|
|
28
31
|
'aria-labelledby'?: string | undefined;
|
|
29
32
|
placeholder?: string | undefined;
|
|
30
|
-
'aria-pressed'?: boolean | "true" | "false" | "mixed" | undefined;
|
|
31
33
|
defaultChecked?: boolean | undefined;
|
|
32
34
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
33
35
|
suppressContentEditableWarning?: boolean | undefined;
|
|
@@ -69,12 +71,10 @@ export declare const ActionMenu: import("react").ComponentType<Partial<{
|
|
|
69
71
|
'aria-flowto'?: string | undefined;
|
|
70
72
|
'aria-grabbed'?: (boolean | "true" | "false") | undefined;
|
|
71
73
|
'aria-haspopup'?: boolean | "dialog" | "menu" | "true" | "false" | "listbox" | "grid" | "tree" | undefined;
|
|
72
|
-
'aria-hidden'?: (boolean | "true" | "false") | undefined;
|
|
73
74
|
'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
|
|
74
75
|
'aria-keyshortcuts'?: string | undefined;
|
|
75
76
|
'aria-level'?: number | undefined;
|
|
76
77
|
'aria-live'?: "off" | "assertive" | "polite" | undefined;
|
|
77
|
-
'aria-modal'?: (boolean | "true" | "false") | undefined;
|
|
78
78
|
'aria-multiline'?: (boolean | "true" | "false") | undefined;
|
|
79
79
|
'aria-multiselectable'?: (boolean | "true" | "false") | undefined;
|
|
80
80
|
'aria-orientation'?: "horizontal" | "vertical" | undefined;
|
|
@@ -279,30 +279,20 @@ export declare const ActionMenu: import("react").ComponentType<Partial<{
|
|
|
279
279
|
disabled: boolean;
|
|
280
280
|
autofocus: boolean;
|
|
281
281
|
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
282
|
readonly target: HTMLButtonElement | import("action-menu/src").ActionMenu;
|
|
292
|
-
|
|
293
|
-
readonly assignedSlot: HTMLSlotElement | null;
|
|
294
|
-
placement: import("@floating-ui/core").Placement;
|
|
283
|
+
ariaHidden: string | null;
|
|
295
284
|
shadowRoot: ShadowRoot;
|
|
296
|
-
|
|
285
|
+
open: boolean;
|
|
297
286
|
readonly renderOptions: import("lit-html").RenderOptions;
|
|
298
|
-
|
|
287
|
+
placement: import("overlay/src").Placement;
|
|
288
|
+
overlayOpenCallback: () => Promise<void>;
|
|
289
|
+
remove: () => void;
|
|
299
290
|
slotHasContent: boolean;
|
|
300
291
|
readonly childNodes: NodeListOf<ChildNode>;
|
|
301
|
-
|
|
292
|
+
quiet: boolean;
|
|
302
293
|
value: string;
|
|
303
|
-
readonly focusElement: HTMLElement;
|
|
304
|
-
connectedCallback: () => void;
|
|
305
294
|
disconnectedCallback: () => void;
|
|
295
|
+
connectedCallback: () => void;
|
|
306
296
|
readonly renderRoot: HTMLElement | ShadowRoot;
|
|
307
297
|
isUpdatePending: boolean;
|
|
308
298
|
hasUpdated: boolean;
|
|
@@ -323,6 +313,14 @@ export declare const ActionMenu: import("react").ComponentType<Partial<{
|
|
|
323
313
|
outerText: string;
|
|
324
314
|
spellcheck: boolean;
|
|
325
315
|
attachInternals: () => ElementInternals;
|
|
316
|
+
addEventListener: {
|
|
317
|
+
<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
318
|
+
(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
319
|
+
};
|
|
320
|
+
removeEventListener: {
|
|
321
|
+
<K_1 extends keyof HTMLElementEventMap>(type: K_1, listener: (this: HTMLElement, ev: HTMLElementEventMap[K_1]) => any, options?: boolean | EventListenerOptions | undefined): void;
|
|
322
|
+
(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions | undefined): void;
|
|
323
|
+
};
|
|
326
324
|
readonly classList: DOMTokenList;
|
|
327
325
|
readonly clientHeight: number;
|
|
328
326
|
readonly clientLeft: number;
|
|
@@ -401,6 +399,7 @@ export declare const ActionMenu: import("react").ComponentType<Partial<{
|
|
|
401
399
|
readonly nodeName: string;
|
|
402
400
|
readonly nodeType: number;
|
|
403
401
|
nodeValue: string | null;
|
|
402
|
+
readonly parentElement: HTMLElement | null;
|
|
404
403
|
readonly parentNode: ParentNode | null;
|
|
405
404
|
readonly previousSibling: ChildNode | null;
|
|
406
405
|
textContent: string | null;
|
|
@@ -436,6 +435,7 @@ export declare const ActionMenu: import("react").ComponentType<Partial<{
|
|
|
436
435
|
readonly NOTATION_NODE: number;
|
|
437
436
|
readonly PROCESSING_INSTRUCTION_NODE: number;
|
|
438
437
|
readonly TEXT_NODE: number;
|
|
438
|
+
dispatchEvent: (event: Event) => boolean;
|
|
439
439
|
ariaAtomic: string | null;
|
|
440
440
|
ariaAutoComplete: string | null;
|
|
441
441
|
ariaBusy: string | null;
|
|
@@ -474,7 +474,6 @@ export declare const ActionMenu: import("react").ComponentType<Partial<{
|
|
|
474
474
|
getAnimations: (options?: GetAnimationsOptions | undefined) => Animation[];
|
|
475
475
|
after: (...nodes: (string | Node)[]) => void;
|
|
476
476
|
before: (...nodes: (string | Node)[]) => void;
|
|
477
|
-
remove: () => void;
|
|
478
477
|
replaceWith: (...nodes: (string | Node)[]) => void;
|
|
479
478
|
innerHTML: string;
|
|
480
479
|
readonly nextElementSibling: Element | null;
|
|
@@ -495,6 +494,7 @@ export declare const ActionMenu: import("react").ComponentType<Partial<{
|
|
|
495
494
|
<E_2 extends Element = Element>(selectors: string): NodeListOf<E_2>;
|
|
496
495
|
};
|
|
497
496
|
replaceChildren: (...nodes: (string | Node)[]) => void;
|
|
497
|
+
readonly assignedSlot: HTMLSlotElement | null;
|
|
498
498
|
oncopy: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
499
499
|
oncut: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
500
500
|
onpaste: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
@@ -592,21 +592,21 @@ export declare const ActionMenu: import("react").ComponentType<Partial<{
|
|
|
592
592
|
readonly dataset: DOMStringMap;
|
|
593
593
|
isLTR: boolean;
|
|
594
594
|
hasVisibleFocusInTree: () => boolean;
|
|
595
|
+
focused: boolean;
|
|
596
|
+
readonly focusElement: HTMLElement;
|
|
595
597
|
selects: "single" | undefined;
|
|
596
598
|
icons?: "none" | "only" | undefined;
|
|
597
599
|
readonly: boolean;
|
|
600
|
+
selectedItem?: import("menu/src").MenuItem | undefined;
|
|
601
|
+
menuItems: import("menu/src").MenuItem[];
|
|
598
602
|
optionsMenu: import("menu/src").Menu;
|
|
599
|
-
quiet: boolean;
|
|
600
|
-
selectedItem: import("menu/src").MenuItem | undefined;
|
|
601
|
-
readonly menuItems: import("menu/src").MenuItem[];
|
|
602
|
-
_selectedItem?: import("menu/src").MenuItem | undefined;
|
|
603
603
|
forceFocusVisible: () => void;
|
|
604
604
|
onButtonBlur: () => void;
|
|
605
605
|
onHelperFocus: () => void;
|
|
606
606
|
onButtonFocus: () => void;
|
|
607
607
|
handleChange: (event: Event) => void;
|
|
608
608
|
setValueFromItem: (item: import("menu/src").MenuItem, menuChangeEvent?: Event | undefined) => Promise<void>;
|
|
609
|
-
|
|
609
|
+
overlayCloseCallback: () => Promise<void>;
|
|
610
610
|
manageTextObservedSlot: () => void;
|
|
611
611
|
} & {
|
|
612
612
|
change: (e: Event) => void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@swc-react/action-menu",
|
|
3
|
-
"version": "0.33.
|
|
3
|
+
"version": "0.33.2",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -28,10 +28,6 @@
|
|
|
28
28
|
"Spectrum Web Components",
|
|
29
29
|
"@spectrum-web-components/action-menu"
|
|
30
30
|
],
|
|
31
|
-
"dependencies": {
|
|
32
|
-
"@lit-labs/react": "^1.1.1",
|
|
33
|
-
"@spectrum-web-components/action-menu": "^0.33.1-overlay.41+c5a2c1756"
|
|
34
|
-
},
|
|
35
31
|
"peerDependencies": {
|
|
36
32
|
"next": "~13.4"
|
|
37
33
|
},
|
|
@@ -40,5 +36,9 @@
|
|
|
40
36
|
"optional": true
|
|
41
37
|
}
|
|
42
38
|
},
|
|
43
|
-
"
|
|
39
|
+
"dependencies": {
|
|
40
|
+
"@lit-labs/react": "^1.1.1",
|
|
41
|
+
"@spectrum-web-components/action-menu": "^0.33.2"
|
|
42
|
+
},
|
|
43
|
+
"gitHead": "6d5d6b3c31d92a058202a242a283125d25131f81"
|
|
44
44
|
}
|