@fluentui-react-native/radio-group 0.16.48 → 0.17.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/CHANGELOG.json +109 -1
- package/CHANGELOG.md +31 -2
- package/lib/Radio/Radio.d.ts.map +1 -1
- package/lib/Radio/Radio.js +1 -0
- package/lib/Radio/Radio.js.map +1 -1
- package/lib/RadioGroup/RadioGroup.d.ts.map +1 -1
- package/lib/RadioGroup/RadioGroup.js.map +1 -1
- package/lib/RadioGroup/__tests__/RadioGroupExperimental.test.js +149 -54
- package/lib/RadioGroup/__tests__/RadioGroupExperimental.test.js.map +1 -1
- package/lib/legacy/RadioButton.d.ts.map +1 -1
- package/lib/legacy/RadioButton.js +1 -0
- package/lib/legacy/RadioButton.js.map +1 -1
- package/lib/legacy/RadioButton.macos.d.ts.map +1 -1
- package/lib/legacy/RadioButton.macos.js +1 -0
- package/lib/legacy/RadioButton.macos.js.map +1 -1
- package/lib/legacy/RadioGroup.d.ts +1 -0
- package/lib/legacy/RadioGroup.d.ts.map +1 -1
- package/lib/legacy/RadioGroup.js +1 -0
- package/lib/legacy/RadioGroup.js.map +1 -1
- package/lib/legacy/RadioGroup.types.d.ts +2 -2
- package/lib/legacy/RadioGroup.types.d.ts.map +1 -1
- package/lib-commonjs/Radio/Radio.d.ts.map +1 -1
- package/lib-commonjs/Radio/Radio.js +1 -0
- package/lib-commonjs/Radio/Radio.js.map +1 -1
- package/lib-commonjs/RadioGroup/RadioGroup.d.ts.map +1 -1
- package/lib-commonjs/RadioGroup/RadioGroup.js.map +1 -1
- package/lib-commonjs/RadioGroup/__tests__/RadioGroupExperimental.test.js +148 -54
- package/lib-commonjs/RadioGroup/__tests__/RadioGroupExperimental.test.js.map +1 -1
- package/lib-commonjs/legacy/RadioButton.d.ts.map +1 -1
- package/lib-commonjs/legacy/RadioButton.js +1 -0
- package/lib-commonjs/legacy/RadioButton.js.map +1 -1
- package/lib-commonjs/legacy/RadioButton.macos.d.ts.map +1 -1
- package/lib-commonjs/legacy/RadioButton.macos.js +1 -0
- package/lib-commonjs/legacy/RadioButton.macos.js.map +1 -1
- package/lib-commonjs/legacy/RadioGroup.d.ts +1 -0
- package/lib-commonjs/legacy/RadioGroup.d.ts.map +1 -1
- package/lib-commonjs/legacy/RadioGroup.js +1 -0
- package/lib-commonjs/legacy/RadioGroup.js.map +1 -1
- package/lib-commonjs/legacy/RadioGroup.types.d.ts +2 -2
- package/lib-commonjs/legacy/RadioGroup.types.d.ts.map +1 -1
- package/package.json +20 -21
- package/src/Radio/Radio.tsx +1 -0
- package/src/Radio/__tests__/__snapshots__/RadioExperimental.test.tsx.snap +68 -17
- package/src/RadioGroup/RadioGroup.tsx +1 -0
- package/src/RadioGroup/__tests__/RadioGroupExperimental.test.tsx +16 -8
- package/src/RadioGroup/__tests__/__snapshots__/RadioGroupExperimental.test.tsx.snap +455 -129
- package/src/legacy/RadioButton.macos.tsx +1 -0
- package/src/legacy/RadioButton.tsx +1 -0
- package/src/legacy/RadioGroup.tsx +1 -0
- package/src/legacy/RadioGroup.types.ts +2 -2
- package/src/legacy/__tests__/__snapshots__/RadioButton.test.tsx.snap +7 -7
- package/src/legacy/__tests__/__snapshots__/RadioButtonGroup.test.tsx.snap +32 -32
|
@@ -34,7 +34,7 @@ export interface IRadioGroupState {
|
|
|
34
34
|
context: IRadioGroupContext;
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
-
export
|
|
37
|
+
export type IRadioGroupProps = React.PropsWithChildren<{
|
|
38
38
|
/**
|
|
39
39
|
* Descriptive label for the RadioGroup. This will be displayed as the title of the radio group to the user.
|
|
40
40
|
*/
|
|
@@ -69,7 +69,7 @@ export interface IRadioGroupProps {
|
|
|
69
69
|
onChange?: (key: string) => void;
|
|
70
70
|
|
|
71
71
|
testID?: string;
|
|
72
|
-
}
|
|
72
|
+
}>;
|
|
73
73
|
|
|
74
74
|
export interface IRadioGroupTokens extends IForegroundColorTokens, FontTokens {}
|
|
75
75
|
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
exports[`RadioButton component tests RadioButton default 1`] = `
|
|
4
4
|
<View
|
|
5
5
|
accessibilityActions={
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
[
|
|
7
|
+
{
|
|
8
8
|
"label": "Select a RadioButton",
|
|
9
9
|
"name": "Select",
|
|
10
10
|
},
|
|
@@ -15,7 +15,7 @@ exports[`RadioButton component tests RadioButton default 1`] = `
|
|
|
15
15
|
accessibilityRole="radio"
|
|
16
16
|
accessibilitySetSize={0}
|
|
17
17
|
accessibilityState={
|
|
18
|
-
|
|
18
|
+
{
|
|
19
19
|
"disabled": false,
|
|
20
20
|
"selected": false,
|
|
21
21
|
}
|
|
@@ -34,7 +34,7 @@ exports[`RadioButton component tests RadioButton default 1`] = `
|
|
|
34
34
|
onResponderTerminationRequest={[Function]}
|
|
35
35
|
onStartShouldSetResponder={[Function]}
|
|
36
36
|
style={
|
|
37
|
-
|
|
37
|
+
{
|
|
38
38
|
"alignItems": "center",
|
|
39
39
|
"display": "flex",
|
|
40
40
|
"flexDirection": "row",
|
|
@@ -46,7 +46,7 @@ exports[`RadioButton component tests RadioButton default 1`] = `
|
|
|
46
46
|
>
|
|
47
47
|
<View
|
|
48
48
|
style={
|
|
49
|
-
|
|
49
|
+
{
|
|
50
50
|
"backgroundColor": "transparent",
|
|
51
51
|
"borderColor": "#323130",
|
|
52
52
|
"borderRadius": 10,
|
|
@@ -65,7 +65,7 @@ exports[`RadioButton component tests RadioButton default 1`] = `
|
|
|
65
65
|
>
|
|
66
66
|
<View
|
|
67
67
|
style={
|
|
68
|
-
|
|
68
|
+
{
|
|
69
69
|
"backgroundColor": "#323130",
|
|
70
70
|
"borderRadius": 5,
|
|
71
71
|
"height": 10,
|
|
@@ -80,7 +80,7 @@ exports[`RadioButton component tests RadioButton default 1`] = `
|
|
|
80
80
|
</View>
|
|
81
81
|
<Text
|
|
82
82
|
style={
|
|
83
|
-
|
|
83
|
+
{
|
|
84
84
|
"borderColor": "transparent",
|
|
85
85
|
"borderStyle": "solid",
|
|
86
86
|
"borderWidth": 2,
|
|
@@ -6,7 +6,7 @@ exports[`RadioButton component tests RadioButton default 1`] = `
|
|
|
6
6
|
accessibilityRole="radiogroup"
|
|
7
7
|
accessible={true}
|
|
8
8
|
style={
|
|
9
|
-
|
|
9
|
+
{
|
|
10
10
|
"alignItems": "flex-start",
|
|
11
11
|
"display": "flex",
|
|
12
12
|
"flexDirection": "column",
|
|
@@ -15,7 +15,7 @@ exports[`RadioButton component tests RadioButton default 1`] = `
|
|
|
15
15
|
>
|
|
16
16
|
<Text
|
|
17
17
|
style={
|
|
18
|
-
|
|
18
|
+
{
|
|
19
19
|
"color": "#323130",
|
|
20
20
|
"fontFamily": "Segoe UI",
|
|
21
21
|
"fontSize": 16,
|
|
@@ -31,8 +31,8 @@ exports[`RadioButton component tests RadioButton default 1`] = `
|
|
|
31
31
|
>
|
|
32
32
|
<View
|
|
33
33
|
accessibilityActions={
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
[
|
|
35
|
+
{
|
|
36
36
|
"label": "Select a RadioButton",
|
|
37
37
|
"name": "Select",
|
|
38
38
|
},
|
|
@@ -43,7 +43,7 @@ exports[`RadioButton component tests RadioButton default 1`] = `
|
|
|
43
43
|
accessibilityRole="radio"
|
|
44
44
|
accessibilitySetSize={2}
|
|
45
45
|
accessibilityState={
|
|
46
|
-
|
|
46
|
+
{
|
|
47
47
|
"disabled": false,
|
|
48
48
|
"selected": false,
|
|
49
49
|
}
|
|
@@ -62,7 +62,7 @@ exports[`RadioButton component tests RadioButton default 1`] = `
|
|
|
62
62
|
onResponderTerminationRequest={[Function]}
|
|
63
63
|
onStartShouldSetResponder={[Function]}
|
|
64
64
|
style={
|
|
65
|
-
|
|
65
|
+
{
|
|
66
66
|
"alignItems": "center",
|
|
67
67
|
"display": "flex",
|
|
68
68
|
"flexDirection": "row",
|
|
@@ -74,7 +74,7 @@ exports[`RadioButton component tests RadioButton default 1`] = `
|
|
|
74
74
|
>
|
|
75
75
|
<View
|
|
76
76
|
style={
|
|
77
|
-
|
|
77
|
+
{
|
|
78
78
|
"backgroundColor": "transparent",
|
|
79
79
|
"borderColor": "#323130",
|
|
80
80
|
"borderRadius": 10,
|
|
@@ -93,7 +93,7 @@ exports[`RadioButton component tests RadioButton default 1`] = `
|
|
|
93
93
|
>
|
|
94
94
|
<View
|
|
95
95
|
style={
|
|
96
|
-
|
|
96
|
+
{
|
|
97
97
|
"backgroundColor": "#323130",
|
|
98
98
|
"borderRadius": 5,
|
|
99
99
|
"height": 10,
|
|
@@ -108,7 +108,7 @@ exports[`RadioButton component tests RadioButton default 1`] = `
|
|
|
108
108
|
</View>
|
|
109
109
|
<Text
|
|
110
110
|
style={
|
|
111
|
-
|
|
111
|
+
{
|
|
112
112
|
"borderColor": "transparent",
|
|
113
113
|
"borderStyle": "solid",
|
|
114
114
|
"borderWidth": 2,
|
|
@@ -126,8 +126,8 @@ exports[`RadioButton component tests RadioButton default 1`] = `
|
|
|
126
126
|
</View>
|
|
127
127
|
<View
|
|
128
128
|
accessibilityActions={
|
|
129
|
-
|
|
130
|
-
|
|
129
|
+
[
|
|
130
|
+
{
|
|
131
131
|
"label": "Select a RadioButton",
|
|
132
132
|
"name": "Select",
|
|
133
133
|
},
|
|
@@ -138,7 +138,7 @@ exports[`RadioButton component tests RadioButton default 1`] = `
|
|
|
138
138
|
accessibilityRole="radio"
|
|
139
139
|
accessibilitySetSize={2}
|
|
140
140
|
accessibilityState={
|
|
141
|
-
|
|
141
|
+
{
|
|
142
142
|
"disabled": false,
|
|
143
143
|
"selected": true,
|
|
144
144
|
}
|
|
@@ -157,7 +157,7 @@ exports[`RadioButton component tests RadioButton default 1`] = `
|
|
|
157
157
|
onResponderTerminationRequest={[Function]}
|
|
158
158
|
onStartShouldSetResponder={[Function]}
|
|
159
159
|
style={
|
|
160
|
-
|
|
160
|
+
{
|
|
161
161
|
"alignItems": "center",
|
|
162
162
|
"display": "flex",
|
|
163
163
|
"flexDirection": "row",
|
|
@@ -169,7 +169,7 @@ exports[`RadioButton component tests RadioButton default 1`] = `
|
|
|
169
169
|
>
|
|
170
170
|
<View
|
|
171
171
|
style={
|
|
172
|
-
|
|
172
|
+
{
|
|
173
173
|
"backgroundColor": "transparent",
|
|
174
174
|
"borderColor": "#323130",
|
|
175
175
|
"borderRadius": 10,
|
|
@@ -188,7 +188,7 @@ exports[`RadioButton component tests RadioButton default 1`] = `
|
|
|
188
188
|
>
|
|
189
189
|
<View
|
|
190
190
|
style={
|
|
191
|
-
|
|
191
|
+
{
|
|
192
192
|
"backgroundColor": "#323130",
|
|
193
193
|
"borderRadius": 5,
|
|
194
194
|
"height": 10,
|
|
@@ -203,7 +203,7 @@ exports[`RadioButton component tests RadioButton default 1`] = `
|
|
|
203
203
|
</View>
|
|
204
204
|
<Text
|
|
205
205
|
style={
|
|
206
|
-
|
|
206
|
+
{
|
|
207
207
|
"borderColor": "transparent",
|
|
208
208
|
"borderStyle": "solid",
|
|
209
209
|
"borderWidth": 2,
|
|
@@ -229,7 +229,7 @@ exports[`RadioButton component tests RadioButton not direct child of radio group
|
|
|
229
229
|
accessibilityRole="radiogroup"
|
|
230
230
|
accessible={true}
|
|
231
231
|
style={
|
|
232
|
-
|
|
232
|
+
{
|
|
233
233
|
"alignItems": "flex-start",
|
|
234
234
|
"display": "flex",
|
|
235
235
|
"flexDirection": "column",
|
|
@@ -238,7 +238,7 @@ exports[`RadioButton component tests RadioButton not direct child of radio group
|
|
|
238
238
|
>
|
|
239
239
|
<Text
|
|
240
240
|
style={
|
|
241
|
-
|
|
241
|
+
{
|
|
242
242
|
"color": "#323130",
|
|
243
243
|
"fontFamily": "Segoe UI",
|
|
244
244
|
"fontSize": 16,
|
|
@@ -255,8 +255,8 @@ exports[`RadioButton component tests RadioButton not direct child of radio group
|
|
|
255
255
|
<View>
|
|
256
256
|
<View
|
|
257
257
|
accessibilityActions={
|
|
258
|
-
|
|
259
|
-
|
|
258
|
+
[
|
|
259
|
+
{
|
|
260
260
|
"label": "Select a RadioButton",
|
|
261
261
|
"name": "Select",
|
|
262
262
|
},
|
|
@@ -267,7 +267,7 @@ exports[`RadioButton component tests RadioButton not direct child of radio group
|
|
|
267
267
|
accessibilityRole="radio"
|
|
268
268
|
accessibilitySetSize={2}
|
|
269
269
|
accessibilityState={
|
|
270
|
-
|
|
270
|
+
{
|
|
271
271
|
"disabled": false,
|
|
272
272
|
"selected": false,
|
|
273
273
|
}
|
|
@@ -286,7 +286,7 @@ exports[`RadioButton component tests RadioButton not direct child of radio group
|
|
|
286
286
|
onResponderTerminationRequest={[Function]}
|
|
287
287
|
onStartShouldSetResponder={[Function]}
|
|
288
288
|
style={
|
|
289
|
-
|
|
289
|
+
{
|
|
290
290
|
"alignItems": "center",
|
|
291
291
|
"display": "flex",
|
|
292
292
|
"flexDirection": "row",
|
|
@@ -298,7 +298,7 @@ exports[`RadioButton component tests RadioButton not direct child of radio group
|
|
|
298
298
|
>
|
|
299
299
|
<View
|
|
300
300
|
style={
|
|
301
|
-
|
|
301
|
+
{
|
|
302
302
|
"backgroundColor": "transparent",
|
|
303
303
|
"borderColor": "#323130",
|
|
304
304
|
"borderRadius": 10,
|
|
@@ -317,7 +317,7 @@ exports[`RadioButton component tests RadioButton not direct child of radio group
|
|
|
317
317
|
>
|
|
318
318
|
<View
|
|
319
319
|
style={
|
|
320
|
-
|
|
320
|
+
{
|
|
321
321
|
"backgroundColor": "#323130",
|
|
322
322
|
"borderRadius": 5,
|
|
323
323
|
"height": 10,
|
|
@@ -332,7 +332,7 @@ exports[`RadioButton component tests RadioButton not direct child of radio group
|
|
|
332
332
|
</View>
|
|
333
333
|
<Text
|
|
334
334
|
style={
|
|
335
|
-
|
|
335
|
+
{
|
|
336
336
|
"borderColor": "transparent",
|
|
337
337
|
"borderStyle": "solid",
|
|
338
338
|
"borderWidth": 2,
|
|
@@ -350,8 +350,8 @@ exports[`RadioButton component tests RadioButton not direct child of radio group
|
|
|
350
350
|
</View>
|
|
351
351
|
<View
|
|
352
352
|
accessibilityActions={
|
|
353
|
-
|
|
354
|
-
|
|
353
|
+
[
|
|
354
|
+
{
|
|
355
355
|
"label": "Select a RadioButton",
|
|
356
356
|
"name": "Select",
|
|
357
357
|
},
|
|
@@ -362,7 +362,7 @@ exports[`RadioButton component tests RadioButton not direct child of radio group
|
|
|
362
362
|
accessibilityRole="radio"
|
|
363
363
|
accessibilitySetSize={2}
|
|
364
364
|
accessibilityState={
|
|
365
|
-
|
|
365
|
+
{
|
|
366
366
|
"disabled": false,
|
|
367
367
|
"selected": true,
|
|
368
368
|
}
|
|
@@ -381,7 +381,7 @@ exports[`RadioButton component tests RadioButton not direct child of radio group
|
|
|
381
381
|
onResponderTerminationRequest={[Function]}
|
|
382
382
|
onStartShouldSetResponder={[Function]}
|
|
383
383
|
style={
|
|
384
|
-
|
|
384
|
+
{
|
|
385
385
|
"alignItems": "center",
|
|
386
386
|
"display": "flex",
|
|
387
387
|
"flexDirection": "row",
|
|
@@ -393,7 +393,7 @@ exports[`RadioButton component tests RadioButton not direct child of radio group
|
|
|
393
393
|
>
|
|
394
394
|
<View
|
|
395
395
|
style={
|
|
396
|
-
|
|
396
|
+
{
|
|
397
397
|
"backgroundColor": "transparent",
|
|
398
398
|
"borderColor": "#323130",
|
|
399
399
|
"borderRadius": 10,
|
|
@@ -412,7 +412,7 @@ exports[`RadioButton component tests RadioButton not direct child of radio group
|
|
|
412
412
|
>
|
|
413
413
|
<View
|
|
414
414
|
style={
|
|
415
|
-
|
|
415
|
+
{
|
|
416
416
|
"backgroundColor": "#323130",
|
|
417
417
|
"borderRadius": 5,
|
|
418
418
|
"height": 10,
|
|
@@ -427,7 +427,7 @@ exports[`RadioButton component tests RadioButton not direct child of radio group
|
|
|
427
427
|
</View>
|
|
428
428
|
<Text
|
|
429
429
|
style={
|
|
430
|
-
|
|
430
|
+
{
|
|
431
431
|
"borderColor": "transparent",
|
|
432
432
|
"borderStyle": "solid",
|
|
433
433
|
"borderWidth": 2,
|