@fluentui-react-native/radio-group 0.16.48 → 0.17.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 (52) hide show
  1. package/CHANGELOG.json +94 -1
  2. package/CHANGELOG.md +23 -2
  3. package/lib/Radio/Radio.d.ts.map +1 -1
  4. package/lib/Radio/Radio.js +1 -0
  5. package/lib/Radio/Radio.js.map +1 -1
  6. package/lib/RadioGroup/RadioGroup.d.ts.map +1 -1
  7. package/lib/RadioGroup/RadioGroup.js.map +1 -1
  8. package/lib/RadioGroup/__tests__/RadioGroupExperimental.test.js +149 -54
  9. package/lib/RadioGroup/__tests__/RadioGroupExperimental.test.js.map +1 -1
  10. package/lib/legacy/RadioButton.d.ts.map +1 -1
  11. package/lib/legacy/RadioButton.js +1 -0
  12. package/lib/legacy/RadioButton.js.map +1 -1
  13. package/lib/legacy/RadioButton.macos.d.ts.map +1 -1
  14. package/lib/legacy/RadioButton.macos.js +1 -0
  15. package/lib/legacy/RadioButton.macos.js.map +1 -1
  16. package/lib/legacy/RadioGroup.d.ts +1 -0
  17. package/lib/legacy/RadioGroup.d.ts.map +1 -1
  18. package/lib/legacy/RadioGroup.js +1 -0
  19. package/lib/legacy/RadioGroup.js.map +1 -1
  20. package/lib/legacy/RadioGroup.types.d.ts +2 -2
  21. package/lib/legacy/RadioGroup.types.d.ts.map +1 -1
  22. package/lib-commonjs/Radio/Radio.d.ts.map +1 -1
  23. package/lib-commonjs/Radio/Radio.js +1 -0
  24. package/lib-commonjs/Radio/Radio.js.map +1 -1
  25. package/lib-commonjs/RadioGroup/RadioGroup.d.ts.map +1 -1
  26. package/lib-commonjs/RadioGroup/RadioGroup.js.map +1 -1
  27. package/lib-commonjs/RadioGroup/__tests__/RadioGroupExperimental.test.js +148 -54
  28. package/lib-commonjs/RadioGroup/__tests__/RadioGroupExperimental.test.js.map +1 -1
  29. package/lib-commonjs/legacy/RadioButton.d.ts.map +1 -1
  30. package/lib-commonjs/legacy/RadioButton.js +1 -0
  31. package/lib-commonjs/legacy/RadioButton.js.map +1 -1
  32. package/lib-commonjs/legacy/RadioButton.macos.d.ts.map +1 -1
  33. package/lib-commonjs/legacy/RadioButton.macos.js +1 -0
  34. package/lib-commonjs/legacy/RadioButton.macos.js.map +1 -1
  35. package/lib-commonjs/legacy/RadioGroup.d.ts +1 -0
  36. package/lib-commonjs/legacy/RadioGroup.d.ts.map +1 -1
  37. package/lib-commonjs/legacy/RadioGroup.js +1 -0
  38. package/lib-commonjs/legacy/RadioGroup.js.map +1 -1
  39. package/lib-commonjs/legacy/RadioGroup.types.d.ts +2 -2
  40. package/lib-commonjs/legacy/RadioGroup.types.d.ts.map +1 -1
  41. package/package.json +20 -21
  42. package/src/Radio/Radio.tsx +1 -0
  43. package/src/Radio/__tests__/__snapshots__/RadioExperimental.test.tsx.snap +68 -17
  44. package/src/RadioGroup/RadioGroup.tsx +1 -0
  45. package/src/RadioGroup/__tests__/RadioGroupExperimental.test.tsx +16 -8
  46. package/src/RadioGroup/__tests__/__snapshots__/RadioGroupExperimental.test.tsx.snap +455 -129
  47. package/src/legacy/RadioButton.macos.tsx +1 -0
  48. package/src/legacy/RadioButton.tsx +1 -0
  49. package/src/legacy/RadioGroup.tsx +1 -0
  50. package/src/legacy/RadioGroup.types.ts +2 -2
  51. package/src/legacy/__tests__/__snapshots__/RadioButton.test.tsx.snap +7 -7
  52. package/src/legacy/__tests__/__snapshots__/RadioButtonGroup.test.tsx.snap +32 -32
@@ -1,3 +1,4 @@
1
+ /** @jsxRuntime classic */
1
2
  /** @jsx withSlots */
2
3
  import * as React from 'react';
3
4
  import { Platform, View } from 'react-native';
@@ -9,7 +9,7 @@ import { RadioGroup } from '../RadioGroup';
9
9
  jest.useFakeTimers();
10
10
 
11
11
  describe('RadioGroup component tests', () => {
12
- it('RadioGroup default', () => {
12
+ it('RadioGroup default', async () => {
13
13
  const tree = renderer
14
14
  .create(
15
15
  <RadioGroup label="Uncontrolled RadioGroup" defaultValue="key2">
@@ -19,9 +19,10 @@ describe('RadioGroup component tests', () => {
19
19
  )
20
20
  .toJSON();
21
21
  expect(tree).toMatchSnapshot();
22
+ await renderer.act(async () => null);
22
23
  });
23
24
 
24
- it('Radio not direct child of radio group', () => {
25
+ it('Radio not direct child of radio group', async () => {
25
26
  const tree = renderer
26
27
  .create(
27
28
  <RadioGroup label="Uncontrolled RadioGroup" defaultValue="key2">
@@ -31,9 +32,10 @@ describe('RadioGroup component tests', () => {
31
32
  )
32
33
  .toJSON();
33
34
  expect(tree).toMatchSnapshot();
35
+ await renderer.act(async () => null);
34
36
  });
35
37
 
36
- it('RadioGroup disabled', () => {
38
+ it('RadioGroup disabled', async () => {
37
39
  const tree = renderer
38
40
  .create(
39
41
  <RadioGroup disabled label="Disabled RadioGroup">
@@ -43,9 +45,10 @@ describe('RadioGroup component tests', () => {
43
45
  )
44
46
  .toJSON();
45
47
  expect(tree).toMatchSnapshot();
48
+ await renderer.act(async () => null);
46
49
  });
47
50
 
48
- it('RadioGroup required', () => {
51
+ it('RadioGroup required', async () => {
49
52
  const tree = renderer
50
53
  .create(
51
54
  <RadioGroup required label="Required RadioGroup" defaultValue="key2">
@@ -55,9 +58,10 @@ describe('RadioGroup component tests', () => {
55
58
  )
56
59
  .toJSON();
57
60
  expect(tree).toMatchSnapshot();
61
+ await renderer.act(async () => null);
58
62
  });
59
63
 
60
- it('RadioGroup horizontal', () => {
64
+ it('RadioGroup horizontal', async () => {
61
65
  const tree = renderer
62
66
  .create(
63
67
  <RadioGroup layout="horizontal" label="Horizontal RadioGroup" defaultValue="key2">
@@ -67,9 +71,10 @@ describe('RadioGroup component tests', () => {
67
71
  )
68
72
  .toJSON();
69
73
  expect(tree).toMatchSnapshot();
74
+ await renderer.act(async () => null);
70
75
  });
71
76
 
72
- it('RadioGroup horizontal-stacked', () => {
77
+ it('RadioGroup horizontal-stacked', async () => {
73
78
  const tree = renderer
74
79
  .create(
75
80
  <RadioGroup layout="horizontal-stacked" label="Horizontal-Stacked RadioGroup" defaultValue="key2">
@@ -79,13 +84,16 @@ describe('RadioGroup component tests', () => {
79
84
  )
80
85
  .toJSON();
81
86
  expect(tree).toMatchSnapshot();
87
+ await renderer.act(async () => null);
82
88
  });
83
89
 
84
- it('RadioGroup simple rendering does not invalidate styling', () => {
90
+ it('RadioGroup simple rendering does not invalidate styling', async () => {
85
91
  checkRenderConsistency(() => <RadioGroup>Default RadioGroup</RadioGroup>, 2);
92
+ await renderer.act(async () => null);
86
93
  });
87
94
 
88
- it('RadioGroup re-renders correctly', () => {
95
+ it('RadioGroup re-renders correctly', async () => {
89
96
  checkReRender(() => <RadioGroup>Render twice</RadioGroup>, 2);
97
+ await renderer.act(async () => null);
90
98
  });
91
99
  });