@swc-react/overlay 0.37.0 → 0.39.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 +25 -25
- package/package.json +3 -3
package/next.d.ts
CHANGED
|
@@ -6,20 +6,22 @@ export declare const Overlay: import("react").ComponentType<Partial<{
|
|
|
6
6
|
style?: import("react").CSSProperties | undefined;
|
|
7
7
|
title?: string | undefined;
|
|
8
8
|
accessKey?: string | undefined;
|
|
9
|
+
content?: string | undefined;
|
|
10
|
+
tabIndex?: number | undefined;
|
|
11
|
+
'aria-disabled'?: (boolean | "true" | "false") | undefined;
|
|
12
|
+
rel?: string | undefined;
|
|
13
|
+
id?: string | undefined;
|
|
14
|
+
className?: string | undefined;
|
|
9
15
|
draggable?: (boolean | "true" | "false") | undefined;
|
|
10
16
|
hidden?: boolean | undefined;
|
|
11
17
|
lang?: string | undefined;
|
|
12
18
|
translate?: "yes" | "no" | undefined;
|
|
13
|
-
className?: string | undefined;
|
|
14
|
-
id?: string | undefined;
|
|
15
19
|
prefix?: string | undefined;
|
|
16
20
|
children?: import("react").ReactNode;
|
|
17
21
|
contentEditable?: (boolean | "true" | "false") | "inherit" | undefined;
|
|
18
22
|
inputMode?: "text" | "none" | "search" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
19
23
|
nonce?: string | undefined;
|
|
20
|
-
tabIndex?: number | undefined;
|
|
21
24
|
'aria-describedby'?: string | undefined;
|
|
22
|
-
content?: string | undefined;
|
|
23
25
|
defaultChecked?: boolean | undefined;
|
|
24
26
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
25
27
|
suppressContentEditableWarning?: boolean | undefined;
|
|
@@ -34,7 +36,6 @@ export declare const Overlay: import("react").ComponentType<Partial<{
|
|
|
34
36
|
datatype?: string | undefined;
|
|
35
37
|
inlist?: any;
|
|
36
38
|
property?: string | undefined;
|
|
37
|
-
rel?: string | undefined;
|
|
38
39
|
resource?: string | undefined;
|
|
39
40
|
rev?: string | undefined;
|
|
40
41
|
typeof?: string | undefined;
|
|
@@ -54,7 +55,7 @@ export declare const Overlay: import("react").ComponentType<Partial<{
|
|
|
54
55
|
is?: string | undefined;
|
|
55
56
|
'aria-activedescendant'?: string | undefined;
|
|
56
57
|
'aria-atomic'?: (boolean | "true" | "false") | undefined;
|
|
57
|
-
'aria-autocomplete'?: "
|
|
58
|
+
'aria-autocomplete'?: "none" | "inline" | "list" | "both" | undefined;
|
|
58
59
|
'aria-braillelabel'?: string | undefined;
|
|
59
60
|
'aria-brailleroledescription'?: string | undefined;
|
|
60
61
|
'aria-busy'?: (boolean | "true" | "false") | undefined;
|
|
@@ -67,7 +68,6 @@ export declare const Overlay: import("react").ComponentType<Partial<{
|
|
|
67
68
|
'aria-current'?: boolean | "time" | "page" | "true" | "false" | "step" | "location" | "date" | undefined;
|
|
68
69
|
'aria-description'?: string | undefined;
|
|
69
70
|
'aria-details'?: string | undefined;
|
|
70
|
-
'aria-disabled'?: (boolean | "true" | "false") | undefined;
|
|
71
71
|
'aria-dropeffect'?: "link" | "copy" | "none" | "execute" | "move" | "popup" | undefined;
|
|
72
72
|
'aria-errormessage'?: string | undefined;
|
|
73
73
|
'aria-expanded'?: (boolean | "true" | "false") | undefined;
|
|
@@ -274,10 +274,10 @@ export declare const Overlay: import("react").ComponentType<Partial<{
|
|
|
274
274
|
readonly localName: string;
|
|
275
275
|
type: import("overlay/src").OverlayTypes;
|
|
276
276
|
animate: (keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions | undefined) => Animation;
|
|
277
|
-
click: () => void;
|
|
278
277
|
elements: import("overlay/src").OpenableElement[];
|
|
279
278
|
placement?: import("@floating-ui/utils").Placement | undefined;
|
|
280
279
|
blur: () => void;
|
|
280
|
+
click: () => void;
|
|
281
281
|
focus: (options?: FocusOptions | undefined) => void;
|
|
282
282
|
scroll: {
|
|
283
283
|
(options?: ScrollToOptions | undefined): void;
|
|
@@ -287,6 +287,10 @@ export declare const Overlay: import("react").ComponentType<Partial<{
|
|
|
287
287
|
normalize: () => void;
|
|
288
288
|
delayed: boolean;
|
|
289
289
|
readonly renderOptions: import("lit-html").RenderOptions;
|
|
290
|
+
disabled: boolean;
|
|
291
|
+
autofocus: boolean;
|
|
292
|
+
ariaHidden: string | null;
|
|
293
|
+
readonly childNodes: NodeListOf<ChildNode>;
|
|
290
294
|
addEventListener: {
|
|
291
295
|
<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
292
296
|
(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
@@ -394,7 +398,6 @@ export declare const Overlay: import("react").ComponentType<Partial<{
|
|
|
394
398
|
toggleAttribute: (qualifiedName: string, force?: boolean | undefined) => boolean;
|
|
395
399
|
webkitMatchesSelector: (selectors: string) => boolean;
|
|
396
400
|
readonly baseURI: string;
|
|
397
|
-
readonly childNodes: NodeListOf<ChildNode>;
|
|
398
401
|
readonly firstChild: ChildNode | null;
|
|
399
402
|
readonly isConnected: boolean;
|
|
400
403
|
readonly lastChild: ChildNode | null;
|
|
@@ -449,7 +452,6 @@ export declare const Overlay: import("react").ComponentType<Partial<{
|
|
|
449
452
|
ariaDisabled: string | null;
|
|
450
453
|
ariaExpanded: string | null;
|
|
451
454
|
ariaHasPopup: string | null;
|
|
452
|
-
ariaHidden: string | null;
|
|
453
455
|
ariaKeyShortcuts: string | null;
|
|
454
456
|
ariaLabel: string | null;
|
|
455
457
|
ariaLevel: string | null;
|
|
@@ -593,9 +595,7 @@ export declare const Overlay: import("react").ComponentType<Partial<{
|
|
|
593
595
|
onwebkitanimationstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
594
596
|
onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
595
597
|
onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
|
|
596
|
-
autofocus: boolean;
|
|
597
598
|
readonly dataset: DOMStringMap;
|
|
598
|
-
disabled: boolean;
|
|
599
599
|
offset: number | [number, number];
|
|
600
600
|
receivesFocus: "auto" | "true" | "false";
|
|
601
601
|
slotEl: HTMLSlotElement;
|
|
@@ -608,11 +608,11 @@ export declare const Overlay: import("react").ComponentType<Partial<{
|
|
|
608
608
|
parentOverlayToForceClose?: import("overlay/src").Overlay | undefined;
|
|
609
609
|
_state: import("overlay/src").OverlayState;
|
|
610
610
|
manuallyKeepOpen: () => void;
|
|
611
|
-
willPreventClose: boolean;
|
|
612
611
|
shouldPreventClose: () => boolean;
|
|
613
612
|
willUpdate: (changes: import("lit").PropertyValueMap<any> | Map<PropertyKey, unknown>) => void;
|
|
614
613
|
render: () => import("lit-html").TemplateResult<2 | 1>;
|
|
615
614
|
dispose: () => void;
|
|
615
|
+
willPreventClose: boolean;
|
|
616
616
|
isLTR: boolean;
|
|
617
617
|
hasVisibleFocusInTree: () => boolean;
|
|
618
618
|
} & {
|
|
@@ -625,20 +625,22 @@ export declare const OverlayTrigger: import("react").ComponentType<Partial<{
|
|
|
625
625
|
style?: import("react").CSSProperties | undefined;
|
|
626
626
|
title?: string | undefined;
|
|
627
627
|
accessKey?: string | undefined;
|
|
628
|
+
content?: string | undefined;
|
|
629
|
+
tabIndex?: number | undefined;
|
|
630
|
+
'aria-disabled'?: (boolean | "true" | "false") | undefined;
|
|
631
|
+
rel?: string | undefined;
|
|
632
|
+
id?: string | undefined;
|
|
633
|
+
className?: string | undefined;
|
|
628
634
|
draggable?: (boolean | "true" | "false") | undefined;
|
|
629
635
|
hidden?: boolean | undefined;
|
|
630
636
|
lang?: string | undefined;
|
|
631
637
|
translate?: "yes" | "no" | undefined;
|
|
632
|
-
className?: string | undefined;
|
|
633
|
-
id?: string | undefined;
|
|
634
638
|
prefix?: string | undefined;
|
|
635
639
|
children?: import("react").ReactNode;
|
|
636
640
|
contentEditable?: (boolean | "true" | "false") | "inherit" | undefined;
|
|
637
641
|
inputMode?: "text" | "none" | "search" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
638
642
|
nonce?: string | undefined;
|
|
639
|
-
tabIndex?: number | undefined;
|
|
640
643
|
'aria-describedby'?: string | undefined;
|
|
641
|
-
content?: string | undefined;
|
|
642
644
|
defaultChecked?: boolean | undefined;
|
|
643
645
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
644
646
|
suppressContentEditableWarning?: boolean | undefined;
|
|
@@ -653,7 +655,6 @@ export declare const OverlayTrigger: import("react").ComponentType<Partial<{
|
|
|
653
655
|
datatype?: string | undefined;
|
|
654
656
|
inlist?: any;
|
|
655
657
|
property?: string | undefined;
|
|
656
|
-
rel?: string | undefined;
|
|
657
658
|
resource?: string | undefined;
|
|
658
659
|
rev?: string | undefined;
|
|
659
660
|
typeof?: string | undefined;
|
|
@@ -673,7 +674,7 @@ export declare const OverlayTrigger: import("react").ComponentType<Partial<{
|
|
|
673
674
|
is?: string | undefined;
|
|
674
675
|
'aria-activedescendant'?: string | undefined;
|
|
675
676
|
'aria-atomic'?: (boolean | "true" | "false") | undefined;
|
|
676
|
-
'aria-autocomplete'?: "
|
|
677
|
+
'aria-autocomplete'?: "none" | "inline" | "list" | "both" | undefined;
|
|
677
678
|
'aria-braillelabel'?: string | undefined;
|
|
678
679
|
'aria-brailleroledescription'?: string | undefined;
|
|
679
680
|
'aria-busy'?: (boolean | "true" | "false") | undefined;
|
|
@@ -686,7 +687,6 @@ export declare const OverlayTrigger: import("react").ComponentType<Partial<{
|
|
|
686
687
|
'aria-current'?: boolean | "time" | "page" | "true" | "false" | "step" | "location" | "date" | undefined;
|
|
687
688
|
'aria-description'?: string | undefined;
|
|
688
689
|
'aria-details'?: string | undefined;
|
|
689
|
-
'aria-disabled'?: (boolean | "true" | "false") | undefined;
|
|
690
690
|
'aria-dropeffect'?: "link" | "copy" | "none" | "execute" | "move" | "popup" | undefined;
|
|
691
691
|
'aria-errormessage'?: string | undefined;
|
|
692
692
|
'aria-expanded'?: (boolean | "true" | "false") | undefined;
|
|
@@ -893,9 +893,9 @@ export declare const OverlayTrigger: import("react").ComponentType<Partial<{
|
|
|
893
893
|
readonly localName: string;
|
|
894
894
|
type?: "modal" | undefined;
|
|
895
895
|
animate: (keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions | undefined) => Animation;
|
|
896
|
-
click: () => void;
|
|
897
896
|
placement?: import("@floating-ui/utils").Placement | undefined;
|
|
898
897
|
blur: () => void;
|
|
898
|
+
click: () => void;
|
|
899
899
|
focus: (options?: FocusOptions | undefined) => void;
|
|
900
900
|
scroll: {
|
|
901
901
|
(options?: ScrollToOptions | undefined): void;
|
|
@@ -904,6 +904,10 @@ export declare const OverlayTrigger: import("react").ComponentType<Partial<{
|
|
|
904
904
|
open?: import("overlay/src").OverlayContentTypes | undefined;
|
|
905
905
|
normalize: () => void;
|
|
906
906
|
readonly renderOptions: import("lit-html").RenderOptions;
|
|
907
|
+
disabled: boolean;
|
|
908
|
+
autofocus: boolean;
|
|
909
|
+
ariaHidden: string | null;
|
|
910
|
+
readonly childNodes: NodeListOf<ChildNode>;
|
|
907
911
|
addEventListener: {
|
|
908
912
|
<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
909
913
|
(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
@@ -1007,7 +1011,6 @@ export declare const OverlayTrigger: import("react").ComponentType<Partial<{
|
|
|
1007
1011
|
toggleAttribute: (qualifiedName: string, force?: boolean | undefined) => boolean;
|
|
1008
1012
|
webkitMatchesSelector: (selectors: string) => boolean;
|
|
1009
1013
|
readonly baseURI: string;
|
|
1010
|
-
readonly childNodes: NodeListOf<ChildNode>;
|
|
1011
1014
|
readonly firstChild: ChildNode | null;
|
|
1012
1015
|
readonly isConnected: boolean;
|
|
1013
1016
|
readonly lastChild: ChildNode | null;
|
|
@@ -1062,7 +1065,6 @@ export declare const OverlayTrigger: import("react").ComponentType<Partial<{
|
|
|
1062
1065
|
ariaDisabled: string | null;
|
|
1063
1066
|
ariaExpanded: string | null;
|
|
1064
1067
|
ariaHasPopup: string | null;
|
|
1065
|
-
ariaHidden: string | null;
|
|
1066
1068
|
ariaKeyShortcuts: string | null;
|
|
1067
1069
|
ariaLabel: string | null;
|
|
1068
1070
|
ariaLevel: string | null;
|
|
@@ -1206,9 +1208,7 @@ export declare const OverlayTrigger: import("react").ComponentType<Partial<{
|
|
|
1206
1208
|
onwebkitanimationstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
1207
1209
|
onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
1208
1210
|
onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
|
|
1209
|
-
autofocus: boolean;
|
|
1210
1211
|
readonly dataset: DOMStringMap;
|
|
1211
|
-
disabled: boolean;
|
|
1212
1212
|
offset: number;
|
|
1213
1213
|
clickOverlayElement: import("overlay/src").Overlay;
|
|
1214
1214
|
longpressOverlayElement: import("overlay/src").Overlay;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@swc-react/overlay",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.39.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/overlay": "^0.
|
|
33
|
+
"@spectrum-web-components/overlay": "^0.39.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": "1a4b3c2d32e51b7f22a7f1196c3c0270512e7c4c"
|
|
44
44
|
}
|