@swc-react/popover 0.35.1-rc.34 → 0.36.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 +44 -44
- package/package.json +3 -3
package/next.d.ts
CHANGED
|
@@ -2,37 +2,37 @@
|
|
|
2
2
|
/// <reference types="react" />
|
|
3
3
|
export declare const Popover: import("react").ComponentType<Partial<{
|
|
4
4
|
dir?: string | undefined;
|
|
5
|
+
color?: string | undefined;
|
|
6
|
+
lang?: string | undefined;
|
|
5
7
|
slot?: string | undefined;
|
|
6
8
|
style?: import("react").CSSProperties | undefined;
|
|
7
9
|
title?: string | undefined;
|
|
10
|
+
'aria-modal'?: (boolean | "true" | "false") | undefined;
|
|
8
11
|
accessKey?: string | undefined;
|
|
9
|
-
|
|
10
|
-
hidden?: boolean | undefined;
|
|
11
|
-
lang?: string | undefined;
|
|
12
|
-
translate?: "yes" | "no" | undefined;
|
|
13
|
-
className?: string | undefined;
|
|
14
|
-
id?: string | undefined;
|
|
15
|
-
prefix?: string | undefined;
|
|
16
|
-
children?: import("react").ReactNode;
|
|
17
|
-
contentEditable?: (boolean | "true" | "false") | "inherit" | undefined;
|
|
18
|
-
inputMode?: "text" | "none" | "search" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
19
|
-
nonce?: string | undefined;
|
|
20
|
-
tabIndex?: number | undefined;
|
|
21
|
-
'aria-describedby'?: string | undefined;
|
|
12
|
+
'aria-hidden'?: (boolean | "true" | "false") | undefined;
|
|
22
13
|
defaultChecked?: boolean | undefined;
|
|
23
14
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
24
15
|
suppressContentEditableWarning?: boolean | undefined;
|
|
25
16
|
suppressHydrationWarning?: boolean | undefined;
|
|
26
17
|
autoFocus?: boolean | undefined;
|
|
18
|
+
className?: string | undefined;
|
|
19
|
+
contentEditable?: (boolean | "true" | "false") | "inherit" | undefined;
|
|
27
20
|
contextMenu?: string | undefined;
|
|
21
|
+
draggable?: (boolean | "true" | "false") | undefined;
|
|
22
|
+
hidden?: boolean | undefined;
|
|
23
|
+
id?: string | undefined;
|
|
24
|
+
nonce?: string | undefined;
|
|
28
25
|
placeholder?: string | undefined;
|
|
29
26
|
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
27
|
+
tabIndex?: number | undefined;
|
|
28
|
+
translate?: "yes" | "no" | undefined;
|
|
30
29
|
radioGroup?: string | undefined;
|
|
31
30
|
role?: import("react").AriaRole | undefined;
|
|
32
31
|
about?: string | undefined;
|
|
33
32
|
content?: string | undefined;
|
|
34
33
|
datatype?: string | undefined;
|
|
35
34
|
inlist?: any;
|
|
35
|
+
prefix?: string | undefined;
|
|
36
36
|
property?: string | undefined;
|
|
37
37
|
rel?: string | undefined;
|
|
38
38
|
resource?: string | undefined;
|
|
@@ -42,7 +42,6 @@ export declare const Popover: import("react").ComponentType<Partial<{
|
|
|
42
42
|
autoCapitalize?: string | undefined;
|
|
43
43
|
autoCorrect?: string | undefined;
|
|
44
44
|
autoSave?: string | undefined;
|
|
45
|
-
color?: string | undefined;
|
|
46
45
|
itemProp?: string | undefined;
|
|
47
46
|
itemScope?: boolean | undefined;
|
|
48
47
|
itemType?: string | undefined;
|
|
@@ -51,6 +50,7 @@ export declare const Popover: import("react").ComponentType<Partial<{
|
|
|
51
50
|
results?: number | undefined;
|
|
52
51
|
security?: string | undefined;
|
|
53
52
|
unselectable?: "on" | "off" | undefined;
|
|
53
|
+
inputMode?: "text" | "none" | "search" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
54
54
|
is?: string | undefined;
|
|
55
55
|
'aria-activedescendant'?: string | undefined;
|
|
56
56
|
'aria-atomic'?: (boolean | "true" | "false") | undefined;
|
|
@@ -64,7 +64,8 @@ export declare const Popover: import("react").ComponentType<Partial<{
|
|
|
64
64
|
'aria-colindextext'?: string | undefined;
|
|
65
65
|
'aria-colspan'?: number | undefined;
|
|
66
66
|
'aria-controls'?: string | undefined;
|
|
67
|
-
'aria-current'?: boolean | "time" | "
|
|
67
|
+
'aria-current'?: boolean | "time" | "true" | "false" | "page" | "step" | "location" | "date" | undefined;
|
|
68
|
+
'aria-describedby'?: string | undefined;
|
|
68
69
|
'aria-description'?: string | undefined;
|
|
69
70
|
'aria-details'?: string | undefined;
|
|
70
71
|
'aria-disabled'?: (boolean | "true" | "false") | undefined;
|
|
@@ -74,14 +75,12 @@ export declare const Popover: import("react").ComponentType<Partial<{
|
|
|
74
75
|
'aria-flowto'?: string | undefined;
|
|
75
76
|
'aria-grabbed'?: (boolean | "true" | "false") | undefined;
|
|
76
77
|
'aria-haspopup'?: boolean | "dialog" | "menu" | "true" | "false" | "grid" | "listbox" | "tree" | undefined;
|
|
77
|
-
'aria-hidden'?: (boolean | "true" | "false") | undefined;
|
|
78
78
|
'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
|
|
79
79
|
'aria-keyshortcuts'?: string | undefined;
|
|
80
80
|
'aria-label'?: string | undefined;
|
|
81
81
|
'aria-labelledby'?: string | undefined;
|
|
82
82
|
'aria-level'?: number | undefined;
|
|
83
83
|
'aria-live'?: "off" | "assertive" | "polite" | undefined;
|
|
84
|
-
'aria-modal'?: (boolean | "true" | "false") | undefined;
|
|
85
84
|
'aria-multiline'?: (boolean | "true" | "false") | undefined;
|
|
86
85
|
'aria-multiselectable'?: (boolean | "true" | "false") | undefined;
|
|
87
86
|
'aria-orientation'?: "horizontal" | "vertical" | undefined;
|
|
@@ -104,6 +103,7 @@ export declare const Popover: import("react").ComponentType<Partial<{
|
|
|
104
103
|
'aria-valuemin'?: number | undefined;
|
|
105
104
|
'aria-valuenow'?: number | undefined;
|
|
106
105
|
'aria-valuetext'?: string | undefined;
|
|
106
|
+
children?: import("react").ReactNode;
|
|
107
107
|
dangerouslySetInnerHTML?: {
|
|
108
108
|
__html: string | TrustedHTML;
|
|
109
109
|
} | undefined;
|
|
@@ -272,9 +272,9 @@ export declare const Popover: import("react").ComponentType<Partial<{
|
|
|
272
272
|
} & {
|
|
273
273
|
readonly attributes: NamedNodeMap;
|
|
274
274
|
readonly localName: string;
|
|
275
|
+
shadowRoot: ShadowRoot;
|
|
275
276
|
dialog: boolean;
|
|
276
|
-
|
|
277
|
-
placement?: import("@floating-ui/utils").Placement | undefined;
|
|
277
|
+
open: boolean;
|
|
278
278
|
blur: () => void;
|
|
279
279
|
click: () => void;
|
|
280
280
|
focus: (options?: FocusOptions | undefined) => void;
|
|
@@ -282,28 +282,12 @@ export declare const Popover: import("react").ComponentType<Partial<{
|
|
|
282
282
|
(options?: ScrollToOptions | undefined): void;
|
|
283
283
|
(x: number, y: number): void;
|
|
284
284
|
};
|
|
285
|
-
|
|
286
|
-
normalize: () => void;
|
|
285
|
+
animate: (keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions | undefined) => Animation;
|
|
287
286
|
readonly renderOptions: import("lit-html").RenderOptions;
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
dispatchEvent: (event: Event) => boolean;
|
|
293
|
-
removeEventListener: {
|
|
294
|
-
<K_1 extends keyof HTMLElementEventMap>(type: K_1, listener: (this: HTMLElement, ev: HTMLElementEventMap[K_1]) => any, options?: boolean | EventListenerOptions | undefined): void;
|
|
295
|
-
(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions | undefined): void;
|
|
296
|
-
};
|
|
297
|
-
readonly renderRoot: HTMLElement | ShadowRoot;
|
|
298
|
-
isUpdatePending: boolean;
|
|
299
|
-
hasUpdated: boolean;
|
|
300
|
-
addController: (controller: import("lit").ReactiveController) => void;
|
|
301
|
-
removeController: (controller: import("lit").ReactiveController) => void;
|
|
302
|
-
connectedCallback: () => void;
|
|
303
|
-
disconnectedCallback: () => void;
|
|
304
|
-
attributeChangedCallback: (name: string, _old: string | null, value: string | null) => void;
|
|
305
|
-
requestUpdate: (name?: PropertyKey | undefined, oldValue?: unknown, options?: import("lit").PropertyDeclaration<unknown, unknown> | undefined) => void;
|
|
306
|
-
readonly updateComplete: Promise<boolean>;
|
|
287
|
+
placement: import("overlay/src/overlay-types").Placement;
|
|
288
|
+
remove: () => void;
|
|
289
|
+
tip: boolean;
|
|
290
|
+
normalize: () => void;
|
|
307
291
|
readonly accessKeyLabel: string;
|
|
308
292
|
autocapitalize: string;
|
|
309
293
|
inert: boolean;
|
|
@@ -316,6 +300,14 @@ export declare const Popover: import("react").ComponentType<Partial<{
|
|
|
316
300
|
outerText: string;
|
|
317
301
|
spellcheck: boolean;
|
|
318
302
|
attachInternals: () => ElementInternals;
|
|
303
|
+
addEventListener: {
|
|
304
|
+
<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
305
|
+
(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
306
|
+
};
|
|
307
|
+
removeEventListener: {
|
|
308
|
+
<K_1 extends keyof HTMLElementEventMap>(type: K_1, listener: (this: HTMLElement, ev: HTMLElementEventMap[K_1]) => any, options?: boolean | EventListenerOptions | undefined): void;
|
|
309
|
+
(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions | undefined): void;
|
|
310
|
+
};
|
|
319
311
|
readonly classList: DOMTokenList;
|
|
320
312
|
readonly clientHeight: number;
|
|
321
313
|
readonly clientLeft: number;
|
|
@@ -331,7 +323,6 @@ export declare const Popover: import("react").ComponentType<Partial<{
|
|
|
331
323
|
scrollLeft: number;
|
|
332
324
|
scrollTop: number;
|
|
333
325
|
readonly scrollWidth: number;
|
|
334
|
-
shadowRoot: ShadowRoot;
|
|
335
326
|
readonly tagName: string;
|
|
336
327
|
attachShadow: (init: ShadowRootInit) => ShadowRoot;
|
|
337
328
|
closest: {
|
|
@@ -432,6 +423,7 @@ export declare const Popover: import("react").ComponentType<Partial<{
|
|
|
432
423
|
readonly NOTATION_NODE: number;
|
|
433
424
|
readonly PROCESSING_INSTRUCTION_NODE: number;
|
|
434
425
|
readonly TEXT_NODE: number;
|
|
426
|
+
dispatchEvent: (event: Event) => boolean;
|
|
435
427
|
ariaAtomic: string | null;
|
|
436
428
|
ariaAutoComplete: string | null;
|
|
437
429
|
ariaBusy: string | null;
|
|
@@ -471,7 +463,6 @@ export declare const Popover: import("react").ComponentType<Partial<{
|
|
|
471
463
|
getAnimations: (options?: GetAnimationsOptions | undefined) => Animation[];
|
|
472
464
|
after: (...nodes: (string | Node)[]) => void;
|
|
473
465
|
before: (...nodes: (string | Node)[]) => void;
|
|
474
|
-
remove: () => void;
|
|
475
466
|
replaceWith: (...nodes: (string | Node)[]) => void;
|
|
476
467
|
innerHTML: string;
|
|
477
468
|
readonly nextElementSibling: Element | null;
|
|
@@ -589,8 +580,17 @@ export declare const Popover: import("react").ComponentType<Partial<{
|
|
|
589
580
|
onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
|
|
590
581
|
autofocus: boolean;
|
|
591
582
|
readonly dataset: DOMStringMap;
|
|
592
|
-
|
|
593
|
-
|
|
583
|
+
connectedCallback: () => void;
|
|
584
|
+
disconnectedCallback: () => void;
|
|
585
|
+
onOverlayQuery: (event: CustomEvent<import("overlay/src/overlay-types").OverlayDisplayQueryDetail>) => void;
|
|
586
|
+
readonly renderRoot: HTMLElement | ShadowRoot;
|
|
587
|
+
isUpdatePending: boolean;
|
|
588
|
+
hasUpdated: boolean;
|
|
589
|
+
addController: (controller: import("lit").ReactiveController) => void;
|
|
590
|
+
removeController: (controller: import("lit").ReactiveController) => void;
|
|
591
|
+
attributeChangedCallback: (name: string, _old: string | null, value: string | null) => void;
|
|
592
|
+
requestUpdate: (name?: PropertyKey | undefined, oldValue?: unknown, options?: import("lit").PropertyDeclaration<unknown, unknown> | undefined) => void;
|
|
593
|
+
readonly updateComplete: Promise<boolean>;
|
|
594
594
|
isLTR: boolean;
|
|
595
595
|
hasVisibleFocusInTree: () => boolean;
|
|
596
596
|
} & {}> & import("react").RefAttributes<import("popover/src").Popover>>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@swc-react/popover",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.36.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.36.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": "a532ff8a410abeefb54d9638a2316ae82570566e"
|
|
44
44
|
}
|