@swc-react/picker 0.33.3-overlay.66 → 0.34.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 +37 -35
- package/package.json +3 -3
package/next.d.ts
CHANGED
|
@@ -7,15 +7,18 @@ export declare const Picker: import("react").ComponentType<Partial<{
|
|
|
7
7
|
tabIndex?: number | undefined;
|
|
8
8
|
'aria-disabled'?: (boolean | "true" | "false") | undefined;
|
|
9
9
|
hidden?: boolean | undefined;
|
|
10
|
-
accessKey?: string | undefined;
|
|
11
|
-
color?: string | undefined;
|
|
12
|
-
lang?: string | undefined;
|
|
13
|
-
'aria-describedby'?: string | undefined;
|
|
14
10
|
id?: string | undefined;
|
|
15
11
|
className?: string | undefined;
|
|
12
|
+
color?: string | undefined;
|
|
13
|
+
lang?: string | undefined;
|
|
14
|
+
'aria-modal'?: (boolean | "true" | "false") | undefined;
|
|
15
|
+
accessKey?: string | undefined;
|
|
16
|
+
'aria-hidden'?: (boolean | "true" | "false") | undefined;
|
|
16
17
|
role?: import("react").AriaRole | undefined;
|
|
17
|
-
'aria-
|
|
18
|
-
'aria-
|
|
18
|
+
'aria-label'?: string | undefined;
|
|
19
|
+
'aria-haspopup'?: boolean | "dialog" | "menu" | "true" | "false" | "listbox" | "grid" | "tree" | undefined;
|
|
20
|
+
'aria-expanded'?: (boolean | "true" | "false") | undefined;
|
|
21
|
+
'aria-pressed'?: boolean | "true" | "false" | "mixed" | undefined;
|
|
19
22
|
draggable?: (boolean | "true" | "false") | undefined;
|
|
20
23
|
translate?: "yes" | "no" | undefined;
|
|
21
24
|
prefix?: string | undefined;
|
|
@@ -23,7 +26,9 @@ export declare const Picker: import("react").ComponentType<Partial<{
|
|
|
23
26
|
contentEditable?: "inherit" | (boolean | "true" | "false") | undefined;
|
|
24
27
|
inputMode?: "text" | "search" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
25
28
|
nonce?: string | undefined;
|
|
26
|
-
'aria-
|
|
29
|
+
'aria-describedby'?: string | undefined;
|
|
30
|
+
'aria-selected'?: (boolean | "true" | "false") | undefined;
|
|
31
|
+
'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
|
|
27
32
|
'aria-activedescendant'?: string | undefined;
|
|
28
33
|
'aria-labelledby'?: string | undefined;
|
|
29
34
|
placeholder?: string | undefined;
|
|
@@ -64,23 +69,18 @@ export declare const Picker: import("react").ComponentType<Partial<{
|
|
|
64
69
|
'aria-details'?: string | undefined;
|
|
65
70
|
'aria-dropeffect'?: "link" | "copy" | "none" | "execute" | "move" | "popup" | undefined;
|
|
66
71
|
'aria-errormessage'?: string | undefined;
|
|
67
|
-
'aria-expanded'?: (boolean | "true" | "false") | undefined;
|
|
68
72
|
'aria-flowto'?: string | undefined;
|
|
69
73
|
'aria-grabbed'?: (boolean | "true" | "false") | undefined;
|
|
70
|
-
'aria-haspopup'?: boolean | "dialog" | "menu" | "true" | "false" | "listbox" | "grid" | "tree" | undefined;
|
|
71
|
-
'aria-hidden'?: (boolean | "true" | "false") | undefined;
|
|
72
74
|
'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
|
|
73
75
|
'aria-keyshortcuts'?: string | undefined;
|
|
74
76
|
'aria-level'?: number | undefined;
|
|
75
77
|
'aria-live'?: "off" | "assertive" | "polite" | undefined;
|
|
76
|
-
'aria-modal'?: (boolean | "true" | "false") | undefined;
|
|
77
78
|
'aria-multiline'?: (boolean | "true" | "false") | undefined;
|
|
78
79
|
'aria-multiselectable'?: (boolean | "true" | "false") | undefined;
|
|
79
80
|
'aria-orientation'?: "horizontal" | "vertical" | undefined;
|
|
80
81
|
'aria-owns'?: string | undefined;
|
|
81
82
|
'aria-placeholder'?: string | undefined;
|
|
82
83
|
'aria-posinset'?: number | undefined;
|
|
83
|
-
'aria-pressed'?: boolean | "true" | "false" | "mixed" | undefined;
|
|
84
84
|
'aria-readonly'?: (boolean | "true" | "false") | undefined;
|
|
85
85
|
'aria-relevant'?: "text" | "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
|
|
86
86
|
'aria-required'?: (boolean | "true" | "false") | undefined;
|
|
@@ -279,29 +279,19 @@ export declare const Picker: import("react").ComponentType<Partial<{
|
|
|
279
279
|
disabled: boolean;
|
|
280
280
|
autofocus: boolean;
|
|
281
281
|
normalize: () => void;
|
|
282
|
-
addEventListener: {
|
|
283
|
-
<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
284
|
-
(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
285
|
-
};
|
|
286
|
-
dispatchEvent: (event: Event) => boolean;
|
|
287
|
-
removeEventListener: {
|
|
288
|
-
<K_1 extends keyof HTMLElementEventMap>(type: K_1, listener: (this: HTMLElement, ev: HTMLElementEventMap[K_1]) => any, options?: boolean | EventListenerOptions | undefined): void;
|
|
289
|
-
(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions | undefined): void;
|
|
290
|
-
};
|
|
291
282
|
readonly target: HTMLButtonElement | import("picker/src").Picker;
|
|
292
|
-
|
|
293
|
-
readonly assignedSlot: HTMLSlotElement | null;
|
|
294
|
-
placement: import("@floating-ui/core").Placement;
|
|
283
|
+
ariaHidden: string | null;
|
|
295
284
|
shadowRoot: ShadowRoot;
|
|
296
|
-
|
|
285
|
+
open: boolean;
|
|
297
286
|
readonly renderOptions: import("lit-html").RenderOptions;
|
|
298
|
-
|
|
287
|
+
placement: import("overlay/src").Placement;
|
|
288
|
+
overlayOpenCallback: () => Promise<void>;
|
|
289
|
+
remove: () => void;
|
|
299
290
|
readonly childNodes: NodeListOf<ChildNode>;
|
|
300
|
-
|
|
291
|
+
quiet: boolean;
|
|
301
292
|
value: string;
|
|
302
|
-
readonly focusElement: HTMLElement;
|
|
303
|
-
connectedCallback: () => void;
|
|
304
293
|
disconnectedCallback: () => void;
|
|
294
|
+
connectedCallback: () => void;
|
|
305
295
|
readonly renderRoot: HTMLElement | ShadowRoot;
|
|
306
296
|
isUpdatePending: boolean;
|
|
307
297
|
hasUpdated: boolean;
|
|
@@ -322,6 +312,14 @@ export declare const Picker: import("react").ComponentType<Partial<{
|
|
|
322
312
|
outerText: string;
|
|
323
313
|
spellcheck: boolean;
|
|
324
314
|
attachInternals: () => ElementInternals;
|
|
315
|
+
addEventListener: {
|
|
316
|
+
<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
317
|
+
(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
318
|
+
};
|
|
319
|
+
removeEventListener: {
|
|
320
|
+
<K_1 extends keyof HTMLElementEventMap>(type: K_1, listener: (this: HTMLElement, ev: HTMLElementEventMap[K_1]) => any, options?: boolean | EventListenerOptions | undefined): void;
|
|
321
|
+
(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions | undefined): void;
|
|
322
|
+
};
|
|
325
323
|
readonly classList: DOMTokenList;
|
|
326
324
|
readonly clientHeight: number;
|
|
327
325
|
readonly clientLeft: number;
|
|
@@ -400,6 +398,7 @@ export declare const Picker: import("react").ComponentType<Partial<{
|
|
|
400
398
|
readonly nodeName: string;
|
|
401
399
|
readonly nodeType: number;
|
|
402
400
|
nodeValue: string | null;
|
|
401
|
+
readonly parentElement: HTMLElement | null;
|
|
403
402
|
readonly parentNode: ParentNode | null;
|
|
404
403
|
readonly previousSibling: ChildNode | null;
|
|
405
404
|
textContent: string | null;
|
|
@@ -435,6 +434,7 @@ export declare const Picker: import("react").ComponentType<Partial<{
|
|
|
435
434
|
readonly NOTATION_NODE: number;
|
|
436
435
|
readonly PROCESSING_INSTRUCTION_NODE: number;
|
|
437
436
|
readonly TEXT_NODE: number;
|
|
437
|
+
dispatchEvent: (event: Event) => boolean;
|
|
438
438
|
ariaAtomic: string | null;
|
|
439
439
|
ariaAutoComplete: string | null;
|
|
440
440
|
ariaBusy: string | null;
|
|
@@ -473,7 +473,6 @@ export declare const Picker: import("react").ComponentType<Partial<{
|
|
|
473
473
|
getAnimations: (options?: GetAnimationsOptions | undefined) => Animation[];
|
|
474
474
|
after: (...nodes: (string | Node)[]) => void;
|
|
475
475
|
before: (...nodes: (string | Node)[]) => void;
|
|
476
|
-
remove: () => void;
|
|
477
476
|
replaceWith: (...nodes: (string | Node)[]) => void;
|
|
478
477
|
innerHTML: string;
|
|
479
478
|
readonly nextElementSibling: Element | null;
|
|
@@ -494,6 +493,7 @@ export declare const Picker: import("react").ComponentType<Partial<{
|
|
|
494
493
|
<E_2 extends Element = Element>(selectors: string): NodeListOf<E_2>;
|
|
495
494
|
};
|
|
496
495
|
replaceChildren: (...nodes: (string | Node)[]) => void;
|
|
496
|
+
readonly assignedSlot: HTMLSlotElement | null;
|
|
497
497
|
oncopy: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
498
498
|
oncut: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
499
499
|
onpaste: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
@@ -591,21 +591,23 @@ export declare const Picker: import("react").ComponentType<Partial<{
|
|
|
591
591
|
readonly dataset: DOMStringMap;
|
|
592
592
|
isLTR: boolean;
|
|
593
593
|
hasVisibleFocusInTree: () => boolean;
|
|
594
|
+
focused: boolean;
|
|
595
|
+
readonly focusElement: HTMLElement;
|
|
594
596
|
selects: "single" | undefined;
|
|
597
|
+
appliedLabel?: string | undefined;
|
|
595
598
|
icons?: "none" | "only" | undefined;
|
|
596
599
|
readonly: boolean;
|
|
600
|
+
selectedItem?: import("menu/src").MenuItem | undefined;
|
|
601
|
+
menuItems: import("menu/src").MenuItem[];
|
|
597
602
|
optionsMenu: import("menu/src").Menu;
|
|
598
|
-
quiet: boolean;
|
|
599
|
-
selectedItem: import("menu/src").MenuItem | undefined;
|
|
600
|
-
readonly menuItems: import("menu/src").MenuItem[];
|
|
601
|
-
_selectedItem?: import("menu/src").MenuItem | undefined;
|
|
602
603
|
forceFocusVisible: () => void;
|
|
603
604
|
onButtonBlur: () => void;
|
|
604
605
|
onHelperFocus: () => void;
|
|
605
606
|
onButtonFocus: () => void;
|
|
606
607
|
handleChange: (event: Event) => void;
|
|
607
608
|
setValueFromItem: (item: import("menu/src").MenuItem, menuChangeEvent?: Event | undefined) => Promise<void>;
|
|
608
|
-
|
|
609
|
+
overlayCloseCallback: () => Promise<void>;
|
|
610
|
+
applyFocusElementLabel: (value?: string | undefined) => void;
|
|
609
611
|
} & {
|
|
610
612
|
change: (e: Event) => void;
|
|
611
613
|
spOpened: (e: Event) => void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@swc-react/picker",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.34.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/picker": "^0.
|
|
33
|
+
"@spectrum-web-components/picker": "^0.34.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": "f9b3294d67cdd52b2c36897cdc1c20ceaeb019cf"
|
|
44
44
|
}
|