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