@swc-react/switch 0.35.1-rc.26 → 0.36.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 +24 -24
- package/package.json +3 -3
package/next.d.ts
CHANGED
|
@@ -7,33 +7,31 @@ export declare const Switch: import("react").ComponentType<Partial<{
|
|
|
7
7
|
title?: string | undefined;
|
|
8
8
|
tabIndex?: number | undefined;
|
|
9
9
|
'aria-disabled'?: (boolean | "true" | "false") | undefined;
|
|
10
|
-
accessKey?: string | undefined;
|
|
11
|
-
draggable?: (boolean | "true" | "false") | undefined;
|
|
12
|
-
hidden?: boolean | undefined;
|
|
13
|
-
lang?: string | undefined;
|
|
14
|
-
translate?: "yes" | "no" | undefined;
|
|
15
|
-
className?: string | undefined;
|
|
16
|
-
id?: string | undefined;
|
|
17
|
-
prefix?: string | undefined;
|
|
18
|
-
children?: import("react").ReactNode;
|
|
19
|
-
contentEditable?: (boolean | "true" | "false") | "inherit" | undefined;
|
|
20
|
-
inputMode?: "text" | "search" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
21
|
-
nonce?: string | undefined;
|
|
22
10
|
role?: import("react").AriaRole | undefined;
|
|
23
11
|
'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
|
|
24
12
|
defaultChecked?: boolean | undefined;
|
|
25
13
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
26
14
|
suppressContentEditableWarning?: boolean | undefined;
|
|
27
15
|
suppressHydrationWarning?: boolean | undefined;
|
|
16
|
+
accessKey?: string | undefined;
|
|
28
17
|
autoFocus?: boolean | undefined;
|
|
18
|
+
className?: string | undefined;
|
|
19
|
+
contentEditable?: (boolean | "true" | "false") | "inherit" | undefined;
|
|
29
20
|
contextMenu?: string | undefined;
|
|
21
|
+
draggable?: (boolean | "true" | "false") | undefined;
|
|
22
|
+
hidden?: boolean | undefined;
|
|
23
|
+
id?: string | undefined;
|
|
24
|
+
lang?: string | undefined;
|
|
25
|
+
nonce?: string | undefined;
|
|
30
26
|
placeholder?: string | undefined;
|
|
31
27
|
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
28
|
+
translate?: "yes" | "no" | undefined;
|
|
32
29
|
radioGroup?: string | undefined;
|
|
33
30
|
about?: string | undefined;
|
|
34
31
|
content?: string | undefined;
|
|
35
32
|
datatype?: string | undefined;
|
|
36
33
|
inlist?: any;
|
|
34
|
+
prefix?: string | undefined;
|
|
37
35
|
property?: string | undefined;
|
|
38
36
|
rel?: string | undefined;
|
|
39
37
|
resource?: string | undefined;
|
|
@@ -52,10 +50,11 @@ export declare const Switch: import("react").ComponentType<Partial<{
|
|
|
52
50
|
results?: number | undefined;
|
|
53
51
|
security?: string | undefined;
|
|
54
52
|
unselectable?: "on" | "off" | undefined;
|
|
53
|
+
inputMode?: "text" | "search" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
55
54
|
is?: string | undefined;
|
|
56
55
|
'aria-activedescendant'?: string | undefined;
|
|
57
56
|
'aria-atomic'?: (boolean | "true" | "false") | undefined;
|
|
58
|
-
'aria-autocomplete'?: "
|
|
57
|
+
'aria-autocomplete'?: "list" | "none" | "inline" | "both" | undefined;
|
|
59
58
|
'aria-braillelabel'?: string | undefined;
|
|
60
59
|
'aria-brailleroledescription'?: string | undefined;
|
|
61
60
|
'aria-busy'?: (boolean | "true" | "false") | undefined;
|
|
@@ -104,6 +103,7 @@ export declare const Switch: import("react").ComponentType<Partial<{
|
|
|
104
103
|
'aria-valuemin'?: number | undefined;
|
|
105
104
|
'aria-valuenow'?: number | undefined;
|
|
106
105
|
'aria-valuetext'?: string | undefined;
|
|
106
|
+
children?: import("react").ReactNode;
|
|
107
107
|
dangerouslySetInnerHTML?: {
|
|
108
108
|
__html: string | TrustedHTML;
|
|
109
109
|
} | undefined;
|
|
@@ -286,16 +286,7 @@ export declare const Switch: import("react").ComponentType<Partial<{
|
|
|
286
286
|
normalize: () => void;
|
|
287
287
|
checked: boolean;
|
|
288
288
|
readonly: boolean;
|
|
289
|
-
|
|
290
|
-
isUpdatePending: boolean;
|
|
291
|
-
hasUpdated: boolean;
|
|
292
|
-
addController: (controller: import("lit").ReactiveController) => void;
|
|
293
|
-
removeController: (controller: import("lit").ReactiveController) => void;
|
|
294
|
-
connectedCallback: () => void;
|
|
295
|
-
disconnectedCallback: () => void;
|
|
296
|
-
attributeChangedCallback: (name: string, _old: string | null, value: string | null) => void;
|
|
297
|
-
requestUpdate: (name?: PropertyKey | undefined, oldValue?: unknown, options?: import("lit").PropertyDeclaration<unknown, unknown> | undefined) => void;
|
|
298
|
-
readonly updateComplete: Promise<boolean>;
|
|
289
|
+
emphasized: boolean;
|
|
299
290
|
readonly accessKeyLabel: string;
|
|
300
291
|
autocapitalize: string;
|
|
301
292
|
inert: boolean;
|
|
@@ -589,10 +580,19 @@ export declare const Switch: import("react").ComponentType<Partial<{
|
|
|
589
580
|
onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
590
581
|
onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
|
|
591
582
|
readonly dataset: DOMStringMap;
|
|
592
|
-
emphasized: boolean;
|
|
593
583
|
readonly focusElement: HTMLElement;
|
|
594
584
|
handleChange: () => void;
|
|
585
|
+
connectedCallback: () => void;
|
|
595
586
|
readonly renderOptions: import("lit-html").RenderOptions;
|
|
587
|
+
disconnectedCallback: () => void;
|
|
588
|
+
readonly renderRoot: HTMLElement | ShadowRoot;
|
|
589
|
+
isUpdatePending: boolean;
|
|
590
|
+
hasUpdated: boolean;
|
|
591
|
+
addController: (controller: import("lit").ReactiveController) => void;
|
|
592
|
+
removeController: (controller: import("lit").ReactiveController) => void;
|
|
593
|
+
attributeChangedCallback: (name: string, _old: string | null, value: string | null) => void;
|
|
594
|
+
requestUpdate: (name?: PropertyKey | undefined, oldValue?: unknown, options?: import("lit").PropertyDeclaration<unknown, unknown> | undefined) => void;
|
|
595
|
+
readonly updateComplete: Promise<boolean>;
|
|
596
596
|
isLTR: boolean;
|
|
597
597
|
hasVisibleFocusInTree: () => boolean;
|
|
598
598
|
} & {}> & import("react").RefAttributes<import("switch/src").Switch>>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@swc-react/switch",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.36.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/switch": "^0.
|
|
33
|
+
"@spectrum-web-components/switch": "^0.36.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": "a532ff8a410abeefb54d9638a2316ae82570566e"
|
|
44
44
|
}
|