@swc-react/button 0.34.1-rc.0 → 0.35.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.
Files changed (2) hide show
  1. package/next.d.ts +35 -9
  2. package/package.json +3 -3
package/next.d.ts CHANGED
@@ -1,6 +1,8 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  export declare const Button: import("react").ComponentType<Partial<{
3
4
  dir?: string | undefined;
5
+ rel?: string | undefined;
4
6
  id?: string | undefined;
5
7
  className?: string | undefined;
6
8
  slot?: string | undefined;
@@ -10,11 +12,13 @@ export declare const Button: import("react").ComponentType<Partial<{
10
12
  'aria-disabled'?: (boolean | "true" | "false") | undefined;
11
13
  role?: import("react").AriaRole | undefined;
12
14
  'aria-label'?: string | undefined;
15
+ 'aria-hidden'?: (boolean | "true" | "false") | undefined;
13
16
  defaultChecked?: boolean | undefined;
14
17
  defaultValue?: string | number | readonly string[] | undefined;
15
18
  suppressContentEditableWarning?: boolean | undefined;
16
19
  suppressHydrationWarning?: boolean | undefined;
17
20
  accessKey?: string | undefined;
21
+ autoFocus?: boolean | undefined;
18
22
  contentEditable?: (boolean | "true" | "false") | "inherit" | undefined;
19
23
  contextMenu?: string | undefined;
20
24
  draggable?: (boolean | "true" | "false") | undefined;
@@ -26,11 +30,13 @@ export declare const Button: import("react").ComponentType<Partial<{
26
30
  translate?: "yes" | "no" | undefined;
27
31
  radioGroup?: string | undefined;
28
32
  about?: string | undefined;
33
+ content?: string | undefined;
29
34
  datatype?: string | undefined;
30
35
  inlist?: any;
31
36
  prefix?: string | undefined;
32
37
  property?: string | undefined;
33
38
  resource?: string | undefined;
39
+ rev?: string | undefined;
34
40
  typeof?: string | undefined;
35
41
  vocab?: string | undefined;
36
42
  autoCapitalize?: string | undefined;
@@ -50,14 +56,18 @@ export declare const Button: import("react").ComponentType<Partial<{
50
56
  'aria-activedescendant'?: string | undefined;
51
57
  'aria-atomic'?: (boolean | "true" | "false") | undefined;
52
58
  'aria-autocomplete'?: "none" | "list" | "inline" | "both" | undefined;
59
+ 'aria-braillelabel'?: string | undefined;
60
+ 'aria-brailleroledescription'?: string | undefined;
53
61
  'aria-busy'?: (boolean | "true" | "false") | undefined;
54
62
  'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
55
63
  'aria-colcount'?: number | undefined;
56
64
  'aria-colindex'?: number | undefined;
65
+ 'aria-colindextext'?: string | undefined;
57
66
  'aria-colspan'?: number | undefined;
58
67
  'aria-controls'?: string | undefined;
59
68
  'aria-current'?: boolean | "true" | "time" | "false" | "page" | "step" | "location" | "date" | undefined;
60
69
  'aria-describedby'?: string | undefined;
70
+ 'aria-description'?: string | undefined;
61
71
  'aria-details'?: string | undefined;
62
72
  'aria-dropeffect'?: "link" | "copy" | "none" | "execute" | "move" | "popup" | undefined;
63
73
  'aria-errormessage'?: string | undefined;
@@ -65,7 +75,6 @@ export declare const Button: import("react").ComponentType<Partial<{
65
75
  'aria-flowto'?: string | undefined;
66
76
  'aria-grabbed'?: (boolean | "true" | "false") | undefined;
67
77
  'aria-haspopup'?: boolean | "true" | "dialog" | "menu" | "false" | "grid" | "listbox" | "tree" | undefined;
68
- 'aria-hidden'?: (boolean | "true" | "false") | undefined;
69
78
  'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
70
79
  'aria-keyshortcuts'?: string | undefined;
71
80
  'aria-labelledby'?: string | undefined;
@@ -85,6 +94,7 @@ export declare const Button: import("react").ComponentType<Partial<{
85
94
  'aria-roledescription'?: string | undefined;
86
95
  'aria-rowcount'?: number | undefined;
87
96
  'aria-rowindex'?: number | undefined;
97
+ 'aria-rowindextext'?: string | undefined;
88
98
  'aria-rowspan'?: number | undefined;
89
99
  'aria-selected'?: (boolean | "true" | "false") | undefined;
90
100
  'aria-setsize'?: number | undefined;
@@ -95,7 +105,7 @@ export declare const Button: import("react").ComponentType<Partial<{
95
105
  'aria-valuetext'?: string | undefined;
96
106
  children?: import("react").ReactNode;
97
107
  dangerouslySetInnerHTML?: {
98
- __html: string;
108
+ __html: string | TrustedHTML;
99
109
  } | undefined;
100
110
  onCopy?: import("react").ClipboardEventHandler<import("button/src").Button> | undefined;
101
111
  onCopyCapture?: import("react").ClipboardEventHandler<import("button/src").Button> | undefined;
@@ -268,7 +278,6 @@ export declare const Button: import("react").ComponentType<Partial<{
268
278
  label?: string | undefined;
269
279
  href?: string | undefined;
270
280
  target?: "_blank" | "_parent" | "_self" | "_top" | undefined;
271
- rel?: string | undefined;
272
281
  ariaHidden: string | null;
273
282
  animate: (keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions | undefined) => Animation;
274
283
  blur: () => void;
@@ -598,6 +607,7 @@ export declare const Button: import("react").ComponentType<Partial<{
598
607
  } & {}> & import("react").RefAttributes<import("button/src").Button>>;
599
608
  export declare const ClearButton: import("react").ComponentType<Partial<{
600
609
  dir?: string | undefined;
610
+ rel?: string | undefined;
601
611
  id?: string | undefined;
602
612
  className?: string | undefined;
603
613
  slot?: string | undefined;
@@ -607,11 +617,13 @@ export declare const ClearButton: import("react").ComponentType<Partial<{
607
617
  'aria-disabled'?: (boolean | "true" | "false") | undefined;
608
618
  role?: import("react").AriaRole | undefined;
609
619
  'aria-label'?: string | undefined;
620
+ 'aria-hidden'?: (boolean | "true" | "false") | undefined;
610
621
  defaultChecked?: boolean | undefined;
611
622
  defaultValue?: string | number | readonly string[] | undefined;
612
623
  suppressContentEditableWarning?: boolean | undefined;
613
624
  suppressHydrationWarning?: boolean | undefined;
614
625
  accessKey?: string | undefined;
626
+ autoFocus?: boolean | undefined;
615
627
  contentEditable?: (boolean | "true" | "false") | "inherit" | undefined;
616
628
  contextMenu?: string | undefined;
617
629
  draggable?: (boolean | "true" | "false") | undefined;
@@ -623,11 +635,13 @@ export declare const ClearButton: import("react").ComponentType<Partial<{
623
635
  translate?: "yes" | "no" | undefined;
624
636
  radioGroup?: string | undefined;
625
637
  about?: string | undefined;
638
+ content?: string | undefined;
626
639
  datatype?: string | undefined;
627
640
  inlist?: any;
628
641
  prefix?: string | undefined;
629
642
  property?: string | undefined;
630
643
  resource?: string | undefined;
644
+ rev?: string | undefined;
631
645
  typeof?: string | undefined;
632
646
  vocab?: string | undefined;
633
647
  autoCapitalize?: string | undefined;
@@ -647,14 +661,18 @@ export declare const ClearButton: import("react").ComponentType<Partial<{
647
661
  'aria-activedescendant'?: string | undefined;
648
662
  'aria-atomic'?: (boolean | "true" | "false") | undefined;
649
663
  'aria-autocomplete'?: "none" | "list" | "inline" | "both" | undefined;
664
+ 'aria-braillelabel'?: string | undefined;
665
+ 'aria-brailleroledescription'?: string | undefined;
650
666
  'aria-busy'?: (boolean | "true" | "false") | undefined;
651
667
  'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
652
668
  'aria-colcount'?: number | undefined;
653
669
  'aria-colindex'?: number | undefined;
670
+ 'aria-colindextext'?: string | undefined;
654
671
  'aria-colspan'?: number | undefined;
655
672
  'aria-controls'?: string | undefined;
656
673
  'aria-current'?: boolean | "true" | "time" | "false" | "page" | "step" | "location" | "date" | undefined;
657
674
  'aria-describedby'?: string | undefined;
675
+ 'aria-description'?: string | undefined;
658
676
  'aria-details'?: string | undefined;
659
677
  'aria-dropeffect'?: "link" | "copy" | "none" | "execute" | "move" | "popup" | undefined;
660
678
  'aria-errormessage'?: string | undefined;
@@ -662,7 +680,6 @@ export declare const ClearButton: import("react").ComponentType<Partial<{
662
680
  'aria-flowto'?: string | undefined;
663
681
  'aria-grabbed'?: (boolean | "true" | "false") | undefined;
664
682
  'aria-haspopup'?: boolean | "true" | "dialog" | "menu" | "false" | "grid" | "listbox" | "tree" | undefined;
665
- 'aria-hidden'?: (boolean | "true" | "false") | undefined;
666
683
  'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
667
684
  'aria-keyshortcuts'?: string | undefined;
668
685
  'aria-labelledby'?: string | undefined;
@@ -682,6 +699,7 @@ export declare const ClearButton: import("react").ComponentType<Partial<{
682
699
  'aria-roledescription'?: string | undefined;
683
700
  'aria-rowcount'?: number | undefined;
684
701
  'aria-rowindex'?: number | undefined;
702
+ 'aria-rowindextext'?: string | undefined;
685
703
  'aria-rowspan'?: number | undefined;
686
704
  'aria-selected'?: (boolean | "true" | "false") | undefined;
687
705
  'aria-setsize'?: number | undefined;
@@ -692,7 +710,7 @@ export declare const ClearButton: import("react").ComponentType<Partial<{
692
710
  'aria-valuetext'?: string | undefined;
693
711
  children?: import("react").ReactNode;
694
712
  dangerouslySetInnerHTML?: {
695
- __html: string;
713
+ __html: string | TrustedHTML;
696
714
  } | undefined;
697
715
  onCopy?: import("react").ClipboardEventHandler<import("button/src").ClearButton> | undefined;
698
716
  onCopyCapture?: import("react").ClipboardEventHandler<import("button/src").ClearButton> | undefined;
@@ -865,7 +883,6 @@ export declare const ClearButton: import("react").ComponentType<Partial<{
865
883
  label?: string | undefined;
866
884
  href?: string | undefined;
867
885
  target?: "_blank" | "_parent" | "_self" | "_top" | undefined;
868
- rel?: string | undefined;
869
886
  ariaHidden: string | null;
870
887
  animate: (keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions | undefined) => Animation;
871
888
  blur: () => void;
@@ -1192,6 +1209,7 @@ export declare const ClearButton: import("react").ComponentType<Partial<{
1192
1209
  } & {}> & import("react").RefAttributes<import("button/src").ClearButton>>;
1193
1210
  export declare const CloseButton: import("react").ComponentType<Partial<{
1194
1211
  dir?: string | undefined;
1212
+ rel?: string | undefined;
1195
1213
  id?: string | undefined;
1196
1214
  className?: string | undefined;
1197
1215
  slot?: string | undefined;
@@ -1201,11 +1219,13 @@ export declare const CloseButton: import("react").ComponentType<Partial<{
1201
1219
  'aria-disabled'?: (boolean | "true" | "false") | undefined;
1202
1220
  role?: import("react").AriaRole | undefined;
1203
1221
  'aria-label'?: string | undefined;
1222
+ 'aria-hidden'?: (boolean | "true" | "false") | undefined;
1204
1223
  defaultChecked?: boolean | undefined;
1205
1224
  defaultValue?: string | number | readonly string[] | undefined;
1206
1225
  suppressContentEditableWarning?: boolean | undefined;
1207
1226
  suppressHydrationWarning?: boolean | undefined;
1208
1227
  accessKey?: string | undefined;
1228
+ autoFocus?: boolean | undefined;
1209
1229
  contentEditable?: (boolean | "true" | "false") | "inherit" | undefined;
1210
1230
  contextMenu?: string | undefined;
1211
1231
  draggable?: (boolean | "true" | "false") | undefined;
@@ -1217,11 +1237,13 @@ export declare const CloseButton: import("react").ComponentType<Partial<{
1217
1237
  translate?: "yes" | "no" | undefined;
1218
1238
  radioGroup?: string | undefined;
1219
1239
  about?: string | undefined;
1240
+ content?: string | undefined;
1220
1241
  datatype?: string | undefined;
1221
1242
  inlist?: any;
1222
1243
  prefix?: string | undefined;
1223
1244
  property?: string | undefined;
1224
1245
  resource?: string | undefined;
1246
+ rev?: string | undefined;
1225
1247
  typeof?: string | undefined;
1226
1248
  vocab?: string | undefined;
1227
1249
  autoCapitalize?: string | undefined;
@@ -1241,14 +1263,18 @@ export declare const CloseButton: import("react").ComponentType<Partial<{
1241
1263
  'aria-activedescendant'?: string | undefined;
1242
1264
  'aria-atomic'?: (boolean | "true" | "false") | undefined;
1243
1265
  'aria-autocomplete'?: "none" | "list" | "inline" | "both" | undefined;
1266
+ 'aria-braillelabel'?: string | undefined;
1267
+ 'aria-brailleroledescription'?: string | undefined;
1244
1268
  'aria-busy'?: (boolean | "true" | "false") | undefined;
1245
1269
  'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
1246
1270
  'aria-colcount'?: number | undefined;
1247
1271
  'aria-colindex'?: number | undefined;
1272
+ 'aria-colindextext'?: string | undefined;
1248
1273
  'aria-colspan'?: number | undefined;
1249
1274
  'aria-controls'?: string | undefined;
1250
1275
  'aria-current'?: boolean | "true" | "time" | "false" | "page" | "step" | "location" | "date" | undefined;
1251
1276
  'aria-describedby'?: string | undefined;
1277
+ 'aria-description'?: string | undefined;
1252
1278
  'aria-details'?: string | undefined;
1253
1279
  'aria-dropeffect'?: "link" | "copy" | "none" | "execute" | "move" | "popup" | undefined;
1254
1280
  'aria-errormessage'?: string | undefined;
@@ -1256,7 +1282,6 @@ export declare const CloseButton: import("react").ComponentType<Partial<{
1256
1282
  'aria-flowto'?: string | undefined;
1257
1283
  'aria-grabbed'?: (boolean | "true" | "false") | undefined;
1258
1284
  'aria-haspopup'?: boolean | "true" | "dialog" | "menu" | "false" | "grid" | "listbox" | "tree" | undefined;
1259
- 'aria-hidden'?: (boolean | "true" | "false") | undefined;
1260
1285
  'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
1261
1286
  'aria-keyshortcuts'?: string | undefined;
1262
1287
  'aria-labelledby'?: string | undefined;
@@ -1276,6 +1301,7 @@ export declare const CloseButton: import("react").ComponentType<Partial<{
1276
1301
  'aria-roledescription'?: string | undefined;
1277
1302
  'aria-rowcount'?: number | undefined;
1278
1303
  'aria-rowindex'?: number | undefined;
1304
+ 'aria-rowindextext'?: string | undefined;
1279
1305
  'aria-rowspan'?: number | undefined;
1280
1306
  'aria-selected'?: (boolean | "true" | "false") | undefined;
1281
1307
  'aria-setsize'?: number | undefined;
@@ -1286,7 +1312,7 @@ export declare const CloseButton: import("react").ComponentType<Partial<{
1286
1312
  'aria-valuetext'?: string | undefined;
1287
1313
  children?: import("react").ReactNode;
1288
1314
  dangerouslySetInnerHTML?: {
1289
- __html: string;
1315
+ __html: string | TrustedHTML;
1290
1316
  } | undefined;
1291
1317
  onCopy?: import("react").ClipboardEventHandler<import("button/src").CloseButton> | undefined;
1292
1318
  onCopyCapture?: import("react").ClipboardEventHandler<import("button/src").CloseButton> | undefined;
@@ -1459,7 +1485,6 @@ export declare const CloseButton: import("react").ComponentType<Partial<{
1459
1485
  label?: string | undefined;
1460
1486
  href?: string | undefined;
1461
1487
  target?: "_blank" | "_parent" | "_self" | "_top" | undefined;
1462
- rel?: string | undefined;
1463
1488
  ariaHidden: string | null;
1464
1489
  animate: (keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions | undefined) => Animation;
1465
1490
  blur: () => void;
@@ -1476,6 +1501,7 @@ export declare const CloseButton: import("react").ComponentType<Partial<{
1476
1501
  readonly childNodes: NodeListOf<ChildNode>;
1477
1502
  active: boolean;
1478
1503
  variant: "" | import("button/src").ButtonStatics;
1504
+ static: "white" | "black" | undefined;
1479
1505
  readonly accessKeyLabel: string;
1480
1506
  autocapitalize: string;
1481
1507
  inert: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swc-react/button",
3
- "version": "0.34.1-rc.0+1647bfed5",
3
+ "version": "0.35.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.34.1-rc.0+1647bfed5"
33
+ "@spectrum-web-components/button": "^0.35.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": "1647bfed54cb29f3513343cd0d2c2d9e73e1c508"
43
+ "gitHead": "1ee5a6c92838cdf48321276d97f61c20f8476ac1"
44
44
  }