@swc-react/popover 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 +22 -12
- 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 Popover: import("react").ComponentType<Partial<{
|
|
3
4
|
dir?: string | undefined;
|
|
4
5
|
color?: string | undefined;
|
|
@@ -6,11 +7,14 @@ export declare const Popover: import("react").ComponentType<Partial<{
|
|
|
6
7
|
slot?: string | undefined;
|
|
7
8
|
style?: import("react").CSSProperties | undefined;
|
|
8
9
|
title?: string | undefined;
|
|
10
|
+
'aria-modal'?: (boolean | "true" | "false") | undefined;
|
|
11
|
+
accessKey?: string | undefined;
|
|
12
|
+
'aria-hidden'?: (boolean | "true" | "false") | undefined;
|
|
9
13
|
defaultChecked?: boolean | undefined;
|
|
10
14
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
11
15
|
suppressContentEditableWarning?: boolean | undefined;
|
|
12
16
|
suppressHydrationWarning?: boolean | undefined;
|
|
13
|
-
|
|
17
|
+
autoFocus?: boolean | undefined;
|
|
14
18
|
className?: string | undefined;
|
|
15
19
|
contentEditable?: (boolean | "true" | "false") | "inherit" | undefined;
|
|
16
20
|
contextMenu?: string | undefined;
|
|
@@ -25,11 +29,14 @@ export declare const Popover: import("react").ComponentType<Partial<{
|
|
|
25
29
|
radioGroup?: string | undefined;
|
|
26
30
|
role?: import("react").AriaRole | undefined;
|
|
27
31
|
about?: string | undefined;
|
|
32
|
+
content?: string | undefined;
|
|
28
33
|
datatype?: string | undefined;
|
|
29
34
|
inlist?: any;
|
|
30
35
|
prefix?: string | undefined;
|
|
31
36
|
property?: string | undefined;
|
|
37
|
+
rel?: string | undefined;
|
|
32
38
|
resource?: string | undefined;
|
|
39
|
+
rev?: string | undefined;
|
|
33
40
|
typeof?: string | undefined;
|
|
34
41
|
vocab?: string | undefined;
|
|
35
42
|
autoCapitalize?: string | undefined;
|
|
@@ -43,19 +50,23 @@ export declare const Popover: import("react").ComponentType<Partial<{
|
|
|
43
50
|
results?: number | undefined;
|
|
44
51
|
security?: string | undefined;
|
|
45
52
|
unselectable?: "on" | "off" | undefined;
|
|
46
|
-
inputMode?: "
|
|
53
|
+
inputMode?: "text" | "none" | "search" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
47
54
|
is?: string | undefined;
|
|
48
55
|
'aria-activedescendant'?: string | undefined;
|
|
49
56
|
'aria-atomic'?: (boolean | "true" | "false") | undefined;
|
|
50
|
-
'aria-autocomplete'?: "
|
|
57
|
+
'aria-autocomplete'?: "none" | "inline" | "list" | "both" | undefined;
|
|
58
|
+
'aria-braillelabel'?: string | undefined;
|
|
59
|
+
'aria-brailleroledescription'?: string | undefined;
|
|
51
60
|
'aria-busy'?: (boolean | "true" | "false") | undefined;
|
|
52
61
|
'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
|
|
53
62
|
'aria-colcount'?: number | undefined;
|
|
54
63
|
'aria-colindex'?: number | undefined;
|
|
64
|
+
'aria-colindextext'?: string | undefined;
|
|
55
65
|
'aria-colspan'?: number | undefined;
|
|
56
66
|
'aria-controls'?: string | undefined;
|
|
57
|
-
'aria-current'?: boolean | "time" | "
|
|
67
|
+
'aria-current'?: boolean | "time" | "true" | "false" | "page" | "step" | "location" | "date" | undefined;
|
|
58
68
|
'aria-describedby'?: string | undefined;
|
|
69
|
+
'aria-description'?: string | undefined;
|
|
59
70
|
'aria-details'?: string | undefined;
|
|
60
71
|
'aria-disabled'?: (boolean | "true" | "false") | undefined;
|
|
61
72
|
'aria-dropeffect'?: "link" | "copy" | "none" | "execute" | "move" | "popup" | undefined;
|
|
@@ -64,14 +75,12 @@ export declare const Popover: import("react").ComponentType<Partial<{
|
|
|
64
75
|
'aria-flowto'?: string | undefined;
|
|
65
76
|
'aria-grabbed'?: (boolean | "true" | "false") | undefined;
|
|
66
77
|
'aria-haspopup'?: boolean | "dialog" | "menu" | "true" | "false" | "grid" | "listbox" | "tree" | undefined;
|
|
67
|
-
'aria-hidden'?: (boolean | "true" | "false") | undefined;
|
|
68
78
|
'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
|
|
69
79
|
'aria-keyshortcuts'?: string | undefined;
|
|
70
80
|
'aria-label'?: string | undefined;
|
|
71
81
|
'aria-labelledby'?: string | undefined;
|
|
72
82
|
'aria-level'?: number | undefined;
|
|
73
83
|
'aria-live'?: "off" | "assertive" | "polite" | undefined;
|
|
74
|
-
'aria-modal'?: (boolean | "true" | "false") | undefined;
|
|
75
84
|
'aria-multiline'?: (boolean | "true" | "false") | undefined;
|
|
76
85
|
'aria-multiselectable'?: (boolean | "true" | "false") | undefined;
|
|
77
86
|
'aria-orientation'?: "horizontal" | "vertical" | undefined;
|
|
@@ -85,6 +94,7 @@ export declare const Popover: import("react").ComponentType<Partial<{
|
|
|
85
94
|
'aria-roledescription'?: string | undefined;
|
|
86
95
|
'aria-rowcount'?: number | undefined;
|
|
87
96
|
'aria-rowindex'?: number | undefined;
|
|
97
|
+
'aria-rowindextext'?: string | undefined;
|
|
88
98
|
'aria-rowspan'?: number | undefined;
|
|
89
99
|
'aria-selected'?: (boolean | "true" | "false") | undefined;
|
|
90
100
|
'aria-setsize'?: number | undefined;
|
|
@@ -95,7 +105,7 @@ export declare const Popover: import("react").ComponentType<Partial<{
|
|
|
95
105
|
'aria-valuetext'?: string | undefined;
|
|
96
106
|
children?: import("react").ReactNode;
|
|
97
107
|
dangerouslySetInnerHTML?: {
|
|
98
|
-
__html: string;
|
|
108
|
+
__html: string | TrustedHTML;
|
|
99
109
|
} | undefined;
|
|
100
110
|
onCopy?: import("react").ClipboardEventHandler<import("popover/src").Popover> | undefined;
|
|
101
111
|
onCopyCapture?: import("react").ClipboardEventHandler<import("popover/src").Popover> | undefined;
|
|
@@ -272,9 +282,11 @@ export declare const Popover: import("react").ComponentType<Partial<{
|
|
|
272
282
|
(options?: ScrollToOptions | undefined): void;
|
|
273
283
|
(x: number, y: number): void;
|
|
274
284
|
};
|
|
275
|
-
|
|
285
|
+
animate: (keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions | undefined) => Animation;
|
|
286
|
+
readonly renderOptions: import("lit-html").RenderOptions;
|
|
287
|
+
placement: import("overlay/src/overlay-types").Placement;
|
|
288
|
+
remove: () => void;
|
|
276
289
|
tip: boolean;
|
|
277
|
-
tipElement: HTMLSpanElement;
|
|
278
290
|
normalize: () => void;
|
|
279
291
|
readonly accessKeyLabel: string;
|
|
280
292
|
autocapitalize: string;
|
|
@@ -448,11 +460,9 @@ export declare const Popover: import("react").ComponentType<Partial<{
|
|
|
448
460
|
ariaValueMin: string | null;
|
|
449
461
|
ariaValueNow: string | null;
|
|
450
462
|
ariaValueText: string | null;
|
|
451
|
-
animate: (keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions | undefined) => Animation;
|
|
452
463
|
getAnimations: (options?: GetAnimationsOptions | undefined) => Animation[];
|
|
453
464
|
after: (...nodes: (string | Node)[]) => void;
|
|
454
465
|
before: (...nodes: (string | Node)[]) => void;
|
|
455
|
-
remove: () => void;
|
|
456
466
|
replaceWith: (...nodes: (string | Node)[]) => void;
|
|
457
467
|
innerHTML: string;
|
|
458
468
|
readonly nextElementSibling: Element | null;
|
|
@@ -570,9 +580,9 @@ export declare const Popover: import("react").ComponentType<Partial<{
|
|
|
570
580
|
onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
|
|
571
581
|
autofocus: boolean;
|
|
572
582
|
readonly dataset: DOMStringMap;
|
|
573
|
-
readonly renderOptions: import("lit-html").RenderOptions;
|
|
574
583
|
connectedCallback: () => void;
|
|
575
584
|
disconnectedCallback: () => void;
|
|
585
|
+
onOverlayQuery: (event: CustomEvent<import("overlay/src/overlay-types").OverlayDisplayQueryDetail>) => void;
|
|
576
586
|
readonly renderRoot: HTMLElement | ShadowRoot;
|
|
577
587
|
isUpdatePending: boolean;
|
|
578
588
|
hasUpdated: boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@swc-react/popover",
|
|
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/popover": "^0.
|
|
33
|
+
"@spectrum-web-components/popover": "^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
|
}
|