@swc-react/picker 0.34.1-rc.0 → 0.35.1-rc.15
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 +47 -42
- 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 Picker: import("react").ComponentType<Partial<{
|
|
3
4
|
dir?: string | undefined;
|
|
4
5
|
slot?: string | undefined;
|
|
@@ -6,23 +7,26 @@ export declare const Picker: import("react").ComponentType<Partial<{
|
|
|
6
7
|
title?: string | undefined;
|
|
7
8
|
tabIndex?: number | undefined;
|
|
8
9
|
'aria-disabled'?: (boolean | "true" | "false") | undefined;
|
|
9
|
-
hidden?: boolean | undefined;
|
|
10
|
+
'aria-hidden'?: (boolean | "true" | "false") | undefined;
|
|
10
11
|
accessKey?: string | undefined;
|
|
11
|
-
color?: string | undefined;
|
|
12
|
-
lang?: string | undefined;
|
|
13
|
-
'aria-describedby'?: string | undefined;
|
|
14
|
-
id?: string | undefined;
|
|
15
|
-
className?: string | undefined;
|
|
16
|
-
role?: import("react").AriaRole | undefined;
|
|
17
|
-
'aria-selected'?: (boolean | "true" | "false") | undefined;
|
|
18
|
-
'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
|
|
19
12
|
draggable?: (boolean | "true" | "false") | undefined;
|
|
13
|
+
hidden?: boolean | undefined;
|
|
14
|
+
lang?: string | undefined;
|
|
20
15
|
translate?: "yes" | "no" | undefined;
|
|
16
|
+
className?: string | undefined;
|
|
17
|
+
id?: string | undefined;
|
|
21
18
|
prefix?: string | undefined;
|
|
22
19
|
children?: import("react").ReactNode;
|
|
23
20
|
contentEditable?: "inherit" | (boolean | "true" | "false") | undefined;
|
|
24
21
|
inputMode?: "text" | "search" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
25
22
|
nonce?: string | undefined;
|
|
23
|
+
'aria-describedby'?: string | undefined;
|
|
24
|
+
rel?: string | undefined;
|
|
25
|
+
'aria-haspopup'?: boolean | "dialog" | "menu" | "true" | "false" | "listbox" | "tree" | "grid" | undefined;
|
|
26
|
+
'aria-expanded'?: (boolean | "true" | "false") | undefined;
|
|
27
|
+
role?: import("react").AriaRole | undefined;
|
|
28
|
+
'aria-selected'?: (boolean | "true" | "false") | undefined;
|
|
29
|
+
'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
|
|
26
30
|
'aria-label'?: string | undefined;
|
|
27
31
|
'aria-activedescendant'?: string | undefined;
|
|
28
32
|
'aria-labelledby'?: string | undefined;
|
|
@@ -31,19 +35,23 @@ export declare const Picker: import("react").ComponentType<Partial<{
|
|
|
31
35
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
32
36
|
suppressContentEditableWarning?: boolean | undefined;
|
|
33
37
|
suppressHydrationWarning?: boolean | undefined;
|
|
38
|
+
autoFocus?: boolean | undefined;
|
|
34
39
|
contextMenu?: string | undefined;
|
|
35
40
|
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
36
41
|
radioGroup?: string | undefined;
|
|
37
42
|
about?: string | undefined;
|
|
43
|
+
content?: string | undefined;
|
|
38
44
|
datatype?: string | undefined;
|
|
39
45
|
inlist?: any;
|
|
40
46
|
property?: string | undefined;
|
|
41
47
|
resource?: string | undefined;
|
|
48
|
+
rev?: string | undefined;
|
|
42
49
|
typeof?: string | undefined;
|
|
43
50
|
vocab?: string | undefined;
|
|
44
51
|
autoCapitalize?: string | undefined;
|
|
45
52
|
autoCorrect?: string | undefined;
|
|
46
53
|
autoSave?: string | undefined;
|
|
54
|
+
color?: string | undefined;
|
|
47
55
|
itemProp?: string | undefined;
|
|
48
56
|
itemScope?: boolean | undefined;
|
|
49
57
|
itemType?: string | undefined;
|
|
@@ -55,20 +63,21 @@ export declare const Picker: import("react").ComponentType<Partial<{
|
|
|
55
63
|
is?: string | undefined;
|
|
56
64
|
'aria-atomic'?: (boolean | "true" | "false") | undefined;
|
|
57
65
|
'aria-autocomplete'?: "none" | "inline" | "list" | "both" | undefined;
|
|
66
|
+
'aria-braillelabel'?: string | undefined;
|
|
67
|
+
'aria-brailleroledescription'?: string | undefined;
|
|
58
68
|
'aria-busy'?: (boolean | "true" | "false") | undefined;
|
|
59
69
|
'aria-colcount'?: number | undefined;
|
|
60
70
|
'aria-colindex'?: number | undefined;
|
|
71
|
+
'aria-colindextext'?: string | undefined;
|
|
61
72
|
'aria-colspan'?: number | undefined;
|
|
62
73
|
'aria-controls'?: string | undefined;
|
|
63
74
|
'aria-current'?: boolean | "time" | "true" | "false" | "page" | "step" | "location" | "date" | undefined;
|
|
75
|
+
'aria-description'?: string | undefined;
|
|
64
76
|
'aria-details'?: string | undefined;
|
|
65
77
|
'aria-dropeffect'?: "link" | "copy" | "none" | "execute" | "move" | "popup" | undefined;
|
|
66
78
|
'aria-errormessage'?: string | undefined;
|
|
67
|
-
'aria-expanded'?: (boolean | "true" | "false") | undefined;
|
|
68
79
|
'aria-flowto'?: string | undefined;
|
|
69
80
|
'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
81
|
'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
|
|
73
82
|
'aria-keyshortcuts'?: string | undefined;
|
|
74
83
|
'aria-level'?: number | undefined;
|
|
@@ -87,6 +96,7 @@ export declare const Picker: import("react").ComponentType<Partial<{
|
|
|
87
96
|
'aria-roledescription'?: string | undefined;
|
|
88
97
|
'aria-rowcount'?: number | undefined;
|
|
89
98
|
'aria-rowindex'?: number | undefined;
|
|
99
|
+
'aria-rowindextext'?: string | undefined;
|
|
90
100
|
'aria-rowspan'?: number | undefined;
|
|
91
101
|
'aria-setsize'?: number | undefined;
|
|
92
102
|
'aria-sort'?: "none" | "ascending" | "descending" | "other" | undefined;
|
|
@@ -95,7 +105,7 @@ export declare const Picker: import("react").ComponentType<Partial<{
|
|
|
95
105
|
'aria-valuenow'?: number | undefined;
|
|
96
106
|
'aria-valuetext'?: string | undefined;
|
|
97
107
|
dangerouslySetInnerHTML?: {
|
|
98
|
-
__html: string;
|
|
108
|
+
__html: string | TrustedHTML;
|
|
99
109
|
} | undefined;
|
|
100
110
|
onCopy?: import("react").ClipboardEventHandler<import("picker/src").Picker> | undefined;
|
|
101
111
|
onCopyCapture?: import("react").ClipboardEventHandler<import("picker/src").Picker> | undefined;
|
|
@@ -279,34 +289,13 @@ export declare const Picker: import("react").ComponentType<Partial<{
|
|
|
279
289
|
disabled: boolean;
|
|
280
290
|
autofocus: boolean;
|
|
281
291
|
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
|
-
readonly target: HTMLButtonElement | import("picker/src").Picker;
|
|
292
|
-
open: boolean;
|
|
293
|
-
readonly assignedSlot: HTMLSlotElement | null;
|
|
294
|
-
placement: import("@floating-ui/core").Placement;
|
|
295
|
-
shadowRoot: ShadowRoot;
|
|
296
|
-
readonly parentElement: HTMLElement | null;
|
|
297
|
-
readonly renderOptions: import("lit-html").RenderOptions;
|
|
298
|
-
ariaHidden: string | null;
|
|
299
|
-
readonly childNodes: NodeListOf<ChildNode>;
|
|
300
|
-
focused: boolean;
|
|
301
|
-
value: string;
|
|
302
|
-
readonly focusElement: HTMLElement;
|
|
303
|
-
connectedCallback: () => void;
|
|
304
|
-
disconnectedCallback: () => void;
|
|
305
292
|
readonly renderRoot: HTMLElement | ShadowRoot;
|
|
306
293
|
isUpdatePending: boolean;
|
|
307
294
|
hasUpdated: boolean;
|
|
308
295
|
addController: (controller: import("lit").ReactiveController) => void;
|
|
309
296
|
removeController: (controller: import("lit").ReactiveController) => void;
|
|
297
|
+
connectedCallback: () => void;
|
|
298
|
+
disconnectedCallback: () => void;
|
|
310
299
|
attributeChangedCallback: (name: string, _old: string | null, value: string | null) => void;
|
|
311
300
|
requestUpdate: (name?: PropertyKey | undefined, oldValue?: unknown, options?: import("lit").PropertyDeclaration<unknown, unknown> | undefined) => void;
|
|
312
301
|
readonly updateComplete: Promise<boolean>;
|
|
@@ -322,6 +311,14 @@ export declare const Picker: import("react").ComponentType<Partial<{
|
|
|
322
311
|
outerText: string;
|
|
323
312
|
spellcheck: boolean;
|
|
324
313
|
attachInternals: () => ElementInternals;
|
|
314
|
+
addEventListener: {
|
|
315
|
+
<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
316
|
+
(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
317
|
+
};
|
|
318
|
+
removeEventListener: {
|
|
319
|
+
<K_1 extends keyof HTMLElementEventMap>(type: K_1, listener: (this: HTMLElement, ev: HTMLElementEventMap[K_1]) => any, options?: boolean | EventListenerOptions | undefined): void;
|
|
320
|
+
(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions | undefined): void;
|
|
321
|
+
};
|
|
325
322
|
readonly classList: DOMTokenList;
|
|
326
323
|
readonly clientHeight: number;
|
|
327
324
|
readonly clientLeft: number;
|
|
@@ -337,6 +334,7 @@ export declare const Picker: import("react").ComponentType<Partial<{
|
|
|
337
334
|
scrollLeft: number;
|
|
338
335
|
scrollTop: number;
|
|
339
336
|
readonly scrollWidth: number;
|
|
337
|
+
shadowRoot: ShadowRoot;
|
|
340
338
|
readonly tagName: string;
|
|
341
339
|
attachShadow: (init: ShadowRootInit) => ShadowRoot;
|
|
342
340
|
closest: {
|
|
@@ -393,6 +391,7 @@ export declare const Picker: import("react").ComponentType<Partial<{
|
|
|
393
391
|
toggleAttribute: (qualifiedName: string, force?: boolean | undefined) => boolean;
|
|
394
392
|
webkitMatchesSelector: (selectors: string) => boolean;
|
|
395
393
|
readonly baseURI: string;
|
|
394
|
+
readonly childNodes: NodeListOf<ChildNode>;
|
|
396
395
|
readonly firstChild: ChildNode | null;
|
|
397
396
|
readonly isConnected: boolean;
|
|
398
397
|
readonly lastChild: ChildNode | null;
|
|
@@ -400,6 +399,7 @@ export declare const Picker: import("react").ComponentType<Partial<{
|
|
|
400
399
|
readonly nodeName: string;
|
|
401
400
|
readonly nodeType: number;
|
|
402
401
|
nodeValue: string | null;
|
|
402
|
+
readonly parentElement: HTMLElement | null;
|
|
403
403
|
readonly parentNode: ParentNode | null;
|
|
404
404
|
readonly previousSibling: ChildNode | null;
|
|
405
405
|
textContent: string | null;
|
|
@@ -435,6 +435,7 @@ export declare const Picker: import("react").ComponentType<Partial<{
|
|
|
435
435
|
readonly NOTATION_NODE: number;
|
|
436
436
|
readonly PROCESSING_INSTRUCTION_NODE: number;
|
|
437
437
|
readonly TEXT_NODE: number;
|
|
438
|
+
dispatchEvent: (event: Event) => boolean;
|
|
438
439
|
ariaAtomic: string | null;
|
|
439
440
|
ariaAutoComplete: string | null;
|
|
440
441
|
ariaBusy: string | null;
|
|
@@ -446,6 +447,7 @@ export declare const Picker: import("react").ComponentType<Partial<{
|
|
|
446
447
|
ariaDisabled: string | null;
|
|
447
448
|
ariaExpanded: string | null;
|
|
448
449
|
ariaHasPopup: string | null;
|
|
450
|
+
ariaHidden: string | null;
|
|
449
451
|
ariaKeyShortcuts: string | null;
|
|
450
452
|
ariaLabel: string | null;
|
|
451
453
|
ariaLevel: string | null;
|
|
@@ -494,6 +496,7 @@ export declare const Picker: import("react").ComponentType<Partial<{
|
|
|
494
496
|
<E_2 extends Element = Element>(selectors: string): NodeListOf<E_2>;
|
|
495
497
|
};
|
|
496
498
|
replaceChildren: (...nodes: (string | Node)[]) => void;
|
|
499
|
+
readonly assignedSlot: HTMLSlotElement | null;
|
|
497
500
|
oncopy: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
498
501
|
oncut: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
499
502
|
onpaste: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
@@ -589,23 +592,25 @@ export declare const Picker: import("react").ComponentType<Partial<{
|
|
|
589
592
|
onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
590
593
|
onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
|
|
591
594
|
readonly dataset: DOMStringMap;
|
|
595
|
+
placement: import("@floating-ui/utils").Placement;
|
|
596
|
+
open: boolean;
|
|
597
|
+
readonly renderOptions: import("lit-html").RenderOptions;
|
|
598
|
+
focused: boolean;
|
|
599
|
+
value: string;
|
|
600
|
+
readonly focusElement: HTMLElement;
|
|
592
601
|
isLTR: boolean;
|
|
593
602
|
hasVisibleFocusInTree: () => boolean;
|
|
594
603
|
selects: "single" | undefined;
|
|
595
604
|
appliedLabel?: string | undefined;
|
|
596
605
|
icons?: "none" | "only" | undefined;
|
|
597
606
|
readonly: boolean;
|
|
598
|
-
optionsMenu: import("menu/src").Menu;
|
|
599
607
|
quiet: boolean;
|
|
600
608
|
selectedItem: import("menu/src").MenuItem | undefined;
|
|
601
|
-
readonly menuItems: import("menu/src").MenuItem[];
|
|
602
609
|
_selectedItem?: import("menu/src").MenuItem | undefined;
|
|
603
610
|
forceFocusVisible: () => void;
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
onButtonFocus: () => void;
|
|
611
|
+
handleButtonBlur: () => void;
|
|
612
|
+
handleHelperFocus: () => void;
|
|
607
613
|
handleChange: (event: Event) => void;
|
|
608
|
-
setValueFromItem: (item: import("menu/src").MenuItem, menuChangeEvent?: Event | undefined) => Promise<void>;
|
|
609
614
|
_selectedItemContent?: import("menu/src").MenuItemChildren | undefined;
|
|
610
615
|
applyFocusElementLabel: (value?: string | undefined) => void;
|
|
611
616
|
} & {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@swc-react/picker",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.35.1-rc.15+9b76319e4",
|
|
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.35.1-rc.15+9b76319e4"
|
|
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": "9b76319e4f1cc7cb0dd03e9d9debf544e5bed4e9"
|
|
44
44
|
}
|