@swc-react/help-text 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 +40 -30
- package/package.json +3 -3
package/next.d.ts
CHANGED
|
@@ -1,34 +1,42 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react" />
|
|
2
3
|
export declare const HelpText: 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;
|
|
11
|
+
translate?: "yes" | "no" | undefined;
|
|
12
|
+
className?: string | undefined;
|
|
13
|
+
id?: string | undefined;
|
|
14
|
+
prefix?: string | undefined;
|
|
15
|
+
slot?: string | undefined;
|
|
16
|
+
children?: import("react").ReactNode;
|
|
17
|
+
style?: import("react").CSSProperties | undefined;
|
|
18
|
+
contentEditable?: (boolean | "true" | "false") | "inherit" | undefined;
|
|
19
|
+
inputMode?: "search" | "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
20
|
+
nonce?: string | undefined;
|
|
21
|
+
tabIndex?: number | undefined;
|
|
6
22
|
defaultChecked?: boolean | undefined;
|
|
7
23
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
8
24
|
suppressContentEditableWarning?: boolean | undefined;
|
|
9
25
|
suppressHydrationWarning?: boolean | undefined;
|
|
10
|
-
|
|
11
|
-
className?: string | undefined;
|
|
12
|
-
contentEditable?: (boolean | "true" | "false") | "inherit" | undefined;
|
|
26
|
+
autoFocus?: boolean | undefined;
|
|
13
27
|
contextMenu?: string | undefined;
|
|
14
|
-
draggable?: (boolean | "true" | "false") | undefined;
|
|
15
|
-
id?: string | undefined;
|
|
16
|
-
lang?: string | undefined;
|
|
17
|
-
nonce?: string | undefined;
|
|
18
28
|
placeholder?: string | undefined;
|
|
19
|
-
slot?: string | undefined;
|
|
20
29
|
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
21
|
-
style?: import("react").CSSProperties | undefined;
|
|
22
|
-
tabIndex?: number | undefined;
|
|
23
|
-
translate?: "yes" | "no" | undefined;
|
|
24
30
|
radioGroup?: string | undefined;
|
|
25
31
|
role?: import("react").AriaRole | undefined;
|
|
26
32
|
about?: string | undefined;
|
|
33
|
+
content?: string | undefined;
|
|
27
34
|
datatype?: string | undefined;
|
|
28
35
|
inlist?: any;
|
|
29
|
-
prefix?: string | undefined;
|
|
30
36
|
property?: string | undefined;
|
|
37
|
+
rel?: string | undefined;
|
|
31
38
|
resource?: string | undefined;
|
|
39
|
+
rev?: string | undefined;
|
|
32
40
|
typeof?: string | undefined;
|
|
33
41
|
vocab?: string | undefined;
|
|
34
42
|
autoCapitalize?: string | undefined;
|
|
@@ -43,28 +51,30 @@ export declare const HelpText: import("react").ComponentType<Partial<{
|
|
|
43
51
|
results?: number | undefined;
|
|
44
52
|
security?: string | undefined;
|
|
45
53
|
unselectable?: "on" | "off" | undefined;
|
|
46
|
-
inputMode?: "none" | "text" | "search" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
47
54
|
is?: string | undefined;
|
|
48
55
|
'aria-activedescendant'?: string | undefined;
|
|
49
56
|
'aria-atomic'?: (boolean | "true" | "false") | undefined;
|
|
50
57
|
'aria-autocomplete'?: "none" | "list" | "inline" | "both" | undefined;
|
|
58
|
+
'aria-braillelabel'?: string | undefined;
|
|
59
|
+
'aria-brailleroledescription'?: string | undefined;
|
|
51
60
|
'aria-busy'?: (boolean | "true" | "false") | undefined;
|
|
52
61
|
'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
|
|
53
62
|
'aria-colcount'?: number | undefined;
|
|
54
63
|
'aria-colindex'?: number | undefined;
|
|
64
|
+
'aria-colindextext'?: string | undefined;
|
|
55
65
|
'aria-colspan'?: number | undefined;
|
|
56
66
|
'aria-controls'?: string | undefined;
|
|
57
67
|
'aria-current'?: boolean | "true" | "false" | "time" | "page" | "step" | "location" | "date" | undefined;
|
|
58
68
|
'aria-describedby'?: string | undefined;
|
|
69
|
+
'aria-description'?: string | undefined;
|
|
59
70
|
'aria-details'?: string | undefined;
|
|
60
71
|
'aria-disabled'?: (boolean | "true" | "false") | 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 HelpText: 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 HelpText: 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("help-text/src").HelpText> | undefined;
|
|
101
111
|
onCopyCapture?: import("react").ClipboardEventHandler<import("help-text/src").HelpText> | undefined;
|
|
@@ -263,6 +273,7 @@ export declare const HelpText: import("react").ComponentType<Partial<{
|
|
|
263
273
|
readonly attributes: NamedNodeMap;
|
|
264
274
|
readonly localName: string;
|
|
265
275
|
size: import("@spectrum-web-components/base").ElementSize;
|
|
276
|
+
normalize: () => void;
|
|
266
277
|
blur: () => void;
|
|
267
278
|
click: () => void;
|
|
268
279
|
focus: (options?: FocusOptions | undefined) => void;
|
|
@@ -270,8 +281,16 @@ export declare const HelpText: import("react").ComponentType<Partial<{
|
|
|
270
281
|
(options?: ScrollToOptions | undefined): void;
|
|
271
282
|
(x: number, y: number): void;
|
|
272
283
|
};
|
|
273
|
-
|
|
274
|
-
|
|
284
|
+
readonly renderRoot: HTMLElement | ShadowRoot;
|
|
285
|
+
isUpdatePending: boolean;
|
|
286
|
+
hasUpdated: boolean;
|
|
287
|
+
addController: (controller: import("lit").ReactiveController) => void;
|
|
288
|
+
removeController: (controller: import("lit").ReactiveController) => void;
|
|
289
|
+
connectedCallback: () => void;
|
|
290
|
+
disconnectedCallback: () => void;
|
|
291
|
+
attributeChangedCallback: (name: string, _old: string | null, value: string | null) => void;
|
|
292
|
+
requestUpdate: (name?: PropertyKey | undefined, oldValue?: unknown, options?: import("lit").PropertyDeclaration<unknown, unknown> | undefined) => void;
|
|
293
|
+
readonly updateComplete: Promise<boolean>;
|
|
275
294
|
readonly accessKeyLabel: string;
|
|
276
295
|
autocapitalize: string;
|
|
277
296
|
inert: boolean;
|
|
@@ -388,7 +407,6 @@ export declare const HelpText: import("react").ComponentType<Partial<{
|
|
|
388
407
|
isSameNode: (otherNode: Node | null) => boolean;
|
|
389
408
|
lookupNamespaceURI: (prefix: string | null) => string | null;
|
|
390
409
|
lookupPrefix: (namespace: string | null) => string | null;
|
|
391
|
-
normalize: () => void;
|
|
392
410
|
removeChild: <T_2 extends Node>(child: T_2) => T_2;
|
|
393
411
|
replaceChild: <T_3 extends Node>(node: Node, child: T_3) => T_3;
|
|
394
412
|
readonly ATTRIBUTE_NODE: number;
|
|
@@ -568,17 +586,9 @@ export declare const HelpText: import("react").ComponentType<Partial<{
|
|
|
568
586
|
onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
|
|
569
587
|
autofocus: boolean;
|
|
570
588
|
readonly dataset: DOMStringMap;
|
|
589
|
+
icon: boolean;
|
|
590
|
+
variant: "neutral" | "negative";
|
|
571
591
|
readonly renderOptions: import("lit-html").RenderOptions;
|
|
572
|
-
connectedCallback: () => void;
|
|
573
|
-
disconnectedCallback: () => void;
|
|
574
|
-
readonly renderRoot: HTMLElement | ShadowRoot;
|
|
575
|
-
isUpdatePending: boolean;
|
|
576
|
-
hasUpdated: boolean;
|
|
577
|
-
addController: (controller: import("lit").ReactiveController) => void;
|
|
578
|
-
removeController: (controller: import("lit").ReactiveController) => void;
|
|
579
|
-
attributeChangedCallback: (name: string, _old: string | null, value: string | null) => void;
|
|
580
|
-
requestUpdate: (name?: PropertyKey | undefined, oldValue?: unknown, options?: import("lit").PropertyDeclaration<unknown, unknown> | undefined) => void;
|
|
581
|
-
readonly updateComplete: Promise<boolean>;
|
|
582
592
|
isLTR: boolean;
|
|
583
593
|
hasVisibleFocusInTree: () => boolean;
|
|
584
594
|
} & {}> & import("react").RefAttributes<import("help-text/src").HelpText>>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@swc-react/help-text",
|
|
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/help-text": "^0.
|
|
33
|
+
"@spectrum-web-components/help-text": "^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
|
}
|