@swc-react/radio 0.34.1-rc.0 → 0.35.1-rc.15

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 +37 -18
  2. package/package.json +3 -3
package/next.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  export declare const Radio: import("react").ComponentType<Partial<{
3
4
  dir?: string | undefined;
4
5
  slot?: string | undefined;
@@ -8,34 +9,39 @@ export declare const Radio: import("react").ComponentType<Partial<{
8
9
  'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
9
10
  'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
10
11
  'aria-disabled'?: (boolean | "true" | "false") | undefined;
11
- hidden?: boolean | undefined;
12
- 'aria-describedby'?: string | undefined;
13
- id?: string | undefined;
12
+ 'aria-hidden'?: (boolean | "true" | "false") | undefined;
14
13
  accessKey?: string | undefined;
15
14
  draggable?: (boolean | "true" | "false") | undefined;
15
+ hidden?: boolean | undefined;
16
16
  lang?: string | undefined;
17
17
  translate?: "yes" | "no" | undefined;
18
18
  className?: string | undefined;
19
+ id?: string | undefined;
19
20
  prefix?: string | undefined;
20
21
  children?: import("react").ReactNode;
21
22
  contentEditable?: (boolean | "true" | "false") | "inherit" | undefined;
22
23
  inputMode?: "text" | "search" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
23
24
  nonce?: string | undefined;
24
25
  tabIndex?: number | undefined;
26
+ 'aria-describedby'?: string | undefined;
25
27
  'aria-label'?: string | undefined;
26
28
  defaultChecked?: boolean | undefined;
27
29
  defaultValue?: string | number | readonly string[] | undefined;
28
30
  suppressContentEditableWarning?: boolean | undefined;
29
31
  suppressHydrationWarning?: boolean | undefined;
32
+ autoFocus?: boolean | undefined;
30
33
  contextMenu?: string | undefined;
31
34
  placeholder?: string | undefined;
32
35
  spellCheck?: (boolean | "true" | "false") | undefined;
33
36
  radioGroup?: string | undefined;
34
37
  about?: string | undefined;
38
+ content?: string | undefined;
35
39
  datatype?: string | undefined;
36
40
  inlist?: any;
37
41
  property?: string | undefined;
42
+ rel?: string | undefined;
38
43
  resource?: string | undefined;
44
+ rev?: string | undefined;
39
45
  typeof?: string | undefined;
40
46
  vocab?: string | undefined;
41
47
  autoCapitalize?: string | undefined;
@@ -54,12 +60,16 @@ export declare const Radio: import("react").ComponentType<Partial<{
54
60
  'aria-activedescendant'?: string | undefined;
55
61
  'aria-atomic'?: (boolean | "true" | "false") | undefined;
56
62
  'aria-autocomplete'?: "none" | "both" | "list" | "inline" | undefined;
63
+ 'aria-braillelabel'?: string | undefined;
64
+ 'aria-brailleroledescription'?: string | undefined;
57
65
  'aria-busy'?: (boolean | "true" | "false") | undefined;
58
66
  'aria-colcount'?: number | undefined;
59
67
  'aria-colindex'?: number | undefined;
68
+ 'aria-colindextext'?: string | undefined;
60
69
  'aria-colspan'?: number | undefined;
61
70
  'aria-controls'?: string | undefined;
62
71
  'aria-current'?: boolean | "time" | "true" | "false" | "page" | "step" | "location" | "date" | undefined;
72
+ 'aria-description'?: string | undefined;
63
73
  'aria-details'?: string | undefined;
64
74
  'aria-dropeffect'?: "link" | "copy" | "none" | "execute" | "move" | "popup" | undefined;
65
75
  'aria-errormessage'?: string | undefined;
@@ -67,7 +77,6 @@ export declare const Radio: import("react").ComponentType<Partial<{
67
77
  'aria-flowto'?: string | undefined;
68
78
  'aria-grabbed'?: (boolean | "true" | "false") | undefined;
69
79
  'aria-haspopup'?: boolean | "dialog" | "menu" | "true" | "false" | "grid" | "listbox" | "tree" | undefined;
70
- 'aria-hidden'?: (boolean | "true" | "false") | undefined;
71
80
  'aria-keyshortcuts'?: string | undefined;
72
81
  'aria-labelledby'?: string | undefined;
73
82
  'aria-level'?: number | undefined;
@@ -86,6 +95,7 @@ export declare const Radio: import("react").ComponentType<Partial<{
86
95
  'aria-roledescription'?: string | undefined;
87
96
  'aria-rowcount'?: number | undefined;
88
97
  'aria-rowindex'?: number | undefined;
98
+ 'aria-rowindextext'?: string | undefined;
89
99
  'aria-rowspan'?: number | undefined;
90
100
  'aria-selected'?: (boolean | "true" | "false") | undefined;
91
101
  'aria-setsize'?: number | undefined;
@@ -95,7 +105,7 @@ export declare const Radio: import("react").ComponentType<Partial<{
95
105
  'aria-valuenow'?: number | undefined;
96
106
  'aria-valuetext'?: string | undefined;
97
107
  dangerouslySetInnerHTML?: {
98
- __html: string;
108
+ __html: string | TrustedHTML;
99
109
  } | undefined;
100
110
  onCopy?: import("react").ClipboardEventHandler<import("radio/src").Radio> | undefined;
101
111
  onCopyCapture?: import("react").ClipboardEventHandler<import("radio/src").Radio> | undefined;
@@ -279,14 +289,13 @@ export declare const Radio: import("react").ComponentType<Partial<{
279
289
  emphasized: boolean;
280
290
  readonly: boolean;
281
291
  normalize: () => void;
282
- readonly renderOptions: import("lit-html").RenderOptions;
283
- connectedCallback: () => void;
284
- disconnectedCallback: () => void;
285
292
  readonly renderRoot: HTMLElement | ShadowRoot;
286
293
  isUpdatePending: boolean;
287
294
  hasUpdated: boolean;
288
295
  addController: (controller: import("lit").ReactiveController) => void;
289
296
  removeController: (controller: import("lit").ReactiveController) => void;
297
+ connectedCallback: () => void;
298
+ disconnectedCallback: () => void;
290
299
  attributeChangedCallback: (name: string, _old: string | null, value: string | null) => void;
291
300
  requestUpdate: (name?: PropertyKey | undefined, oldValue?: unknown, options?: import("lit").PropertyDeclaration<unknown, unknown> | undefined) => void;
292
301
  readonly updateComplete: Promise<boolean>;
@@ -583,6 +592,7 @@ export declare const Radio: import("react").ComponentType<Partial<{
583
592
  onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
584
593
  onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
585
594
  readonly dataset: DOMStringMap;
595
+ readonly renderOptions: import("lit-html").RenderOptions;
586
596
  isLTR: boolean;
587
597
  hasVisibleFocusInTree: () => boolean;
588
598
  } & {
@@ -598,34 +608,39 @@ export declare const RadioGroup: import("react").ComponentType<Partial<{
598
608
  'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
599
609
  'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
600
610
  'aria-disabled'?: (boolean | "true" | "false") | undefined;
601
- hidden?: boolean | undefined;
602
- 'aria-describedby'?: string | undefined;
603
- id?: string | undefined;
611
+ 'aria-hidden'?: (boolean | "true" | "false") | undefined;
604
612
  accessKey?: string | undefined;
605
613
  draggable?: (boolean | "true" | "false") | undefined;
614
+ hidden?: boolean | undefined;
606
615
  lang?: string | undefined;
607
616
  translate?: "yes" | "no" | undefined;
608
617
  className?: string | undefined;
618
+ id?: string | undefined;
609
619
  prefix?: string | undefined;
610
620
  children?: import("react").ReactNode;
611
621
  contentEditable?: (boolean | "true" | "false") | "inherit" | undefined;
612
622
  inputMode?: "text" | "search" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
613
623
  nonce?: string | undefined;
614
624
  tabIndex?: number | undefined;
625
+ 'aria-describedby'?: string | undefined;
615
626
  'aria-label'?: string | undefined;
616
627
  defaultChecked?: boolean | undefined;
617
628
  defaultValue?: string | number | readonly string[] | undefined;
618
629
  suppressContentEditableWarning?: boolean | undefined;
619
630
  suppressHydrationWarning?: boolean | undefined;
631
+ autoFocus?: boolean | undefined;
620
632
  contextMenu?: string | undefined;
621
633
  placeholder?: string | undefined;
622
634
  spellCheck?: (boolean | "true" | "false") | undefined;
623
635
  radioGroup?: string | undefined;
624
636
  about?: string | undefined;
637
+ content?: string | undefined;
625
638
  datatype?: string | undefined;
626
639
  inlist?: any;
627
640
  property?: string | undefined;
641
+ rel?: string | undefined;
628
642
  resource?: string | undefined;
643
+ rev?: string | undefined;
629
644
  typeof?: string | undefined;
630
645
  vocab?: string | undefined;
631
646
  autoCapitalize?: string | undefined;
@@ -644,12 +659,16 @@ export declare const RadioGroup: import("react").ComponentType<Partial<{
644
659
  'aria-activedescendant'?: string | undefined;
645
660
  'aria-atomic'?: (boolean | "true" | "false") | undefined;
646
661
  'aria-autocomplete'?: "none" | "both" | "list" | "inline" | undefined;
662
+ 'aria-braillelabel'?: string | undefined;
663
+ 'aria-brailleroledescription'?: string | undefined;
647
664
  'aria-busy'?: (boolean | "true" | "false") | undefined;
648
665
  'aria-colcount'?: number | undefined;
649
666
  'aria-colindex'?: number | undefined;
667
+ 'aria-colindextext'?: string | undefined;
650
668
  'aria-colspan'?: number | undefined;
651
669
  'aria-controls'?: string | undefined;
652
670
  'aria-current'?: boolean | "time" | "true" | "false" | "page" | "step" | "location" | "date" | undefined;
671
+ 'aria-description'?: string | undefined;
653
672
  'aria-details'?: string | undefined;
654
673
  'aria-dropeffect'?: "link" | "copy" | "none" | "execute" | "move" | "popup" | undefined;
655
674
  'aria-errormessage'?: string | undefined;
@@ -657,7 +676,6 @@ export declare const RadioGroup: import("react").ComponentType<Partial<{
657
676
  'aria-flowto'?: string | undefined;
658
677
  'aria-grabbed'?: (boolean | "true" | "false") | undefined;
659
678
  'aria-haspopup'?: boolean | "dialog" | "menu" | "true" | "false" | "grid" | "listbox" | "tree" | undefined;
660
- 'aria-hidden'?: (boolean | "true" | "false") | undefined;
661
679
  'aria-keyshortcuts'?: string | undefined;
662
680
  'aria-labelledby'?: string | undefined;
663
681
  'aria-level'?: number | undefined;
@@ -676,6 +694,7 @@ export declare const RadioGroup: import("react").ComponentType<Partial<{
676
694
  'aria-roledescription'?: string | undefined;
677
695
  'aria-rowcount'?: number | undefined;
678
696
  'aria-rowindex'?: number | undefined;
697
+ 'aria-rowindextext'?: string | undefined;
679
698
  'aria-rowspan'?: number | undefined;
680
699
  'aria-selected'?: (boolean | "true" | "false") | undefined;
681
700
  'aria-setsize'?: number | undefined;
@@ -685,7 +704,7 @@ export declare const RadioGroup: import("react").ComponentType<Partial<{
685
704
  'aria-valuenow'?: number | undefined;
686
705
  'aria-valuetext'?: string | undefined;
687
706
  dangerouslySetInnerHTML?: {
688
- __html: string;
707
+ __html: string | TrustedHTML;
689
708
  } | undefined;
690
709
  onCopy?: import("react").ClipboardEventHandler<import("radio/src").RadioGroup> | undefined;
691
710
  onCopyCapture?: import("react").ClipboardEventHandler<import("radio/src").RadioGroup> | undefined;
@@ -865,16 +884,13 @@ export declare const RadioGroup: import("react").ComponentType<Partial<{
865
884
  autofocus: boolean;
866
885
  normalize: () => void;
867
886
  name: string;
868
- horizontal: boolean;
869
- vertical: boolean;
870
- readonly renderOptions: import("lit-html").RenderOptions;
871
- connectedCallback: () => void;
872
- disconnectedCallback: () => void;
873
887
  readonly renderRoot: HTMLElement | ShadowRoot;
874
888
  isUpdatePending: boolean;
875
889
  hasUpdated: boolean;
876
890
  addController: (controller: import("lit").ReactiveController) => void;
877
891
  removeController: (controller: import("lit").ReactiveController) => void;
892
+ connectedCallback: () => void;
893
+ disconnectedCallback: () => void;
878
894
  attributeChangedCallback: (name: string, _old: string | null, value: string | null) => void;
879
895
  requestUpdate: (name?: PropertyKey | undefined, oldValue?: unknown, options?: import("lit").PropertyDeclaration<unknown, unknown> | undefined) => void;
880
896
  readonly updateComplete: Promise<boolean>;
@@ -1171,6 +1187,9 @@ export declare const RadioGroup: import("react").ComponentType<Partial<{
1171
1187
  onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
1172
1188
  onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
1173
1189
  readonly dataset: DOMStringMap;
1190
+ horizontal: boolean;
1191
+ vertical: boolean;
1192
+ readonly renderOptions: import("lit-html").RenderOptions;
1174
1193
  isLTR: boolean;
1175
1194
  hasVisibleFocusInTree: () => boolean;
1176
1195
  renderHelpText: (negative?: boolean | undefined) => import("lit-html").TemplateResult<2 | 1>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swc-react/radio",
3
- "version": "0.34.1-rc.0+1647bfed5",
3
+ "version": "0.35.1-rc.15+9b76319e4",
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/radio": "^0.34.1-rc.0+1647bfed5"
33
+ "@spectrum-web-components/radio": "^0.35.1-rc.15+9b76319e4"
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": "9b76319e4f1cc7cb0dd03e9d9debf544e5bed4e9"
44
44
  }