@swc-react/popover 0.36.0 → 0.37.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;
|
|
7
5
|
slot?: string | undefined;
|
|
8
6
|
style?: import("react").CSSProperties | undefined;
|
|
9
7
|
title?: string | undefined;
|
|
10
|
-
'aria-modal'?: (boolean | "true" | "false") | undefined;
|
|
11
8
|
accessKey?: string | undefined;
|
|
12
|
-
|
|
9
|
+
draggable?: (boolean | "true" | "false") | undefined;
|
|
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;
|
|
13
22
|
defaultChecked?: boolean | undefined;
|
|
14
23
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
15
24
|
suppressContentEditableWarning?: boolean | undefined;
|
|
16
25
|
suppressHydrationWarning?: boolean | undefined;
|
|
17
26
|
autoFocus?: boolean | undefined;
|
|
18
|
-
className?: string | undefined;
|
|
19
|
-
contentEditable?: (boolean | "true" | "false") | "inherit" | undefined;
|
|
20
27
|
contextMenu?: string | undefined;
|
|
21
|
-
draggable?: (boolean | "true" | "false") | undefined;
|
|
22
|
-
hidden?: boolean | undefined;
|
|
23
|
-
id?: string | undefined;
|
|
24
|
-
nonce?: string | undefined;
|
|
25
28
|
placeholder?: string | undefined;
|
|
26
29
|
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
27
|
-
tabIndex?: number | undefined;
|
|
28
|
-
translate?: "yes" | "no" | undefined;
|
|
29
30
|
radioGroup?: string | undefined;
|
|
30
31
|
role?: import("react").AriaRole | undefined;
|
|
31
32
|
about?: string | undefined;
|
|
32
33
|
content?: string | undefined;
|
|
33
34
|
datatype?: string | undefined;
|
|
34
35
|
inlist?: any;
|
|
35
|
-
prefix?: string | undefined;
|
|
36
36
|
property?: string | undefined;
|
|
37
37
|
rel?: string | undefined;
|
|
38
38
|
resource?: string | undefined;
|
|
@@ -42,6 +42,7 @@ 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;
|
|
45
46
|
itemProp?: string | undefined;
|
|
46
47
|
itemScope?: boolean | undefined;
|
|
47
48
|
itemType?: string | undefined;
|
|
@@ -50,7 +51,6 @@ export declare const Popover: import("react").ComponentType<Partial<{
|
|
|
50
51
|
results?: number | undefined;
|
|
51
52
|
security?: string | undefined;
|
|
52
53
|
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,8 +64,7 @@ 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" | "
|
|
68
|
-
'aria-describedby'?: string | undefined;
|
|
67
|
+
'aria-current'?: boolean | "time" | "page" | "true" | "false" | "step" | "location" | "date" | undefined;
|
|
69
68
|
'aria-description'?: string | undefined;
|
|
70
69
|
'aria-details'?: string | undefined;
|
|
71
70
|
'aria-disabled'?: (boolean | "true" | "false") | undefined;
|
|
@@ -75,12 +74,14 @@ export declare const Popover: import("react").ComponentType<Partial<{
|
|
|
75
74
|
'aria-flowto'?: string | undefined;
|
|
76
75
|
'aria-grabbed'?: (boolean | "true" | "false") | undefined;
|
|
77
76
|
'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;
|
|
84
85
|
'aria-multiline'?: (boolean | "true" | "false") | undefined;
|
|
85
86
|
'aria-multiselectable'?: (boolean | "true" | "false") | undefined;
|
|
86
87
|
'aria-orientation'?: "horizontal" | "vertical" | undefined;
|
|
@@ -103,7 +104,6 @@ export declare const Popover: import("react").ComponentType<Partial<{
|
|
|
103
104
|
'aria-valuemin'?: number | undefined;
|
|
104
105
|
'aria-valuenow'?: number | undefined;
|
|
105
106
|
'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;
|
|
276
275
|
dialog: boolean;
|
|
277
|
-
|
|
276
|
+
animate: (keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions | undefined) => Animation;
|
|
277
|
+
placement?: import("@floating-ui/utils").Placement | undefined;
|
|
278
278
|
blur: () => void;
|
|
279
279
|
click: () => void;
|
|
280
280
|
focus: (options?: FocusOptions | undefined) => void;
|
|
@@ -282,12 +282,28 @@ 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
|
-
readonly renderOptions: import("lit-html").RenderOptions;
|
|
287
|
-
placement: import("overlay/src/overlay-types").Placement;
|
|
288
|
-
remove: () => void;
|
|
289
|
-
tip: boolean;
|
|
285
|
+
open: boolean;
|
|
290
286
|
normalize: () => void;
|
|
287
|
+
readonly renderOptions: import("lit-html").RenderOptions;
|
|
288
|
+
addEventListener: {
|
|
289
|
+
<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
290
|
+
(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
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>;
|
|
291
307
|
readonly accessKeyLabel: string;
|
|
292
308
|
autocapitalize: string;
|
|
293
309
|
inert: boolean;
|
|
@@ -300,14 +316,6 @@ export declare const Popover: import("react").ComponentType<Partial<{
|
|
|
300
316
|
outerText: string;
|
|
301
317
|
spellcheck: boolean;
|
|
302
318
|
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
|
-
};
|
|
311
319
|
readonly classList: DOMTokenList;
|
|
312
320
|
readonly clientHeight: number;
|
|
313
321
|
readonly clientLeft: number;
|
|
@@ -323,6 +331,7 @@ export declare const Popover: import("react").ComponentType<Partial<{
|
|
|
323
331
|
scrollLeft: number;
|
|
324
332
|
scrollTop: number;
|
|
325
333
|
readonly scrollWidth: number;
|
|
334
|
+
shadowRoot: ShadowRoot;
|
|
326
335
|
readonly tagName: string;
|
|
327
336
|
attachShadow: (init: ShadowRootInit) => ShadowRoot;
|
|
328
337
|
closest: {
|
|
@@ -423,7 +432,6 @@ export declare const Popover: import("react").ComponentType<Partial<{
|
|
|
423
432
|
readonly NOTATION_NODE: number;
|
|
424
433
|
readonly PROCESSING_INSTRUCTION_NODE: number;
|
|
425
434
|
readonly TEXT_NODE: number;
|
|
426
|
-
dispatchEvent: (event: Event) => boolean;
|
|
427
435
|
ariaAtomic: string | null;
|
|
428
436
|
ariaAutoComplete: string | null;
|
|
429
437
|
ariaBusy: string | null;
|
|
@@ -463,6 +471,7 @@ export declare const Popover: import("react").ComponentType<Partial<{
|
|
|
463
471
|
getAnimations: (options?: GetAnimationsOptions | undefined) => Animation[];
|
|
464
472
|
after: (...nodes: (string | Node)[]) => void;
|
|
465
473
|
before: (...nodes: (string | Node)[]) => void;
|
|
474
|
+
remove: () => void;
|
|
466
475
|
replaceWith: (...nodes: (string | Node)[]) => void;
|
|
467
476
|
innerHTML: string;
|
|
468
477
|
readonly nextElementSibling: Element | null;
|
|
@@ -580,17 +589,8 @@ export declare const Popover: import("react").ComponentType<Partial<{
|
|
|
580
589
|
onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
|
|
581
590
|
autofocus: boolean;
|
|
582
591
|
readonly dataset: DOMStringMap;
|
|
583
|
-
|
|
584
|
-
|
|
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>;
|
|
592
|
+
tip: boolean;
|
|
593
|
+
tipElement: HTMLSpanElement;
|
|
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.37.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.37.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": "d771f62f0d8063070af43283bb0fd5e3400bad06"
|
|
44
44
|
}
|