@swc-react/picker 0.35.0 → 0.35.1-rc.26
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 +31 -36
- package/package.json +3 -3
package/next.d.ts
CHANGED
|
@@ -8,30 +8,26 @@ export declare const Picker: import("react").ComponentType<Partial<{
|
|
|
8
8
|
tabIndex?: number | undefined;
|
|
9
9
|
'aria-disabled'?: (boolean | "true" | "false") | undefined;
|
|
10
10
|
'aria-hidden'?: (boolean | "true" | "false") | undefined;
|
|
11
|
-
hidden?: boolean | undefined;
|
|
12
|
-
rel?: string | undefined;
|
|
13
|
-
id?: string | undefined;
|
|
14
|
-
className?: string | undefined;
|
|
15
|
-
color?: string | undefined;
|
|
16
|
-
lang?: string | undefined;
|
|
17
|
-
'aria-modal'?: (boolean | "true" | "false") | undefined;
|
|
18
11
|
accessKey?: string | undefined;
|
|
19
|
-
role?: import("react").AriaRole | undefined;
|
|
20
|
-
'aria-label'?: string | undefined;
|
|
21
|
-
'aria-haspopup'?: boolean | "dialog" | "menu" | "true" | "false" | "listbox" | "grid" | "tree" | undefined;
|
|
22
|
-
'aria-expanded'?: (boolean | "true" | "false") | undefined;
|
|
23
|
-
'aria-pressed'?: boolean | "true" | "false" | "mixed" | undefined;
|
|
24
12
|
draggable?: (boolean | "true" | "false") | undefined;
|
|
13
|
+
hidden?: boolean | undefined;
|
|
14
|
+
lang?: string | undefined;
|
|
25
15
|
translate?: "yes" | "no" | undefined;
|
|
16
|
+
className?: string | undefined;
|
|
17
|
+
id?: string | undefined;
|
|
26
18
|
prefix?: string | undefined;
|
|
27
19
|
children?: import("react").ReactNode;
|
|
28
20
|
contentEditable?: "inherit" | (boolean | "true" | "false") | undefined;
|
|
29
21
|
inputMode?: "text" | "search" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
30
22
|
nonce?: string | undefined;
|
|
31
23
|
'aria-describedby'?: string | undefined;
|
|
32
|
-
|
|
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;
|
|
33
28
|
'aria-selected'?: (boolean | "true" | "false") | undefined;
|
|
34
29
|
'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
|
|
30
|
+
'aria-label'?: string | undefined;
|
|
35
31
|
'aria-activedescendant'?: string | undefined;
|
|
36
32
|
'aria-labelledby'?: string | undefined;
|
|
37
33
|
placeholder?: string | undefined;
|
|
@@ -55,6 +51,7 @@ export declare const Picker: import("react").ComponentType<Partial<{
|
|
|
55
51
|
autoCapitalize?: string | undefined;
|
|
56
52
|
autoCorrect?: string | undefined;
|
|
57
53
|
autoSave?: string | undefined;
|
|
54
|
+
color?: string | undefined;
|
|
58
55
|
itemProp?: string | undefined;
|
|
59
56
|
itemScope?: boolean | undefined;
|
|
60
57
|
itemType?: string | undefined;
|
|
@@ -73,6 +70,7 @@ export declare const Picker: import("react").ComponentType<Partial<{
|
|
|
73
70
|
'aria-colindex'?: number | undefined;
|
|
74
71
|
'aria-colindextext'?: string | undefined;
|
|
75
72
|
'aria-colspan'?: number | undefined;
|
|
73
|
+
'aria-controls'?: string | undefined;
|
|
76
74
|
'aria-current'?: boolean | "time" | "true" | "false" | "page" | "step" | "location" | "date" | undefined;
|
|
77
75
|
'aria-description'?: string | undefined;
|
|
78
76
|
'aria-details'?: string | undefined;
|
|
@@ -84,12 +82,14 @@ export declare const Picker: import("react").ComponentType<Partial<{
|
|
|
84
82
|
'aria-keyshortcuts'?: string | undefined;
|
|
85
83
|
'aria-level'?: number | undefined;
|
|
86
84
|
'aria-live'?: "off" | "assertive" | "polite" | undefined;
|
|
85
|
+
'aria-modal'?: (boolean | "true" | "false") | undefined;
|
|
87
86
|
'aria-multiline'?: (boolean | "true" | "false") | undefined;
|
|
88
87
|
'aria-multiselectable'?: (boolean | "true" | "false") | undefined;
|
|
89
88
|
'aria-orientation'?: "horizontal" | "vertical" | undefined;
|
|
90
89
|
'aria-owns'?: string | undefined;
|
|
91
90
|
'aria-placeholder'?: string | undefined;
|
|
92
91
|
'aria-posinset'?: number | undefined;
|
|
92
|
+
'aria-pressed'?: boolean | "true" | "false" | "mixed" | undefined;
|
|
93
93
|
'aria-readonly'?: (boolean | "true" | "false") | undefined;
|
|
94
94
|
'aria-relevant'?: "text" | "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
|
|
95
95
|
'aria-required'?: (boolean | "true" | "false") | undefined;
|
|
@@ -289,24 +289,13 @@ export declare const Picker: import("react").ComponentType<Partial<{
|
|
|
289
289
|
disabled: boolean;
|
|
290
290
|
autofocus: boolean;
|
|
291
291
|
normalize: () => void;
|
|
292
|
-
readonly target: HTMLButtonElement | import("picker/src").Picker;
|
|
293
|
-
ariaHidden: string | null;
|
|
294
|
-
shadowRoot: ShadowRoot;
|
|
295
|
-
open: boolean;
|
|
296
|
-
readonly renderOptions: import("lit-html").RenderOptions;
|
|
297
|
-
placement: import("overlay/src").Placement;
|
|
298
|
-
overlayOpenCallback: () => Promise<void>;
|
|
299
|
-
remove: () => void;
|
|
300
|
-
readonly childNodes: NodeListOf<ChildNode>;
|
|
301
|
-
quiet: boolean;
|
|
302
|
-
value: string;
|
|
303
|
-
disconnectedCallback: () => void;
|
|
304
|
-
connectedCallback: () => 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>;
|
|
@@ -345,6 +334,7 @@ export declare const Picker: import("react").ComponentType<Partial<{
|
|
|
345
334
|
scrollLeft: number;
|
|
346
335
|
scrollTop: number;
|
|
347
336
|
readonly scrollWidth: number;
|
|
337
|
+
shadowRoot: ShadowRoot;
|
|
348
338
|
readonly tagName: string;
|
|
349
339
|
attachShadow: (init: ShadowRootInit) => ShadowRoot;
|
|
350
340
|
closest: {
|
|
@@ -401,6 +391,7 @@ export declare const Picker: import("react").ComponentType<Partial<{
|
|
|
401
391
|
toggleAttribute: (qualifiedName: string, force?: boolean | undefined) => boolean;
|
|
402
392
|
webkitMatchesSelector: (selectors: string) => boolean;
|
|
403
393
|
readonly baseURI: string;
|
|
394
|
+
readonly childNodes: NodeListOf<ChildNode>;
|
|
404
395
|
readonly firstChild: ChildNode | null;
|
|
405
396
|
readonly isConnected: boolean;
|
|
406
397
|
readonly lastChild: ChildNode | null;
|
|
@@ -456,6 +447,7 @@ export declare const Picker: import("react").ComponentType<Partial<{
|
|
|
456
447
|
ariaDisabled: string | null;
|
|
457
448
|
ariaExpanded: string | null;
|
|
458
449
|
ariaHasPopup: string | null;
|
|
450
|
+
ariaHidden: string | null;
|
|
459
451
|
ariaKeyShortcuts: string | null;
|
|
460
452
|
ariaLabel: string | null;
|
|
461
453
|
ariaLevel: string | null;
|
|
@@ -483,6 +475,7 @@ export declare const Picker: import("react").ComponentType<Partial<{
|
|
|
483
475
|
getAnimations: (options?: GetAnimationsOptions | undefined) => Animation[];
|
|
484
476
|
after: (...nodes: (string | Node)[]) => void;
|
|
485
477
|
before: (...nodes: (string | Node)[]) => void;
|
|
478
|
+
remove: () => void;
|
|
486
479
|
replaceWith: (...nodes: (string | Node)[]) => void;
|
|
487
480
|
innerHTML: string;
|
|
488
481
|
readonly nextElementSibling: Element | null;
|
|
@@ -599,24 +592,26 @@ export declare const Picker: import("react").ComponentType<Partial<{
|
|
|
599
592
|
onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
600
593
|
onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
|
|
601
594
|
readonly dataset: DOMStringMap;
|
|
602
|
-
|
|
603
|
-
|
|
595
|
+
placement: import("@floating-ui/utils").Placement;
|
|
596
|
+
open: boolean;
|
|
597
|
+
readonly renderOptions: import("lit-html").RenderOptions;
|
|
604
598
|
focused: boolean;
|
|
599
|
+
value: string;
|
|
605
600
|
readonly focusElement: HTMLElement;
|
|
601
|
+
isLTR: boolean;
|
|
602
|
+
hasVisibleFocusInTree: () => boolean;
|
|
606
603
|
selects: "single" | undefined;
|
|
607
604
|
appliedLabel?: string | undefined;
|
|
608
605
|
icons?: "none" | "only" | undefined;
|
|
609
606
|
readonly: boolean;
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
607
|
+
quiet: boolean;
|
|
608
|
+
selectedItem: import("menu/src").MenuItem | undefined;
|
|
609
|
+
_selectedItem?: import("menu/src").MenuItem | undefined;
|
|
613
610
|
forceFocusVisible: () => void;
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
onButtonFocus: () => void;
|
|
611
|
+
handleButtonBlur: () => void;
|
|
612
|
+
handleHelperFocus: () => void;
|
|
617
613
|
handleChange: (event: Event) => void;
|
|
618
|
-
|
|
619
|
-
overlayCloseCallback: () => Promise<void>;
|
|
614
|
+
_selectedItemContent?: import("menu/src").MenuItemChildren | undefined;
|
|
620
615
|
applyFocusElementLabel: (value?: string | undefined) => void;
|
|
621
616
|
} & {
|
|
622
617
|
change: (e: Event) => void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@swc-react/picker",
|
|
3
|
-
"version": "0.35.
|
|
3
|
+
"version": "0.35.1-rc.26+05bd08374",
|
|
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.35.
|
|
33
|
+
"@spectrum-web-components/picker": "^0.35.1-rc.26+05bd08374"
|
|
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": "05bd0837417e287acdf2685d1ca05ab4d138fc95"
|
|
44
44
|
}
|