@swc-react/checkbox 0.39.4 → 0.40.1
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 +23 -23
- package/package.json +3 -3
package/next.d.ts
CHANGED
|
@@ -2,23 +2,22 @@
|
|
|
2
2
|
/// <reference types="react" />
|
|
3
3
|
export declare const Checkbox: import("react").ComponentType<Partial<{
|
|
4
4
|
dir?: string | undefined;
|
|
5
|
-
slot?: string | undefined;
|
|
6
|
-
style?: import("react").CSSProperties | undefined;
|
|
7
|
-
title?: string | undefined;
|
|
8
|
-
tabIndex?: number | undefined;
|
|
9
|
-
'aria-disabled'?: (boolean | "true" | "false") | undefined;
|
|
10
5
|
accessKey?: string | undefined;
|
|
11
6
|
draggable?: (boolean | "true" | "false") | undefined;
|
|
12
7
|
hidden?: boolean | undefined;
|
|
13
8
|
lang?: string | undefined;
|
|
9
|
+
title?: string | undefined;
|
|
14
10
|
translate?: "yes" | "no" | undefined;
|
|
15
11
|
className?: string | undefined;
|
|
16
12
|
id?: string | undefined;
|
|
17
13
|
prefix?: string | undefined;
|
|
14
|
+
slot?: string | undefined;
|
|
18
15
|
children?: import("react").ReactNode;
|
|
16
|
+
style?: import("react").CSSProperties | undefined;
|
|
19
17
|
contentEditable?: (boolean | "true" | "false") | "inherit" | undefined;
|
|
20
|
-
inputMode?: "
|
|
18
|
+
inputMode?: "search" | "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
21
19
|
nonce?: string | undefined;
|
|
20
|
+
tabIndex?: number | undefined;
|
|
22
21
|
'aria-hidden'?: (boolean | "true" | "false") | undefined;
|
|
23
22
|
'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
|
|
24
23
|
defaultChecked?: boolean | undefined;
|
|
@@ -66,16 +65,17 @@ export declare const Checkbox: import("react").ComponentType<Partial<{
|
|
|
66
65
|
'aria-colindextext'?: string | undefined;
|
|
67
66
|
'aria-colspan'?: number | undefined;
|
|
68
67
|
'aria-controls'?: string | undefined;
|
|
69
|
-
'aria-current'?: boolean | "
|
|
68
|
+
'aria-current'?: boolean | "true" | "time" | "false" | "page" | "step" | "location" | "date" | undefined;
|
|
70
69
|
'aria-describedby'?: string | undefined;
|
|
71
70
|
'aria-description'?: string | undefined;
|
|
72
71
|
'aria-details'?: string | undefined;
|
|
73
|
-
'aria-
|
|
72
|
+
'aria-disabled'?: (boolean | "true" | "false") | undefined;
|
|
73
|
+
'aria-dropeffect'?: "link" | "none" | "copy" | "execute" | "move" | "popup" | undefined;
|
|
74
74
|
'aria-errormessage'?: string | undefined;
|
|
75
75
|
'aria-expanded'?: (boolean | "true" | "false") | undefined;
|
|
76
76
|
'aria-flowto'?: string | undefined;
|
|
77
77
|
'aria-grabbed'?: (boolean | "true" | "false") | undefined;
|
|
78
|
-
'aria-haspopup'?: boolean | "
|
|
78
|
+
'aria-haspopup'?: boolean | "true" | "dialog" | "menu" | "false" | "grid" | "listbox" | "tree" | undefined;
|
|
79
79
|
'aria-keyshortcuts'?: string | undefined;
|
|
80
80
|
'aria-label'?: string | undefined;
|
|
81
81
|
'aria-labelledby'?: string | undefined;
|
|
@@ -273,20 +273,9 @@ export declare const Checkbox: import("react").ComponentType<Partial<{
|
|
|
273
273
|
readonly attributes: NamedNodeMap;
|
|
274
274
|
readonly localName: string;
|
|
275
275
|
size: import("@spectrum-web-components/base").ElementSize;
|
|
276
|
-
animate: (keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions | undefined) => Animation;
|
|
277
|
-
blur: () => void;
|
|
278
|
-
click: () => void;
|
|
279
|
-
focus: (options?: FocusOptions | undefined) => void;
|
|
280
|
-
invalid: boolean;
|
|
281
|
-
scroll: {
|
|
282
|
-
(options?: ScrollToOptions | undefined): void;
|
|
283
|
-
(x: number, y: number): void;
|
|
284
|
-
};
|
|
285
|
-
disabled: boolean;
|
|
286
|
-
autofocus: boolean;
|
|
287
|
-
normalize: () => void;
|
|
288
276
|
checked: boolean;
|
|
289
|
-
|
|
277
|
+
name?: string | undefined;
|
|
278
|
+
inputElement: HTMLInputElement;
|
|
290
279
|
readonly renderRoot: HTMLElement | ShadowRoot;
|
|
291
280
|
isUpdatePending: boolean;
|
|
292
281
|
hasUpdated: boolean;
|
|
@@ -309,6 +298,7 @@ export declare const Checkbox: import("react").ComponentType<Partial<{
|
|
|
309
298
|
outerText: string;
|
|
310
299
|
spellcheck: boolean;
|
|
311
300
|
attachInternals: () => ElementInternals;
|
|
301
|
+
click: () => void;
|
|
312
302
|
addEventListener: {
|
|
313
303
|
<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
314
304
|
(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
@@ -372,6 +362,10 @@ export declare const Checkbox: import("react").ComponentType<Partial<{
|
|
|
372
362
|
removeAttributeNode: (attr: Attr) => Attr;
|
|
373
363
|
requestFullscreen: (options?: FullscreenOptions | undefined) => Promise<void>;
|
|
374
364
|
requestPointerLock: () => void;
|
|
365
|
+
scroll: {
|
|
366
|
+
(options?: ScrollToOptions | undefined): void;
|
|
367
|
+
(x: number, y: number): void;
|
|
368
|
+
};
|
|
375
369
|
scrollBy: {
|
|
376
370
|
(options?: ScrollToOptions | undefined): void;
|
|
377
371
|
(x: number, y: number): void;
|
|
@@ -413,6 +407,7 @@ export declare const Checkbox: import("react").ComponentType<Partial<{
|
|
|
413
407
|
isSameNode: (otherNode: Node | null) => boolean;
|
|
414
408
|
lookupNamespaceURI: (prefix: string | null) => string | null;
|
|
415
409
|
lookupPrefix: (namespace: string | null) => string | null;
|
|
410
|
+
normalize: () => void;
|
|
416
411
|
removeChild: <T_2 extends Node>(child: T_2) => T_2;
|
|
417
412
|
replaceChild: <T_3 extends Node>(node: Node, child: T_3) => T_3;
|
|
418
413
|
readonly ATTRIBUTE_NODE: number;
|
|
@@ -470,6 +465,7 @@ export declare const Checkbox: import("react").ComponentType<Partial<{
|
|
|
470
465
|
ariaValueMin: string | null;
|
|
471
466
|
ariaValueNow: string | null;
|
|
472
467
|
ariaValueText: string | null;
|
|
468
|
+
animate: (keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions | undefined) => Animation;
|
|
473
469
|
getAnimations: (options?: GetAnimationsOptions | undefined) => Animation[];
|
|
474
470
|
after: (...nodes: (string | Node)[]) => void;
|
|
475
471
|
before: (...nodes: (string | Node)[]) => void;
|
|
@@ -589,11 +585,15 @@ export declare const Checkbox: import("react").ComponentType<Partial<{
|
|
|
589
585
|
onwebkitanimationstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
590
586
|
onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
591
587
|
onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
|
|
588
|
+
autofocus: boolean;
|
|
592
589
|
readonly dataset: DOMStringMap;
|
|
590
|
+
blur: () => void;
|
|
591
|
+
focus: (options?: FocusOptions | undefined) => void;
|
|
592
|
+
invalid: boolean;
|
|
593
|
+
disabled: boolean;
|
|
593
594
|
indeterminate: boolean;
|
|
594
595
|
emphasized: boolean;
|
|
595
596
|
handleChange: () => void;
|
|
596
|
-
readonly focusElement: HTMLElement;
|
|
597
597
|
readonly renderOptions: import("lit-html").RenderOptions;
|
|
598
598
|
isLTR: boolean;
|
|
599
599
|
hasVisibleFocusInTree: () => boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@swc-react/checkbox",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.40.1",
|
|
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/checkbox": "^0.
|
|
33
|
+
"@spectrum-web-components/checkbox": "^0.40.1"
|
|
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": "a75c4f83094c505d64658dbc7de20b5f18a8fde1"
|
|
44
44
|
}
|