@swc-react/textfield 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 +53 -42
- package/package.json +3 -3
package/next.d.ts
CHANGED
|
@@ -1,36 +1,44 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react" />
|
|
2
3
|
export declare const Textfield: import("react").ComponentType<Partial<{
|
|
3
4
|
dir?: string | undefined;
|
|
5
|
+
'aria-hidden'?: (boolean | "true" | "false") | undefined;
|
|
6
|
+
accessKey?: string | undefined;
|
|
7
|
+
draggable?: (boolean | "true" | "false") | undefined;
|
|
4
8
|
hidden?: boolean | undefined;
|
|
9
|
+
lang?: string | undefined;
|
|
5
10
|
title?: string | undefined;
|
|
6
|
-
|
|
11
|
+
translate?: "yes" | "no" | undefined;
|
|
12
|
+
className?: string | undefined;
|
|
7
13
|
id?: string | undefined;
|
|
14
|
+
prefix?: string | undefined;
|
|
8
15
|
slot?: string | undefined;
|
|
16
|
+
children?: import("react").ReactNode;
|
|
9
17
|
style?: import("react").CSSProperties | undefined;
|
|
18
|
+
contentEditable?: (boolean | "true" | "false") | "inherit" | undefined;
|
|
19
|
+
inputMode?: "search" | "none" | "text" | "url" | "tel" | "email" | "numeric" | "decimal" | undefined;
|
|
20
|
+
nonce?: string | undefined;
|
|
10
21
|
tabIndex?: number | undefined;
|
|
22
|
+
'aria-describedby'?: string | undefined;
|
|
11
23
|
'aria-disabled'?: (boolean | "true" | "false") | undefined;
|
|
12
24
|
placeholder?: string | undefined;
|
|
13
25
|
defaultChecked?: boolean | undefined;
|
|
14
26
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
15
27
|
suppressContentEditableWarning?: boolean | undefined;
|
|
16
28
|
suppressHydrationWarning?: boolean | undefined;
|
|
17
|
-
|
|
18
|
-
className?: string | undefined;
|
|
19
|
-
contentEditable?: (boolean | "true" | "false") | "inherit" | undefined;
|
|
29
|
+
autoFocus?: boolean | undefined;
|
|
20
30
|
contextMenu?: string | undefined;
|
|
21
|
-
draggable?: (boolean | "true" | "false") | undefined;
|
|
22
|
-
lang?: string | undefined;
|
|
23
|
-
nonce?: string | undefined;
|
|
24
31
|
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
25
|
-
translate?: "yes" | "no" | undefined;
|
|
26
32
|
radioGroup?: string | undefined;
|
|
27
33
|
role?: import("react").AriaRole | undefined;
|
|
28
34
|
about?: string | undefined;
|
|
35
|
+
content?: string | undefined;
|
|
29
36
|
datatype?: string | undefined;
|
|
30
37
|
inlist?: any;
|
|
31
|
-
prefix?: string | undefined;
|
|
32
38
|
property?: string | undefined;
|
|
39
|
+
rel?: string | undefined;
|
|
33
40
|
resource?: string | undefined;
|
|
41
|
+
rev?: string | undefined;
|
|
34
42
|
typeof?: string | undefined;
|
|
35
43
|
vocab?: string | undefined;
|
|
36
44
|
autoCapitalize?: string | undefined;
|
|
@@ -45,26 +53,28 @@ export declare const Textfield: import("react").ComponentType<Partial<{
|
|
|
45
53
|
results?: number | undefined;
|
|
46
54
|
security?: string | undefined;
|
|
47
55
|
unselectable?: "on" | "off" | undefined;
|
|
48
|
-
inputMode?: "none" | "text" | "search" | "url" | "tel" | "email" | "numeric" | "decimal" | undefined;
|
|
49
56
|
is?: string | undefined;
|
|
50
57
|
'aria-activedescendant'?: string | undefined;
|
|
51
58
|
'aria-atomic'?: (boolean | "true" | "false") | undefined;
|
|
52
59
|
'aria-autocomplete'?: "none" | "list" | "inline" | "both" | undefined;
|
|
60
|
+
'aria-braillelabel'?: string | undefined;
|
|
61
|
+
'aria-brailleroledescription'?: string | undefined;
|
|
53
62
|
'aria-busy'?: (boolean | "true" | "false") | undefined;
|
|
54
63
|
'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
|
|
55
64
|
'aria-colcount'?: number | undefined;
|
|
56
65
|
'aria-colindex'?: number | undefined;
|
|
66
|
+
'aria-colindextext'?: string | undefined;
|
|
57
67
|
'aria-colspan'?: number | undefined;
|
|
58
68
|
'aria-controls'?: string | undefined;
|
|
59
69
|
'aria-current'?: boolean | "true" | "false" | "time" | "page" | "step" | "location" | "date" | undefined;
|
|
70
|
+
'aria-description'?: string | undefined;
|
|
60
71
|
'aria-details'?: string | undefined;
|
|
61
|
-
'aria-dropeffect'?: "
|
|
72
|
+
'aria-dropeffect'?: "link" | "none" | "copy" | "execute" | "move" | "popup" | undefined;
|
|
62
73
|
'aria-errormessage'?: string | undefined;
|
|
63
74
|
'aria-expanded'?: (boolean | "true" | "false") | undefined;
|
|
64
75
|
'aria-flowto'?: string | undefined;
|
|
65
76
|
'aria-grabbed'?: (boolean | "true" | "false") | undefined;
|
|
66
77
|
'aria-haspopup'?: boolean | "true" | "false" | "dialog" | "menu" | "grid" | "listbox" | "tree" | undefined;
|
|
67
|
-
'aria-hidden'?: (boolean | "true" | "false") | undefined;
|
|
68
78
|
'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
|
|
69
79
|
'aria-keyshortcuts'?: string | undefined;
|
|
70
80
|
'aria-label'?: string | undefined;
|
|
@@ -85,6 +95,7 @@ export declare const Textfield: import("react").ComponentType<Partial<{
|
|
|
85
95
|
'aria-roledescription'?: string | undefined;
|
|
86
96
|
'aria-rowcount'?: number | undefined;
|
|
87
97
|
'aria-rowindex'?: number | undefined;
|
|
98
|
+
'aria-rowindextext'?: string | undefined;
|
|
88
99
|
'aria-rowspan'?: number | undefined;
|
|
89
100
|
'aria-selected'?: (boolean | "true" | "false") | undefined;
|
|
90
101
|
'aria-setsize'?: number | undefined;
|
|
@@ -93,9 +104,8 @@ export declare const Textfield: import("react").ComponentType<Partial<{
|
|
|
93
104
|
'aria-valuemin'?: number | undefined;
|
|
94
105
|
'aria-valuenow'?: number | undefined;
|
|
95
106
|
'aria-valuetext'?: string | undefined;
|
|
96
|
-
children?: import("react").ReactNode;
|
|
97
107
|
dangerouslySetInnerHTML?: {
|
|
98
|
-
__html: string;
|
|
108
|
+
__html: string | TrustedHTML;
|
|
99
109
|
} | undefined;
|
|
100
110
|
onCopy?: import("react").ClipboardEventHandler<import("textfield/src").Textfield> | undefined;
|
|
101
111
|
onCopyCapture?: import("react").ClipboardEventHandler<import("textfield/src").Textfield> | undefined;
|
|
@@ -265,6 +275,7 @@ export declare const Textfield: import("react").ComponentType<Partial<{
|
|
|
265
275
|
type: "text" | "url" | "tel" | "email" | "password";
|
|
266
276
|
size: import("@spectrum-web-components/base").ElementSize;
|
|
267
277
|
label: string;
|
|
278
|
+
normalize: () => void;
|
|
268
279
|
blur: () => void;
|
|
269
280
|
click: () => void;
|
|
270
281
|
focus: (options?: FocusOptions | undefined) => void;
|
|
@@ -274,24 +285,16 @@ export declare const Textfield: import("react").ComponentType<Partial<{
|
|
|
274
285
|
(x: number, y: number): void;
|
|
275
286
|
};
|
|
276
287
|
select: () => void;
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
minlength: number;
|
|
288
|
-
multiline: boolean;
|
|
289
|
-
readonly: boolean;
|
|
290
|
-
rows: number;
|
|
291
|
-
valid: boolean;
|
|
292
|
-
value: string;
|
|
293
|
-
quiet: boolean;
|
|
294
|
-
required: boolean;
|
|
288
|
+
readonly renderRoot: HTMLElement | ShadowRoot;
|
|
289
|
+
isUpdatePending: boolean;
|
|
290
|
+
hasUpdated: boolean;
|
|
291
|
+
addController: (controller: import("lit").ReactiveController) => void;
|
|
292
|
+
removeController: (controller: import("lit").ReactiveController) => void;
|
|
293
|
+
connectedCallback: () => void;
|
|
294
|
+
disconnectedCallback: () => void;
|
|
295
|
+
attributeChangedCallback: (name: string, _old: string | null, value: string | null) => void;
|
|
296
|
+
requestUpdate: (name?: PropertyKey | undefined, oldValue?: unknown, options?: import("lit").PropertyDeclaration<unknown, unknown> | undefined) => void;
|
|
297
|
+
readonly updateComplete: Promise<boolean>;
|
|
295
298
|
readonly accessKeyLabel: string;
|
|
296
299
|
autocapitalize: string;
|
|
297
300
|
inert: boolean;
|
|
@@ -465,6 +468,7 @@ export declare const Textfield: import("react").ComponentType<Partial<{
|
|
|
465
468
|
ariaValueMin: string | null;
|
|
466
469
|
ariaValueNow: string | null;
|
|
467
470
|
ariaValueText: string | null;
|
|
471
|
+
animate: (keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions | undefined) => Animation;
|
|
468
472
|
getAnimations: (options?: GetAnimationsOptions | undefined) => Animation[];
|
|
469
473
|
after: (...nodes: (string | Node)[]) => void;
|
|
470
474
|
before: (...nodes: (string | Node)[]) => void;
|
|
@@ -584,21 +588,28 @@ export declare const Textfield: import("react").ComponentType<Partial<{
|
|
|
584
588
|
onwebkitanimationstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
585
589
|
onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
586
590
|
onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
|
|
591
|
+
autofocus: boolean;
|
|
587
592
|
readonly dataset: DOMStringMap;
|
|
593
|
+
pattern?: string | undefined;
|
|
594
|
+
disabled: boolean;
|
|
595
|
+
autocomplete?: string | undefined;
|
|
596
|
+
appliedLabel?: string | undefined;
|
|
597
|
+
allowedKeys: string;
|
|
598
|
+
focused: boolean;
|
|
599
|
+
grows: boolean;
|
|
600
|
+
maxlength: number;
|
|
601
|
+
minlength: number;
|
|
602
|
+
multiline: boolean;
|
|
603
|
+
readonly: boolean;
|
|
604
|
+
rows: number;
|
|
605
|
+
valid: boolean;
|
|
606
|
+
value: string;
|
|
607
|
+
quiet: boolean;
|
|
608
|
+
required: boolean;
|
|
588
609
|
readonly focusElement: HTMLInputElement | HTMLTextAreaElement;
|
|
589
610
|
setSelectionRange: (selectionStart: number, selectionEnd: number, selectionDirection?: "none" | "forward" | "backward") => void;
|
|
590
611
|
checkValidity: () => boolean;
|
|
591
|
-
connectedCallback: () => void;
|
|
592
612
|
readonly renderOptions: import("lit-html").RenderOptions;
|
|
593
|
-
disconnectedCallback: () => void;
|
|
594
|
-
readonly renderRoot: HTMLElement | ShadowRoot;
|
|
595
|
-
isUpdatePending: boolean;
|
|
596
|
-
hasUpdated: boolean;
|
|
597
|
-
addController: (controller: import("lit").ReactiveController) => void;
|
|
598
|
-
removeController: (controller: import("lit").ReactiveController) => void;
|
|
599
|
-
attributeChangedCallback: (name: string, _old: string | null, value: string | null) => void;
|
|
600
|
-
requestUpdate: (name?: PropertyKey | undefined, oldValue?: unknown, options?: import("lit").PropertyDeclaration<unknown, unknown> | undefined) => void;
|
|
601
|
-
readonly updateComplete: Promise<boolean>;
|
|
602
613
|
isLTR: boolean;
|
|
603
614
|
hasVisibleFocusInTree: () => boolean;
|
|
604
615
|
renderHelpText: (negative?: boolean | undefined) => import("lit-html").TemplateResult<2 | 1>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@swc-react/textfield",
|
|
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/textfield": "^0.
|
|
33
|
+
"@spectrum-web-components/textfield": "^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
|
}
|