@swc-react/button 0.35.1-rc.34 → 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 +67 -67
- package/package.json +3 -3
package/next.d.ts
CHANGED
|
@@ -10,16 +10,6 @@ export declare const Button: import("react").ComponentType<Partial<{
|
|
|
10
10
|
title?: string | undefined;
|
|
11
11
|
tabIndex?: number | undefined;
|
|
12
12
|
'aria-disabled'?: (boolean | "true" | "false") | undefined;
|
|
13
|
-
accessKey?: string | undefined;
|
|
14
|
-
draggable?: (boolean | "true" | "false") | undefined;
|
|
15
|
-
hidden?: boolean | undefined;
|
|
16
|
-
lang?: string | undefined;
|
|
17
|
-
translate?: "yes" | "no" | undefined;
|
|
18
|
-
prefix?: string | undefined;
|
|
19
|
-
children?: import("react").ReactNode;
|
|
20
|
-
contentEditable?: (boolean | "true" | "false") | "inherit" | undefined;
|
|
21
|
-
inputMode?: "text" | "search" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
22
|
-
nonce?: string | undefined;
|
|
23
13
|
role?: import("react").AriaRole | undefined;
|
|
24
14
|
'aria-label'?: string | undefined;
|
|
25
15
|
'aria-hidden'?: (boolean | "true" | "false") | undefined;
|
|
@@ -27,15 +17,23 @@ export declare const Button: import("react").ComponentType<Partial<{
|
|
|
27
17
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
28
18
|
suppressContentEditableWarning?: boolean | undefined;
|
|
29
19
|
suppressHydrationWarning?: boolean | undefined;
|
|
20
|
+
accessKey?: string | undefined;
|
|
30
21
|
autoFocus?: boolean | undefined;
|
|
22
|
+
contentEditable?: (boolean | "true" | "false") | "inherit" | undefined;
|
|
31
23
|
contextMenu?: string | undefined;
|
|
24
|
+
draggable?: (boolean | "true" | "false") | undefined;
|
|
25
|
+
hidden?: boolean | undefined;
|
|
26
|
+
lang?: string | undefined;
|
|
27
|
+
nonce?: string | undefined;
|
|
32
28
|
placeholder?: string | undefined;
|
|
33
29
|
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
30
|
+
translate?: "yes" | "no" | undefined;
|
|
34
31
|
radioGroup?: string | undefined;
|
|
35
32
|
about?: string | undefined;
|
|
36
33
|
content?: string | undefined;
|
|
37
34
|
datatype?: string | undefined;
|
|
38
35
|
inlist?: any;
|
|
36
|
+
prefix?: string | undefined;
|
|
39
37
|
property?: string | undefined;
|
|
40
38
|
resource?: string | undefined;
|
|
41
39
|
rev?: string | undefined;
|
|
@@ -53,6 +51,7 @@ export declare const Button: import("react").ComponentType<Partial<{
|
|
|
53
51
|
results?: number | undefined;
|
|
54
52
|
security?: string | undefined;
|
|
55
53
|
unselectable?: "on" | "off" | undefined;
|
|
54
|
+
inputMode?: "text" | "search" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
56
55
|
is?: string | undefined;
|
|
57
56
|
'aria-activedescendant'?: string | undefined;
|
|
58
57
|
'aria-atomic'?: (boolean | "true" | "false") | undefined;
|
|
@@ -104,6 +103,7 @@ export declare const Button: 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;
|
|
@@ -293,16 +293,10 @@ export declare const Button: import("react").ComponentType<Partial<{
|
|
|
293
293
|
slotHasContent: boolean;
|
|
294
294
|
readonly childNodes: NodeListOf<ChildNode>;
|
|
295
295
|
active: boolean;
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
removeController: (controller: import("lit").ReactiveController) => void;
|
|
301
|
-
connectedCallback: () => void;
|
|
302
|
-
disconnectedCallback: () => void;
|
|
303
|
-
attributeChangedCallback: (name: string, _old: string | null, value: string | null) => void;
|
|
304
|
-
requestUpdate: (name?: PropertyKey | undefined, oldValue?: unknown, options?: import("lit").PropertyDeclaration<unknown, unknown> | undefined) => void;
|
|
305
|
-
readonly updateComplete: Promise<boolean>;
|
|
296
|
+
variant: import("button/src").ButtonVariants;
|
|
297
|
+
static: "white" | "black" | undefined;
|
|
298
|
+
treatment: import("button/src").ButtonTreatments;
|
|
299
|
+
quiet: boolean;
|
|
306
300
|
readonly accessKeyLabel: string;
|
|
307
301
|
autocapitalize: string;
|
|
308
302
|
inert: boolean;
|
|
@@ -594,13 +588,19 @@ export declare const Button: import("react").ComponentType<Partial<{
|
|
|
594
588
|
onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
595
589
|
onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
|
|
596
590
|
readonly dataset: DOMStringMap;
|
|
597
|
-
variant: import("button/src").ButtonVariants;
|
|
598
|
-
static: "white" | "black" | undefined;
|
|
599
|
-
treatment: import("button/src").ButtonTreatments;
|
|
600
|
-
quiet: boolean;
|
|
601
591
|
readonly focusElement: HTMLElement;
|
|
602
592
|
renderAnchor: () => import("lit-html").TemplateResult<2 | 1>;
|
|
593
|
+
connectedCallback: () => void;
|
|
603
594
|
readonly renderOptions: import("lit-html").RenderOptions;
|
|
595
|
+
disconnectedCallback: () => void;
|
|
596
|
+
readonly renderRoot: HTMLElement | ShadowRoot;
|
|
597
|
+
isUpdatePending: boolean;
|
|
598
|
+
hasUpdated: boolean;
|
|
599
|
+
addController: (controller: import("lit").ReactiveController) => void;
|
|
600
|
+
removeController: (controller: import("lit").ReactiveController) => void;
|
|
601
|
+
attributeChangedCallback: (name: string, _old: string | null, value: string | null) => void;
|
|
602
|
+
requestUpdate: (name?: PropertyKey | undefined, oldValue?: unknown, options?: import("lit").PropertyDeclaration<unknown, unknown> | undefined) => void;
|
|
603
|
+
readonly updateComplete: Promise<boolean>;
|
|
604
604
|
isLTR: boolean;
|
|
605
605
|
hasVisibleFocusInTree: () => boolean;
|
|
606
606
|
manageTextObservedSlot: () => void;
|
|
@@ -615,16 +615,6 @@ export declare const ClearButton: import("react").ComponentType<Partial<{
|
|
|
615
615
|
title?: string | undefined;
|
|
616
616
|
tabIndex?: number | undefined;
|
|
617
617
|
'aria-disabled'?: (boolean | "true" | "false") | undefined;
|
|
618
|
-
accessKey?: string | undefined;
|
|
619
|
-
draggable?: (boolean | "true" | "false") | undefined;
|
|
620
|
-
hidden?: boolean | undefined;
|
|
621
|
-
lang?: string | undefined;
|
|
622
|
-
translate?: "yes" | "no" | undefined;
|
|
623
|
-
prefix?: string | undefined;
|
|
624
|
-
children?: import("react").ReactNode;
|
|
625
|
-
contentEditable?: (boolean | "true" | "false") | "inherit" | undefined;
|
|
626
|
-
inputMode?: "text" | "search" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
627
|
-
nonce?: string | undefined;
|
|
628
618
|
role?: import("react").AriaRole | undefined;
|
|
629
619
|
'aria-label'?: string | undefined;
|
|
630
620
|
'aria-hidden'?: (boolean | "true" | "false") | undefined;
|
|
@@ -632,15 +622,23 @@ export declare const ClearButton: import("react").ComponentType<Partial<{
|
|
|
632
622
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
633
623
|
suppressContentEditableWarning?: boolean | undefined;
|
|
634
624
|
suppressHydrationWarning?: boolean | undefined;
|
|
625
|
+
accessKey?: string | undefined;
|
|
635
626
|
autoFocus?: boolean | undefined;
|
|
627
|
+
contentEditable?: (boolean | "true" | "false") | "inherit" | undefined;
|
|
636
628
|
contextMenu?: string | undefined;
|
|
629
|
+
draggable?: (boolean | "true" | "false") | undefined;
|
|
630
|
+
hidden?: boolean | undefined;
|
|
631
|
+
lang?: string | undefined;
|
|
632
|
+
nonce?: string | undefined;
|
|
637
633
|
placeholder?: string | undefined;
|
|
638
634
|
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
635
|
+
translate?: "yes" | "no" | undefined;
|
|
639
636
|
radioGroup?: string | undefined;
|
|
640
637
|
about?: string | undefined;
|
|
641
638
|
content?: string | undefined;
|
|
642
639
|
datatype?: string | undefined;
|
|
643
640
|
inlist?: any;
|
|
641
|
+
prefix?: string | undefined;
|
|
644
642
|
property?: string | undefined;
|
|
645
643
|
resource?: string | undefined;
|
|
646
644
|
rev?: string | undefined;
|
|
@@ -658,6 +656,7 @@ export declare const ClearButton: import("react").ComponentType<Partial<{
|
|
|
658
656
|
results?: number | undefined;
|
|
659
657
|
security?: string | undefined;
|
|
660
658
|
unselectable?: "on" | "off" | undefined;
|
|
659
|
+
inputMode?: "text" | "search" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
661
660
|
is?: string | undefined;
|
|
662
661
|
'aria-activedescendant'?: string | undefined;
|
|
663
662
|
'aria-atomic'?: (boolean | "true" | "false") | undefined;
|
|
@@ -709,6 +708,7 @@ export declare const ClearButton: import("react").ComponentType<Partial<{
|
|
|
709
708
|
'aria-valuemin'?: number | undefined;
|
|
710
709
|
'aria-valuenow'?: number | undefined;
|
|
711
710
|
'aria-valuetext'?: string | undefined;
|
|
711
|
+
children?: import("react").ReactNode;
|
|
712
712
|
dangerouslySetInnerHTML?: {
|
|
713
713
|
__html: string | TrustedHTML;
|
|
714
714
|
} | undefined;
|
|
@@ -898,16 +898,7 @@ export declare const ClearButton: import("react").ComponentType<Partial<{
|
|
|
898
898
|
slotHasContent: boolean;
|
|
899
899
|
readonly childNodes: NodeListOf<ChildNode>;
|
|
900
900
|
active: boolean;
|
|
901
|
-
|
|
902
|
-
isUpdatePending: boolean;
|
|
903
|
-
hasUpdated: boolean;
|
|
904
|
-
addController: (controller: import("lit").ReactiveController) => void;
|
|
905
|
-
removeController: (controller: import("lit").ReactiveController) => void;
|
|
906
|
-
connectedCallback: () => void;
|
|
907
|
-
disconnectedCallback: () => void;
|
|
908
|
-
attributeChangedCallback: (name: string, _old: string | null, value: string | null) => void;
|
|
909
|
-
requestUpdate: (name?: PropertyKey | undefined, oldValue?: unknown, options?: import("lit").PropertyDeclaration<unknown, unknown> | undefined) => void;
|
|
910
|
-
readonly updateComplete: Promise<boolean>;
|
|
901
|
+
variant: "" | "overBackground";
|
|
911
902
|
readonly accessKeyLabel: string;
|
|
912
903
|
autocapitalize: string;
|
|
913
904
|
inert: boolean;
|
|
@@ -1199,10 +1190,19 @@ export declare const ClearButton: import("react").ComponentType<Partial<{
|
|
|
1199
1190
|
onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
1200
1191
|
onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
|
|
1201
1192
|
readonly dataset: DOMStringMap;
|
|
1202
|
-
variant: "" | "overBackground";
|
|
1203
1193
|
readonly focusElement: HTMLElement;
|
|
1204
1194
|
renderAnchor: () => import("lit-html").TemplateResult<2 | 1>;
|
|
1195
|
+
connectedCallback: () => void;
|
|
1205
1196
|
readonly renderOptions: import("lit-html").RenderOptions;
|
|
1197
|
+
disconnectedCallback: () => void;
|
|
1198
|
+
readonly renderRoot: HTMLElement | ShadowRoot;
|
|
1199
|
+
isUpdatePending: boolean;
|
|
1200
|
+
hasUpdated: boolean;
|
|
1201
|
+
addController: (controller: import("lit").ReactiveController) => void;
|
|
1202
|
+
removeController: (controller: import("lit").ReactiveController) => void;
|
|
1203
|
+
attributeChangedCallback: (name: string, _old: string | null, value: string | null) => void;
|
|
1204
|
+
requestUpdate: (name?: PropertyKey | undefined, oldValue?: unknown, options?: import("lit").PropertyDeclaration<unknown, unknown> | undefined) => void;
|
|
1205
|
+
readonly updateComplete: Promise<boolean>;
|
|
1206
1206
|
isLTR: boolean;
|
|
1207
1207
|
hasVisibleFocusInTree: () => boolean;
|
|
1208
1208
|
manageTextObservedSlot: () => void;
|
|
@@ -1217,16 +1217,6 @@ export declare const CloseButton: import("react").ComponentType<Partial<{
|
|
|
1217
1217
|
title?: string | undefined;
|
|
1218
1218
|
tabIndex?: number | undefined;
|
|
1219
1219
|
'aria-disabled'?: (boolean | "true" | "false") | undefined;
|
|
1220
|
-
accessKey?: string | undefined;
|
|
1221
|
-
draggable?: (boolean | "true" | "false") | undefined;
|
|
1222
|
-
hidden?: boolean | undefined;
|
|
1223
|
-
lang?: string | undefined;
|
|
1224
|
-
translate?: "yes" | "no" | undefined;
|
|
1225
|
-
prefix?: string | undefined;
|
|
1226
|
-
children?: import("react").ReactNode;
|
|
1227
|
-
contentEditable?: (boolean | "true" | "false") | "inherit" | undefined;
|
|
1228
|
-
inputMode?: "text" | "search" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
1229
|
-
nonce?: string | undefined;
|
|
1230
1220
|
role?: import("react").AriaRole | undefined;
|
|
1231
1221
|
'aria-label'?: string | undefined;
|
|
1232
1222
|
'aria-hidden'?: (boolean | "true" | "false") | undefined;
|
|
@@ -1234,15 +1224,23 @@ export declare const CloseButton: import("react").ComponentType<Partial<{
|
|
|
1234
1224
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
1235
1225
|
suppressContentEditableWarning?: boolean | undefined;
|
|
1236
1226
|
suppressHydrationWarning?: boolean | undefined;
|
|
1227
|
+
accessKey?: string | undefined;
|
|
1237
1228
|
autoFocus?: boolean | undefined;
|
|
1229
|
+
contentEditable?: (boolean | "true" | "false") | "inherit" | undefined;
|
|
1238
1230
|
contextMenu?: string | undefined;
|
|
1231
|
+
draggable?: (boolean | "true" | "false") | undefined;
|
|
1232
|
+
hidden?: boolean | undefined;
|
|
1233
|
+
lang?: string | undefined;
|
|
1234
|
+
nonce?: string | undefined;
|
|
1239
1235
|
placeholder?: string | undefined;
|
|
1240
1236
|
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
1237
|
+
translate?: "yes" | "no" | undefined;
|
|
1241
1238
|
radioGroup?: string | undefined;
|
|
1242
1239
|
about?: string | undefined;
|
|
1243
1240
|
content?: string | undefined;
|
|
1244
1241
|
datatype?: string | undefined;
|
|
1245
1242
|
inlist?: any;
|
|
1243
|
+
prefix?: string | undefined;
|
|
1246
1244
|
property?: string | undefined;
|
|
1247
1245
|
resource?: string | undefined;
|
|
1248
1246
|
rev?: string | undefined;
|
|
@@ -1260,6 +1258,7 @@ export declare const CloseButton: import("react").ComponentType<Partial<{
|
|
|
1260
1258
|
results?: number | undefined;
|
|
1261
1259
|
security?: string | undefined;
|
|
1262
1260
|
unselectable?: "on" | "off" | undefined;
|
|
1261
|
+
inputMode?: "text" | "search" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
1263
1262
|
is?: string | undefined;
|
|
1264
1263
|
'aria-activedescendant'?: string | undefined;
|
|
1265
1264
|
'aria-atomic'?: (boolean | "true" | "false") | undefined;
|
|
@@ -1311,6 +1310,7 @@ export declare const CloseButton: import("react").ComponentType<Partial<{
|
|
|
1311
1310
|
'aria-valuemin'?: number | undefined;
|
|
1312
1311
|
'aria-valuenow'?: number | undefined;
|
|
1313
1312
|
'aria-valuetext'?: string | undefined;
|
|
1313
|
+
children?: import("react").ReactNode;
|
|
1314
1314
|
dangerouslySetInnerHTML?: {
|
|
1315
1315
|
__html: string | TrustedHTML;
|
|
1316
1316
|
} | undefined;
|
|
@@ -1500,16 +1500,8 @@ export declare const CloseButton: import("react").ComponentType<Partial<{
|
|
|
1500
1500
|
slotHasContent: boolean;
|
|
1501
1501
|
readonly childNodes: NodeListOf<ChildNode>;
|
|
1502
1502
|
active: boolean;
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
hasUpdated: boolean;
|
|
1506
|
-
addController: (controller: import("lit").ReactiveController) => void;
|
|
1507
|
-
removeController: (controller: import("lit").ReactiveController) => void;
|
|
1508
|
-
connectedCallback: () => void;
|
|
1509
|
-
disconnectedCallback: () => void;
|
|
1510
|
-
attributeChangedCallback: (name: string, _old: string | null, value: string | null) => void;
|
|
1511
|
-
requestUpdate: (name?: PropertyKey | undefined, oldValue?: unknown, options?: import("lit").PropertyDeclaration<unknown, unknown> | undefined) => void;
|
|
1512
|
-
readonly updateComplete: Promise<boolean>;
|
|
1503
|
+
variant: "" | import("button/src").ButtonStatics;
|
|
1504
|
+
static: "white" | "black" | undefined;
|
|
1513
1505
|
readonly accessKeyLabel: string;
|
|
1514
1506
|
autocapitalize: string;
|
|
1515
1507
|
inert: boolean;
|
|
@@ -1801,11 +1793,19 @@ export declare const CloseButton: import("react").ComponentType<Partial<{
|
|
|
1801
1793
|
onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
1802
1794
|
onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
|
|
1803
1795
|
readonly dataset: DOMStringMap;
|
|
1804
|
-
variant: "" | import("button/src").ButtonStatics;
|
|
1805
|
-
static: "white" | "black" | undefined;
|
|
1806
1796
|
readonly focusElement: HTMLElement;
|
|
1807
1797
|
renderAnchor: () => import("lit-html").TemplateResult<2 | 1>;
|
|
1798
|
+
connectedCallback: () => void;
|
|
1808
1799
|
readonly renderOptions: import("lit-html").RenderOptions;
|
|
1800
|
+
disconnectedCallback: () => void;
|
|
1801
|
+
readonly renderRoot: HTMLElement | ShadowRoot;
|
|
1802
|
+
isUpdatePending: boolean;
|
|
1803
|
+
hasUpdated: boolean;
|
|
1804
|
+
addController: (controller: import("lit").ReactiveController) => void;
|
|
1805
|
+
removeController: (controller: import("lit").ReactiveController) => void;
|
|
1806
|
+
attributeChangedCallback: (name: string, _old: string | null, value: string | null) => void;
|
|
1807
|
+
requestUpdate: (name?: PropertyKey | undefined, oldValue?: unknown, options?: import("lit").PropertyDeclaration<unknown, unknown> | undefined) => void;
|
|
1808
|
+
readonly updateComplete: Promise<boolean>;
|
|
1809
1809
|
isLTR: boolean;
|
|
1810
1810
|
hasVisibleFocusInTree: () => boolean;
|
|
1811
1811
|
manageTextObservedSlot: () => void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@swc-react/button",
|
|
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/button": "^0.
|
|
33
|
+
"@spectrum-web-components/button": "^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
|
}
|