@swc-react/checkbox 0.40.0 → 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 -24
- 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,21 +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
|
-
|
|
290
|
-
|
|
277
|
+
name?: string | undefined;
|
|
278
|
+
inputElement: HTMLInputElement;
|
|
291
279
|
readonly renderRoot: HTMLElement | ShadowRoot;
|
|
292
280
|
isUpdatePending: boolean;
|
|
293
281
|
hasUpdated: boolean;
|
|
@@ -310,6 +298,7 @@ export declare const Checkbox: import("react").ComponentType<Partial<{
|
|
|
310
298
|
outerText: string;
|
|
311
299
|
spellcheck: boolean;
|
|
312
300
|
attachInternals: () => ElementInternals;
|
|
301
|
+
click: () => void;
|
|
313
302
|
addEventListener: {
|
|
314
303
|
<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
315
304
|
(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
@@ -373,6 +362,10 @@ export declare const Checkbox: import("react").ComponentType<Partial<{
|
|
|
373
362
|
removeAttributeNode: (attr: Attr) => Attr;
|
|
374
363
|
requestFullscreen: (options?: FullscreenOptions | undefined) => Promise<void>;
|
|
375
364
|
requestPointerLock: () => void;
|
|
365
|
+
scroll: {
|
|
366
|
+
(options?: ScrollToOptions | undefined): void;
|
|
367
|
+
(x: number, y: number): void;
|
|
368
|
+
};
|
|
376
369
|
scrollBy: {
|
|
377
370
|
(options?: ScrollToOptions | undefined): void;
|
|
378
371
|
(x: number, y: number): void;
|
|
@@ -414,6 +407,7 @@ export declare const Checkbox: import("react").ComponentType<Partial<{
|
|
|
414
407
|
isSameNode: (otherNode: Node | null) => boolean;
|
|
415
408
|
lookupNamespaceURI: (prefix: string | null) => string | null;
|
|
416
409
|
lookupPrefix: (namespace: string | null) => string | null;
|
|
410
|
+
normalize: () => void;
|
|
417
411
|
removeChild: <T_2 extends Node>(child: T_2) => T_2;
|
|
418
412
|
replaceChild: <T_3 extends Node>(node: Node, child: T_3) => T_3;
|
|
419
413
|
readonly ATTRIBUTE_NODE: number;
|
|
@@ -471,6 +465,7 @@ export declare const Checkbox: import("react").ComponentType<Partial<{
|
|
|
471
465
|
ariaValueMin: string | null;
|
|
472
466
|
ariaValueNow: string | null;
|
|
473
467
|
ariaValueText: string | null;
|
|
468
|
+
animate: (keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions | undefined) => Animation;
|
|
474
469
|
getAnimations: (options?: GetAnimationsOptions | undefined) => Animation[];
|
|
475
470
|
after: (...nodes: (string | Node)[]) => void;
|
|
476
471
|
before: (...nodes: (string | Node)[]) => void;
|
|
@@ -590,11 +585,15 @@ export declare const Checkbox: import("react").ComponentType<Partial<{
|
|
|
590
585
|
onwebkitanimationstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
591
586
|
onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
592
587
|
onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
|
|
588
|
+
autofocus: boolean;
|
|
593
589
|
readonly dataset: DOMStringMap;
|
|
590
|
+
blur: () => void;
|
|
591
|
+
focus: (options?: FocusOptions | undefined) => void;
|
|
592
|
+
invalid: boolean;
|
|
593
|
+
disabled: boolean;
|
|
594
594
|
indeterminate: boolean;
|
|
595
595
|
emphasized: boolean;
|
|
596
596
|
handleChange: () => void;
|
|
597
|
-
readonly focusElement: HTMLElement;
|
|
598
597
|
readonly renderOptions: import("lit-html").RenderOptions;
|
|
599
598
|
isLTR: boolean;
|
|
600
599
|
hasVisibleFocusInTree: () => boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@swc-react/checkbox",
|
|
3
|
-
"version": "0.40.
|
|
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.40.
|
|
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
|
}
|