@swc-react/overlay 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 +87 -66
- package/package.json +3 -3
package/next.d.ts
CHANGED
|
@@ -1,44 +1,48 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react" />
|
|
2
3
|
export declare const Overlay: import("react").ComponentType<Partial<{
|
|
3
4
|
dir?: string | undefined;
|
|
4
5
|
slot?: string | undefined;
|
|
5
6
|
style?: import("react").CSSProperties | undefined;
|
|
6
7
|
title?: string | undefined;
|
|
7
8
|
accessKey?: string | undefined;
|
|
8
|
-
color?: string | undefined;
|
|
9
|
-
lang?: string | undefined;
|
|
10
|
-
'aria-describedby'?: string | undefined;
|
|
11
|
-
id?: string | undefined;
|
|
12
|
-
tabIndex?: number | undefined;
|
|
13
|
-
'aria-disabled'?: (boolean | "true" | "false") | undefined;
|
|
14
|
-
className?: string | undefined;
|
|
15
9
|
draggable?: (boolean | "true" | "false") | undefined;
|
|
16
10
|
hidden?: boolean | undefined;
|
|
11
|
+
lang?: string | undefined;
|
|
17
12
|
translate?: "yes" | "no" | undefined;
|
|
13
|
+
className?: string | undefined;
|
|
14
|
+
id?: string | undefined;
|
|
18
15
|
prefix?: string | undefined;
|
|
19
16
|
children?: import("react").ReactNode;
|
|
20
17
|
contentEditable?: (boolean | "true" | "false") | "inherit" | undefined;
|
|
21
|
-
inputMode?: "text" | "
|
|
18
|
+
inputMode?: "text" | "search" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
22
19
|
nonce?: string | undefined;
|
|
20
|
+
tabIndex?: number | undefined;
|
|
21
|
+
'aria-describedby'?: string | undefined;
|
|
23
22
|
defaultChecked?: boolean | undefined;
|
|
24
23
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
25
24
|
suppressContentEditableWarning?: boolean | undefined;
|
|
26
25
|
suppressHydrationWarning?: boolean | undefined;
|
|
26
|
+
autoFocus?: boolean | undefined;
|
|
27
27
|
contextMenu?: string | undefined;
|
|
28
28
|
placeholder?: string | undefined;
|
|
29
29
|
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
30
30
|
radioGroup?: string | undefined;
|
|
31
31
|
role?: import("react").AriaRole | undefined;
|
|
32
32
|
about?: string | undefined;
|
|
33
|
+
content?: string | undefined;
|
|
33
34
|
datatype?: string | undefined;
|
|
34
35
|
inlist?: any;
|
|
35
36
|
property?: string | undefined;
|
|
37
|
+
rel?: string | undefined;
|
|
36
38
|
resource?: string | undefined;
|
|
39
|
+
rev?: string | undefined;
|
|
37
40
|
typeof?: string | undefined;
|
|
38
41
|
vocab?: string | undefined;
|
|
39
42
|
autoCapitalize?: string | undefined;
|
|
40
43
|
autoCorrect?: string | undefined;
|
|
41
44
|
autoSave?: string | undefined;
|
|
45
|
+
color?: string | undefined;
|
|
42
46
|
itemProp?: string | undefined;
|
|
43
47
|
itemScope?: boolean | undefined;
|
|
44
48
|
itemType?: string | undefined;
|
|
@@ -50,15 +54,20 @@ export declare const Overlay: import("react").ComponentType<Partial<{
|
|
|
50
54
|
is?: string | undefined;
|
|
51
55
|
'aria-activedescendant'?: string | undefined;
|
|
52
56
|
'aria-atomic'?: (boolean | "true" | "false") | undefined;
|
|
53
|
-
'aria-autocomplete'?: "
|
|
57
|
+
'aria-autocomplete'?: "inline" | "none" | "list" | "both" | undefined;
|
|
58
|
+
'aria-braillelabel'?: string | undefined;
|
|
59
|
+
'aria-brailleroledescription'?: string | undefined;
|
|
54
60
|
'aria-busy'?: (boolean | "true" | "false") | undefined;
|
|
55
61
|
'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
|
|
56
62
|
'aria-colcount'?: number | undefined;
|
|
57
63
|
'aria-colindex'?: number | undefined;
|
|
64
|
+
'aria-colindextext'?: string | undefined;
|
|
58
65
|
'aria-colspan'?: number | undefined;
|
|
59
66
|
'aria-controls'?: string | undefined;
|
|
60
67
|
'aria-current'?: boolean | "time" | "page" | "true" | "false" | "step" | "location" | "date" | undefined;
|
|
68
|
+
'aria-description'?: string | undefined;
|
|
61
69
|
'aria-details'?: string | undefined;
|
|
70
|
+
'aria-disabled'?: (boolean | "true" | "false") | undefined;
|
|
62
71
|
'aria-dropeffect'?: "link" | "copy" | "none" | "execute" | "move" | "popup" | undefined;
|
|
63
72
|
'aria-errormessage'?: string | undefined;
|
|
64
73
|
'aria-expanded'?: (boolean | "true" | "false") | undefined;
|
|
@@ -86,6 +95,7 @@ export declare const Overlay: import("react").ComponentType<Partial<{
|
|
|
86
95
|
'aria-roledescription'?: string | undefined;
|
|
87
96
|
'aria-rowcount'?: number | undefined;
|
|
88
97
|
'aria-rowindex'?: number | undefined;
|
|
98
|
+
'aria-rowindextext'?: string | undefined;
|
|
89
99
|
'aria-rowspan'?: number | undefined;
|
|
90
100
|
'aria-selected'?: (boolean | "true" | "false") | undefined;
|
|
91
101
|
'aria-setsize'?: number | undefined;
|
|
@@ -95,7 +105,7 @@ export declare const Overlay: 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("overlay/src").Overlay> | undefined;
|
|
101
111
|
onCopyCapture?: import("react").ClipboardEventHandler<import("overlay/src").Overlay> | undefined;
|
|
@@ -264,13 +274,19 @@ export declare const Overlay: import("react").ComponentType<Partial<{
|
|
|
264
274
|
readonly localName: string;
|
|
265
275
|
type: import("overlay/src").OverlayTypes;
|
|
266
276
|
animate: (keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions | undefined) => Animation;
|
|
267
|
-
blur: () => void;
|
|
268
277
|
click: () => void;
|
|
278
|
+
elements: import("overlay/src").OpenableElement[];
|
|
279
|
+
placement?: import("@floating-ui/utils").Placement | undefined;
|
|
280
|
+
blur: () => void;
|
|
269
281
|
focus: (options?: FocusOptions | undefined) => void;
|
|
270
282
|
scroll: {
|
|
271
283
|
(options?: ScrollToOptions | undefined): void;
|
|
272
284
|
(x: number, y: number): void;
|
|
273
285
|
};
|
|
286
|
+
open: boolean;
|
|
287
|
+
normalize: () => void;
|
|
288
|
+
delayed: boolean;
|
|
289
|
+
readonly renderOptions: import("lit-html").RenderOptions;
|
|
274
290
|
addEventListener: {
|
|
275
291
|
<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
276
292
|
(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
@@ -280,36 +296,17 @@ export declare const Overlay: import("react").ComponentType<Partial<{
|
|
|
280
296
|
<K_1 extends keyof HTMLElementEventMap>(type: K_1, listener: (this: HTMLElement, ev: HTMLElementEventMap[K_1]) => any, options?: boolean | EventListenerOptions | undefined): void;
|
|
281
297
|
(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions | undefined): void;
|
|
282
298
|
};
|
|
283
|
-
open: boolean;
|
|
284
|
-
readonly assignedSlot: HTMLSlotElement | null;
|
|
285
|
-
elements: import("overlay/src/OverlayBase").OpenableElement[];
|
|
286
|
-
placement?: import("@floating-ui/core").Placement | undefined;
|
|
287
|
-
readonly shadowRoot: ShadowRoot;
|
|
288
|
-
delayed: boolean;
|
|
289
299
|
dialogEl: HTMLDialogElement & {
|
|
290
300
|
showPopover(): void;
|
|
291
301
|
hidePopover(): void;
|
|
292
302
|
};
|
|
293
|
-
disabled: boolean;
|
|
294
|
-
offset: number | [number, number];
|
|
295
|
-
receivesFocus: "auto" | "true" | "false";
|
|
296
|
-
slotEl: HTMLSlotElement;
|
|
297
|
-
trigger?: string | undefined;
|
|
298
|
-
triggerElement: HTMLElement | import("overlay/src").VirtualTrigger | null;
|
|
299
|
-
triggerInteraction?: "click" | "longpress" | "hover" | undefined;
|
|
300
|
-
normalize: () => void;
|
|
301
|
-
readonly parentElement: HTMLElement | null;
|
|
302
|
-
readonly renderOptions: import("lit-html").RenderOptions;
|
|
303
|
-
autofocus: boolean;
|
|
304
|
-
ariaHidden: string | null;
|
|
305
|
-
readonly childNodes: NodeListOf<ChildNode>;
|
|
306
|
-
connectedCallback: (() => void) & (() => void);
|
|
307
|
-
disconnectedCallback: (() => void) & (() => void);
|
|
308
303
|
readonly renderRoot: HTMLElement | ShadowRoot;
|
|
309
304
|
isUpdatePending: boolean;
|
|
310
305
|
hasUpdated: boolean;
|
|
311
306
|
addController: (controller: import("lit").ReactiveController) => void;
|
|
312
307
|
removeController: (controller: import("lit").ReactiveController) => void;
|
|
308
|
+
connectedCallback: () => void;
|
|
309
|
+
disconnectedCallback: () => void;
|
|
313
310
|
attributeChangedCallback: (name: string, _old: string | null, value: string | null) => void;
|
|
314
311
|
requestUpdate: (name?: PropertyKey | undefined, oldValue?: unknown, options?: import("lit").PropertyDeclaration<unknown, unknown> | undefined) => void;
|
|
315
312
|
readonly updateComplete: Promise<boolean>;
|
|
@@ -340,6 +337,7 @@ export declare const Overlay: import("react").ComponentType<Partial<{
|
|
|
340
337
|
scrollLeft: number;
|
|
341
338
|
scrollTop: number;
|
|
342
339
|
readonly scrollWidth: number;
|
|
340
|
+
readonly shadowRoot: ShadowRoot;
|
|
343
341
|
readonly tagName: string;
|
|
344
342
|
attachShadow: (init: ShadowRootInit) => ShadowRoot;
|
|
345
343
|
closest: {
|
|
@@ -396,6 +394,7 @@ export declare const Overlay: import("react").ComponentType<Partial<{
|
|
|
396
394
|
toggleAttribute: (qualifiedName: string, force?: boolean | undefined) => boolean;
|
|
397
395
|
webkitMatchesSelector: (selectors: string) => boolean;
|
|
398
396
|
readonly baseURI: string;
|
|
397
|
+
readonly childNodes: NodeListOf<ChildNode>;
|
|
399
398
|
readonly firstChild: ChildNode | null;
|
|
400
399
|
readonly isConnected: boolean;
|
|
401
400
|
readonly lastChild: ChildNode | null;
|
|
@@ -403,6 +402,7 @@ export declare const Overlay: import("react").ComponentType<Partial<{
|
|
|
403
402
|
readonly nodeName: string;
|
|
404
403
|
readonly nodeType: number;
|
|
405
404
|
nodeValue: string | null;
|
|
405
|
+
readonly parentElement: HTMLElement | null;
|
|
406
406
|
readonly parentNode: ParentNode | null;
|
|
407
407
|
readonly previousSibling: ChildNode | null;
|
|
408
408
|
textContent: string | null;
|
|
@@ -449,6 +449,7 @@ export declare const Overlay: import("react").ComponentType<Partial<{
|
|
|
449
449
|
ariaDisabled: string | null;
|
|
450
450
|
ariaExpanded: string | null;
|
|
451
451
|
ariaHasPopup: string | null;
|
|
452
|
+
ariaHidden: string | null;
|
|
452
453
|
ariaKeyShortcuts: string | null;
|
|
453
454
|
ariaLabel: string | null;
|
|
454
455
|
ariaLevel: string | null;
|
|
@@ -497,6 +498,7 @@ export declare const Overlay: import("react").ComponentType<Partial<{
|
|
|
497
498
|
<E_2 extends Element = Element>(selectors: string): NodeListOf<E_2>;
|
|
498
499
|
};
|
|
499
500
|
replaceChildren: (...nodes: (string | Node)[]) => void;
|
|
501
|
+
readonly assignedSlot: HTMLSlotElement | null;
|
|
500
502
|
oncopy: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
501
503
|
oncut: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
502
504
|
onpaste: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
@@ -591,15 +593,26 @@ export declare const Overlay: import("react").ComponentType<Partial<{
|
|
|
591
593
|
onwebkitanimationstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
592
594
|
onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
593
595
|
onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
|
|
596
|
+
autofocus: boolean;
|
|
594
597
|
readonly dataset: DOMStringMap;
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
598
|
+
disabled: boolean;
|
|
599
|
+
isVisible: boolean;
|
|
600
|
+
offset: number | [number, number];
|
|
601
|
+
receivesFocus: "auto" | "true" | "false";
|
|
602
|
+
slotEl: HTMLSlotElement;
|
|
603
|
+
tipPadding?: number | undefined;
|
|
604
|
+
trigger?: string | undefined;
|
|
605
|
+
triggerElement: HTMLElement | import("overlay/src").VirtualTrigger | null;
|
|
606
|
+
triggerInteraction?: "click" | "longpress" | "hover" | undefined;
|
|
607
|
+
abortController: AbortController;
|
|
608
|
+
parentOverlayToForceClose?: import("overlay/src").Overlay | undefined;
|
|
599
609
|
willPreventClose: boolean;
|
|
600
610
|
shouldPreventClose: () => boolean;
|
|
601
|
-
willUpdate: (
|
|
611
|
+
willUpdate: (changes: import("lit").PropertyValueMap<any> | Map<PropertyKey, unknown>) => void;
|
|
602
612
|
render: () => import("lit-html").TemplateResult<2 | 1>;
|
|
613
|
+
dispose: () => void;
|
|
614
|
+
isLTR: boolean;
|
|
615
|
+
hasVisibleFocusInTree: () => boolean;
|
|
603
616
|
} & {
|
|
604
617
|
spOpened: (e: Event) => void;
|
|
605
618
|
spClosed: (e: Event) => void;
|
|
@@ -610,40 +623,43 @@ export declare const OverlayTrigger: import("react").ComponentType<Partial<{
|
|
|
610
623
|
style?: import("react").CSSProperties | undefined;
|
|
611
624
|
title?: string | undefined;
|
|
612
625
|
accessKey?: string | undefined;
|
|
613
|
-
color?: string | undefined;
|
|
614
|
-
lang?: string | undefined;
|
|
615
|
-
'aria-describedby'?: string | undefined;
|
|
616
|
-
id?: string | undefined;
|
|
617
|
-
tabIndex?: number | undefined;
|
|
618
|
-
'aria-disabled'?: (boolean | "true" | "false") | undefined;
|
|
619
|
-
className?: string | undefined;
|
|
620
626
|
draggable?: (boolean | "true" | "false") | undefined;
|
|
621
627
|
hidden?: boolean | undefined;
|
|
628
|
+
lang?: string | undefined;
|
|
622
629
|
translate?: "yes" | "no" | undefined;
|
|
630
|
+
className?: string | undefined;
|
|
631
|
+
id?: string | undefined;
|
|
623
632
|
prefix?: string | undefined;
|
|
624
633
|
children?: import("react").ReactNode;
|
|
625
634
|
contentEditable?: (boolean | "true" | "false") | "inherit" | undefined;
|
|
626
|
-
inputMode?: "text" | "
|
|
635
|
+
inputMode?: "text" | "search" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
627
636
|
nonce?: string | undefined;
|
|
637
|
+
tabIndex?: number | undefined;
|
|
638
|
+
'aria-describedby'?: string | undefined;
|
|
628
639
|
defaultChecked?: boolean | undefined;
|
|
629
640
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
630
641
|
suppressContentEditableWarning?: boolean | undefined;
|
|
631
642
|
suppressHydrationWarning?: boolean | undefined;
|
|
643
|
+
autoFocus?: boolean | undefined;
|
|
632
644
|
contextMenu?: string | undefined;
|
|
633
645
|
placeholder?: string | undefined;
|
|
634
646
|
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
635
647
|
radioGroup?: string | undefined;
|
|
636
648
|
role?: import("react").AriaRole | undefined;
|
|
637
649
|
about?: string | undefined;
|
|
650
|
+
content?: string | undefined;
|
|
638
651
|
datatype?: string | undefined;
|
|
639
652
|
inlist?: any;
|
|
640
653
|
property?: string | undefined;
|
|
654
|
+
rel?: string | undefined;
|
|
641
655
|
resource?: string | undefined;
|
|
656
|
+
rev?: string | undefined;
|
|
642
657
|
typeof?: string | undefined;
|
|
643
658
|
vocab?: string | undefined;
|
|
644
659
|
autoCapitalize?: string | undefined;
|
|
645
660
|
autoCorrect?: string | undefined;
|
|
646
661
|
autoSave?: string | undefined;
|
|
662
|
+
color?: string | undefined;
|
|
647
663
|
itemProp?: string | undefined;
|
|
648
664
|
itemScope?: boolean | undefined;
|
|
649
665
|
itemType?: string | undefined;
|
|
@@ -655,15 +671,20 @@ export declare const OverlayTrigger: import("react").ComponentType<Partial<{
|
|
|
655
671
|
is?: string | undefined;
|
|
656
672
|
'aria-activedescendant'?: string | undefined;
|
|
657
673
|
'aria-atomic'?: (boolean | "true" | "false") | undefined;
|
|
658
|
-
'aria-autocomplete'?: "
|
|
674
|
+
'aria-autocomplete'?: "inline" | "none" | "list" | "both" | undefined;
|
|
675
|
+
'aria-braillelabel'?: string | undefined;
|
|
676
|
+
'aria-brailleroledescription'?: string | undefined;
|
|
659
677
|
'aria-busy'?: (boolean | "true" | "false") | undefined;
|
|
660
678
|
'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
|
|
661
679
|
'aria-colcount'?: number | undefined;
|
|
662
680
|
'aria-colindex'?: number | undefined;
|
|
681
|
+
'aria-colindextext'?: string | undefined;
|
|
663
682
|
'aria-colspan'?: number | undefined;
|
|
664
683
|
'aria-controls'?: string | undefined;
|
|
665
684
|
'aria-current'?: boolean | "time" | "page" | "true" | "false" | "step" | "location" | "date" | undefined;
|
|
685
|
+
'aria-description'?: string | undefined;
|
|
666
686
|
'aria-details'?: string | undefined;
|
|
687
|
+
'aria-disabled'?: (boolean | "true" | "false") | undefined;
|
|
667
688
|
'aria-dropeffect'?: "link" | "copy" | "none" | "execute" | "move" | "popup" | undefined;
|
|
668
689
|
'aria-errormessage'?: string | undefined;
|
|
669
690
|
'aria-expanded'?: (boolean | "true" | "false") | undefined;
|
|
@@ -691,6 +712,7 @@ export declare const OverlayTrigger: import("react").ComponentType<Partial<{
|
|
|
691
712
|
'aria-roledescription'?: string | undefined;
|
|
692
713
|
'aria-rowcount'?: number | undefined;
|
|
693
714
|
'aria-rowindex'?: number | undefined;
|
|
715
|
+
'aria-rowindextext'?: string | undefined;
|
|
694
716
|
'aria-rowspan'?: number | undefined;
|
|
695
717
|
'aria-selected'?: (boolean | "true" | "false") | undefined;
|
|
696
718
|
'aria-setsize'?: number | undefined;
|
|
@@ -700,7 +722,7 @@ export declare const OverlayTrigger: import("react").ComponentType<Partial<{
|
|
|
700
722
|
'aria-valuenow'?: number | undefined;
|
|
701
723
|
'aria-valuetext'?: string | undefined;
|
|
702
724
|
dangerouslySetInnerHTML?: {
|
|
703
|
-
__html: string;
|
|
725
|
+
__html: string | TrustedHTML;
|
|
704
726
|
} | undefined;
|
|
705
727
|
onCopy?: import("react").ClipboardEventHandler<import("overlay/src").OverlayTrigger> | undefined;
|
|
706
728
|
onCopyCapture?: import("react").ClipboardEventHandler<import("overlay/src").OverlayTrigger> | undefined;
|
|
@@ -869,13 +891,17 @@ export declare const OverlayTrigger: import("react").ComponentType<Partial<{
|
|
|
869
891
|
readonly localName: string;
|
|
870
892
|
type?: "modal" | undefined;
|
|
871
893
|
animate: (keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions | undefined) => Animation;
|
|
872
|
-
blur: () => void;
|
|
873
894
|
click: () => void;
|
|
895
|
+
placement?: import("@floating-ui/utils").Placement | undefined;
|
|
896
|
+
blur: () => void;
|
|
874
897
|
focus: (options?: FocusOptions | undefined) => void;
|
|
875
898
|
scroll: {
|
|
876
899
|
(options?: ScrollToOptions | undefined): void;
|
|
877
900
|
(x: number, y: number): void;
|
|
878
901
|
};
|
|
902
|
+
open?: import("overlay/src").OverlayContentTypes | undefined;
|
|
903
|
+
normalize: () => void;
|
|
904
|
+
readonly renderOptions: import("lit-html").RenderOptions;
|
|
879
905
|
addEventListener: {
|
|
880
906
|
<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
881
907
|
(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
@@ -885,29 +911,13 @@ export declare const OverlayTrigger: import("react").ComponentType<Partial<{
|
|
|
885
911
|
<K_1 extends keyof HTMLElementEventMap>(type: K_1, listener: (this: HTMLElement, ev: HTMLElementEventMap[K_1]) => any, options?: boolean | EventListenerOptions | undefined): void;
|
|
886
912
|
(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions | undefined): void;
|
|
887
913
|
};
|
|
888
|
-
open?: import("overlay/src").OverlayContentTypes | undefined;
|
|
889
|
-
readonly assignedSlot: HTMLSlotElement | null;
|
|
890
|
-
placement?: import("@floating-ui/core").Placement | undefined;
|
|
891
|
-
shadowRoot: ShadowRoot;
|
|
892
|
-
disabled: boolean;
|
|
893
|
-
offset: number;
|
|
894
|
-
normalize: () => void;
|
|
895
|
-
readonly parentElement: HTMLElement | null;
|
|
896
|
-
readonly renderOptions: import("lit-html").RenderOptions;
|
|
897
|
-
autofocus: boolean;
|
|
898
|
-
ariaHidden: string | null;
|
|
899
|
-
readonly childNodes: NodeListOf<ChildNode>;
|
|
900
|
-
hasLongpressContent: boolean;
|
|
901
|
-
clickOverlayElement: import("overlay/src/OverlayBase").OverlayBase;
|
|
902
|
-
longpressOverlayElement: import("overlay/src/OverlayBase").OverlayBase;
|
|
903
|
-
hoverOverlayElement: import("overlay/src/OverlayBase").OverlayBase;
|
|
904
|
-
connectedCallback: () => void;
|
|
905
|
-
disconnectedCallback: () => void;
|
|
906
914
|
readonly renderRoot: HTMLElement | ShadowRoot;
|
|
907
915
|
isUpdatePending: boolean;
|
|
908
916
|
hasUpdated: boolean;
|
|
909
917
|
addController: (controller: import("lit").ReactiveController) => void;
|
|
910
918
|
removeController: (controller: import("lit").ReactiveController) => void;
|
|
919
|
+
connectedCallback: () => void;
|
|
920
|
+
disconnectedCallback: () => void;
|
|
911
921
|
attributeChangedCallback: (name: string, _old: string | null, value: string | null) => void;
|
|
912
922
|
requestUpdate: (name?: PropertyKey | undefined, oldValue?: unknown, options?: import("lit").PropertyDeclaration<unknown, unknown> | undefined) => void;
|
|
913
923
|
readonly updateComplete: Promise<boolean>;
|
|
@@ -938,6 +948,7 @@ export declare const OverlayTrigger: import("react").ComponentType<Partial<{
|
|
|
938
948
|
scrollLeft: number;
|
|
939
949
|
scrollTop: number;
|
|
940
950
|
readonly scrollWidth: number;
|
|
951
|
+
shadowRoot: ShadowRoot;
|
|
941
952
|
readonly tagName: string;
|
|
942
953
|
attachShadow: (init: ShadowRootInit) => ShadowRoot;
|
|
943
954
|
closest: {
|
|
@@ -994,6 +1005,7 @@ export declare const OverlayTrigger: import("react").ComponentType<Partial<{
|
|
|
994
1005
|
toggleAttribute: (qualifiedName: string, force?: boolean | undefined) => boolean;
|
|
995
1006
|
webkitMatchesSelector: (selectors: string) => boolean;
|
|
996
1007
|
readonly baseURI: string;
|
|
1008
|
+
readonly childNodes: NodeListOf<ChildNode>;
|
|
997
1009
|
readonly firstChild: ChildNode | null;
|
|
998
1010
|
readonly isConnected: boolean;
|
|
999
1011
|
readonly lastChild: ChildNode | null;
|
|
@@ -1001,6 +1013,7 @@ export declare const OverlayTrigger: import("react").ComponentType<Partial<{
|
|
|
1001
1013
|
readonly nodeName: string;
|
|
1002
1014
|
readonly nodeType: number;
|
|
1003
1015
|
nodeValue: string | null;
|
|
1016
|
+
readonly parentElement: HTMLElement | null;
|
|
1004
1017
|
readonly parentNode: ParentNode | null;
|
|
1005
1018
|
readonly previousSibling: ChildNode | null;
|
|
1006
1019
|
textContent: string | null;
|
|
@@ -1047,6 +1060,7 @@ export declare const OverlayTrigger: import("react").ComponentType<Partial<{
|
|
|
1047
1060
|
ariaDisabled: string | null;
|
|
1048
1061
|
ariaExpanded: string | null;
|
|
1049
1062
|
ariaHasPopup: string | null;
|
|
1063
|
+
ariaHidden: string | null;
|
|
1050
1064
|
ariaKeyShortcuts: string | null;
|
|
1051
1065
|
ariaLabel: string | null;
|
|
1052
1066
|
ariaLevel: string | null;
|
|
@@ -1095,6 +1109,7 @@ export declare const OverlayTrigger: import("react").ComponentType<Partial<{
|
|
|
1095
1109
|
<E_2 extends Element = Element>(selectors: string): NodeListOf<E_2>;
|
|
1096
1110
|
};
|
|
1097
1111
|
replaceChildren: (...nodes: (string | Node)[]) => void;
|
|
1112
|
+
readonly assignedSlot: HTMLSlotElement | null;
|
|
1098
1113
|
oncopy: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
1099
1114
|
oncut: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
1100
1115
|
onpaste: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
@@ -1189,7 +1204,13 @@ export declare const OverlayTrigger: import("react").ComponentType<Partial<{
|
|
|
1189
1204
|
onwebkitanimationstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
1190
1205
|
onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
1191
1206
|
onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
|
|
1207
|
+
autofocus: boolean;
|
|
1192
1208
|
readonly dataset: DOMStringMap;
|
|
1209
|
+
disabled: boolean;
|
|
1210
|
+
offset: number;
|
|
1211
|
+
clickOverlayElement: import("overlay/src").Overlay;
|
|
1212
|
+
longpressOverlayElement: import("overlay/src").Overlay;
|
|
1213
|
+
hoverOverlayElement: import("overlay/src").Overlay;
|
|
1193
1214
|
isLTR: boolean;
|
|
1194
1215
|
hasVisibleFocusInTree: () => boolean;
|
|
1195
1216
|
} & {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@swc-react/overlay",
|
|
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/overlay": "^0.
|
|
33
|
+
"@spectrum-web-components/overlay": "^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
|
}
|