@fluentui-react-native/radio-group 0.21.30 → 0.22.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 (231) hide show
  1. package/CHANGELOG.md +57 -0
  2. package/SPEC.md +1 -1
  3. package/lib/Radio/Radio.d.ts +7 -2
  4. package/lib/Radio/Radio.d.ts.map +1 -1
  5. package/lib/Radio/Radio.ios.d.ts +7 -2
  6. package/lib/Radio/Radio.ios.d.ts.map +1 -1
  7. package/lib/Radio/Radio.ios.js +52 -36
  8. package/lib/Radio/Radio.ios.js.map +1 -1
  9. package/lib/Radio/Radio.js +48 -36
  10. package/lib/Radio/Radio.js.map +1 -1
  11. package/lib/Radio/Radio.styling.d.ts +1 -1
  12. package/lib/Radio/Radio.styling.js +109 -88
  13. package/lib/Radio/Radio.types.d.ts +176 -170
  14. package/lib/Radio/Radio.types.js +1 -1
  15. package/lib/Radio/RadioTokens.android.d.ts +1 -1
  16. package/lib/Radio/RadioTokens.android.js +42 -42
  17. package/lib/Radio/RadioTokens.android.js.map +1 -1
  18. package/lib/Radio/RadioTokens.d.ts +1 -1
  19. package/lib/Radio/RadioTokens.ios.d.ts +1 -1
  20. package/lib/Radio/RadioTokens.ios.js +39 -39
  21. package/lib/Radio/RadioTokens.ios.js.map +1 -1
  22. package/lib/Radio/RadioTokens.js +76 -76
  23. package/lib/Radio/RadioTokens.js.map +1 -1
  24. package/lib/Radio/RadioTokens.win32.d.ts +1 -1
  25. package/lib/Radio/RadioTokens.win32.js +89 -89
  26. package/lib/Radio/RadioTokens.win32.js.map +1 -1
  27. package/lib/Radio/__tests__/RadioExperimental.test.d.ts +1 -1
  28. package/lib/Radio/__tests__/RadioExperimental.test.js +15 -8
  29. package/lib/Radio/__tests__/RadioExperimental.test.js.map +1 -1
  30. package/lib/Radio/useRadio.d.ts +1 -1
  31. package/lib/Radio/useRadio.d.ts.map +1 -1
  32. package/lib/Radio/useRadio.js +91 -70
  33. package/lib/Radio/useRadio.js.map +1 -1
  34. package/lib/Radio/useRadio.win32.d.ts +1 -1
  35. package/lib/Radio/useRadio.win32.d.ts.map +1 -1
  36. package/lib/Radio/useRadio.win32.js +143 -121
  37. package/lib/Radio/useRadio.win32.js.map +1 -1
  38. package/lib/RadioGroup/RadioGroup.d.ts +7 -2
  39. package/lib/RadioGroup/RadioGroup.d.ts.map +1 -1
  40. package/lib/RadioGroup/RadioGroup.js +49 -38
  41. package/lib/RadioGroup/RadioGroup.js.map +1 -1
  42. package/lib/RadioGroup/RadioGroup.styling.d.ts +1 -1
  43. package/lib/RadioGroup/RadioGroup.styling.js +51 -42
  44. package/lib/RadioGroup/RadioGroup.types.d.ts +117 -117
  45. package/lib/RadioGroup/RadioGroup.types.js +1 -1
  46. package/lib/RadioGroup/RadioGroupTokens.android.d.ts +1 -1
  47. package/lib/RadioGroup/RadioGroupTokens.android.js +1 -1
  48. package/lib/RadioGroup/RadioGroupTokens.d.ts +1 -1
  49. package/lib/RadioGroup/RadioGroupTokens.ios.d.ts +1 -1
  50. package/lib/RadioGroup/RadioGroupTokens.ios.js +1 -1
  51. package/lib/RadioGroup/RadioGroupTokens.js +12 -12
  52. package/lib/RadioGroup/RadioGroupTokens.js.map +1 -1
  53. package/lib/RadioGroup/RadioGroupTokens.mobile.d.ts +1 -1
  54. package/lib/RadioGroup/RadioGroupTokens.mobile.js +13 -13
  55. package/lib/RadioGroup/RadioGroupTokens.mobile.js.map +1 -1
  56. package/lib/RadioGroup/__tests__/RadioGroupExperimental.test.d.ts +1 -1
  57. package/lib/RadioGroup/__tests__/RadioGroupExperimental.test.js +99 -50
  58. package/lib/RadioGroup/__tests__/RadioGroupExperimental.test.js.map +1 -1
  59. package/lib/RadioGroup/radioGroupContext.d.ts +1 -1
  60. package/lib/RadioGroup/radioGroupContext.js +19 -15
  61. package/lib/RadioGroup/radioGroupContext.js.map +1 -1
  62. package/lib/RadioGroup/useRadioGroup.d.ts +1 -1
  63. package/lib/RadioGroup/useRadioGroup.d.ts.map +1 -1
  64. package/lib/RadioGroup/useRadioGroup.js +93 -63
  65. package/lib/RadioGroup/useRadioGroup.js.map +1 -1
  66. package/lib/RadioGroup/useRadioGroupContextValue.d.ts +2 -3
  67. package/lib/RadioGroup/useRadioGroupContextValue.d.ts.map +1 -1
  68. package/lib/RadioGroup/useRadioGroupContextValue.js +2 -2
  69. package/lib/RadioGroup/useRadioGroupContextValue.js.map +1 -1
  70. package/lib/index.d.ts +25 -4
  71. package/lib/index.js +1 -1
  72. package/lib/legacy/MacOSRadioButtonNativeComponent.d.ts +6 -6
  73. package/lib/legacy/MacOSRadioButtonNativeComponent.js +1 -1
  74. package/lib/legacy/RadioButton.d.ts +8 -2
  75. package/lib/legacy/RadioButton.d.ts.map +1 -1
  76. package/lib/legacy/RadioButton.js +97 -85
  77. package/lib/legacy/RadioButton.js.map +1 -1
  78. package/lib/legacy/RadioButton.macos.d.ts +8 -2
  79. package/lib/legacy/RadioButton.macos.d.ts.map +1 -1
  80. package/lib/legacy/RadioButton.macos.js +49 -50
  81. package/lib/legacy/RadioButton.macos.js.map +1 -1
  82. package/lib/legacy/RadioButton.settings.d.ts +2 -2
  83. package/lib/legacy/RadioButton.settings.js +81 -81
  84. package/lib/legacy/RadioButton.types.d.ts +46 -46
  85. package/lib/legacy/RadioButton.types.d.ts.map +1 -1
  86. package/lib/legacy/RadioButton.types.js +1 -1
  87. package/lib/legacy/RadioButton.win32.d.ts +8 -2
  88. package/lib/legacy/RadioButton.win32.d.ts.map +1 -1
  89. package/lib/legacy/RadioButton.win32.js +152 -137
  90. package/lib/legacy/RadioButton.win32.js.map +1 -1
  91. package/lib/legacy/RadioGroup.d.ts +9 -4
  92. package/lib/legacy/RadioGroup.d.ts.map +1 -1
  93. package/lib/legacy/RadioGroup.js +109 -87
  94. package/lib/legacy/RadioGroup.js.map +1 -1
  95. package/lib/legacy/RadioGroup.settings.d.ts +1 -1
  96. package/lib/legacy/RadioGroup.settings.js +21 -21
  97. package/lib/legacy/RadioGroup.types.d.ts +78 -79
  98. package/lib/legacy/RadioGroup.types.js +1 -1
  99. package/lib/legacy/__tests__/RadioButton.test.d.ts +1 -1
  100. package/lib/legacy/__tests__/RadioButton.test.js +9 -5
  101. package/lib/legacy/__tests__/RadioButton.test.js.map +1 -1
  102. package/lib/legacy/__tests__/RadioButtonGroup.test.d.ts +1 -1
  103. package/lib/legacy/__tests__/RadioButtonGroup.test.js +35 -13
  104. package/lib/legacy/__tests__/RadioButtonGroup.test.js.map +1 -1
  105. package/lib-commonjs/Radio/Radio.d.ts +7 -2
  106. package/lib-commonjs/Radio/Radio.d.ts.map +1 -1
  107. package/lib-commonjs/Radio/Radio.ios.d.ts +7 -2
  108. package/lib-commonjs/Radio/Radio.ios.d.ts.map +1 -1
  109. package/lib-commonjs/Radio/Radio.ios.js +65 -44
  110. package/lib-commonjs/Radio/Radio.ios.js.map +1 -1
  111. package/lib-commonjs/Radio/Radio.js +60 -43
  112. package/lib-commonjs/Radio/Radio.js.map +1 -1
  113. package/lib-commonjs/Radio/Radio.styling.d.ts +1 -1
  114. package/lib-commonjs/Radio/Radio.styling.js +115 -94
  115. package/lib-commonjs/Radio/Radio.styling.js.map +1 -1
  116. package/lib-commonjs/Radio/Radio.types.d.ts +176 -170
  117. package/lib-commonjs/Radio/Radio.types.js +3 -3
  118. package/lib-commonjs/Radio/RadioTokens.android.d.ts +1 -1
  119. package/lib-commonjs/Radio/RadioTokens.android.js +45 -45
  120. package/lib-commonjs/Radio/RadioTokens.android.js.map +1 -1
  121. package/lib-commonjs/Radio/RadioTokens.d.ts +1 -1
  122. package/lib-commonjs/Radio/RadioTokens.ios.d.ts +1 -1
  123. package/lib-commonjs/Radio/RadioTokens.ios.js +42 -42
  124. package/lib-commonjs/Radio/RadioTokens.ios.js.map +1 -1
  125. package/lib-commonjs/Radio/RadioTokens.js +79 -79
  126. package/lib-commonjs/Radio/RadioTokens.js.map +1 -1
  127. package/lib-commonjs/Radio/RadioTokens.win32.d.ts +1 -1
  128. package/lib-commonjs/Radio/RadioTokens.win32.js +92 -92
  129. package/lib-commonjs/Radio/RadioTokens.win32.js.map +1 -1
  130. package/lib-commonjs/Radio/__tests__/RadioExperimental.test.d.ts +1 -1
  131. package/lib-commonjs/Radio/__tests__/RadioExperimental.test.js +69 -35
  132. package/lib-commonjs/Radio/__tests__/RadioExperimental.test.js.map +1 -1
  133. package/lib-commonjs/Radio/useRadio.d.ts +1 -1
  134. package/lib-commonjs/Radio/useRadio.d.ts.map +1 -1
  135. package/lib-commonjs/Radio/useRadio.js +147 -99
  136. package/lib-commonjs/Radio/useRadio.js.map +1 -1
  137. package/lib-commonjs/Radio/useRadio.win32.d.ts +1 -1
  138. package/lib-commonjs/Radio/useRadio.win32.d.ts.map +1 -1
  139. package/lib-commonjs/Radio/useRadio.win32.js +200 -151
  140. package/lib-commonjs/Radio/useRadio.win32.js.map +1 -1
  141. package/lib-commonjs/RadioGroup/RadioGroup.d.ts +7 -2
  142. package/lib-commonjs/RadioGroup/RadioGroup.d.ts.map +1 -1
  143. package/lib-commonjs/RadioGroup/RadioGroup.js +65 -48
  144. package/lib-commonjs/RadioGroup/RadioGroup.js.map +1 -1
  145. package/lib-commonjs/RadioGroup/RadioGroup.styling.d.ts +1 -1
  146. package/lib-commonjs/RadioGroup/RadioGroup.styling.js +57 -48
  147. package/lib-commonjs/RadioGroup/RadioGroup.styling.js.map +1 -1
  148. package/lib-commonjs/RadioGroup/RadioGroup.types.d.ts +117 -117
  149. package/lib-commonjs/RadioGroup/RadioGroup.types.js +3 -3
  150. package/lib-commonjs/RadioGroup/RadioGroupTokens.android.d.ts +1 -1
  151. package/lib-commonjs/RadioGroup/RadioGroupTokens.android.js +10 -5
  152. package/lib-commonjs/RadioGroup/RadioGroupTokens.android.js.map +1 -1
  153. package/lib-commonjs/RadioGroup/RadioGroupTokens.d.ts +1 -1
  154. package/lib-commonjs/RadioGroup/RadioGroupTokens.ios.d.ts +1 -1
  155. package/lib-commonjs/RadioGroup/RadioGroupTokens.ios.js +10 -5
  156. package/lib-commonjs/RadioGroup/RadioGroupTokens.ios.js.map +1 -1
  157. package/lib-commonjs/RadioGroup/RadioGroupTokens.js +15 -15
  158. package/lib-commonjs/RadioGroup/RadioGroupTokens.js.map +1 -1
  159. package/lib-commonjs/RadioGroup/RadioGroupTokens.mobile.d.ts +1 -1
  160. package/lib-commonjs/RadioGroup/RadioGroupTokens.mobile.js +16 -16
  161. package/lib-commonjs/RadioGroup/RadioGroupTokens.mobile.js.map +1 -1
  162. package/lib-commonjs/RadioGroup/__tests__/RadioGroupExperimental.test.d.ts +1 -1
  163. package/lib-commonjs/RadioGroup/__tests__/RadioGroupExperimental.test.js +157 -78
  164. package/lib-commonjs/RadioGroup/__tests__/RadioGroupExperimental.test.js.map +1 -1
  165. package/lib-commonjs/RadioGroup/radioGroupContext.d.ts +1 -1
  166. package/lib-commonjs/RadioGroup/radioGroupContext.js +72 -41
  167. package/lib-commonjs/RadioGroup/radioGroupContext.js.map +1 -1
  168. package/lib-commonjs/RadioGroup/useRadioGroup.d.ts +1 -1
  169. package/lib-commonjs/RadioGroup/useRadioGroup.d.ts.map +1 -1
  170. package/lib-commonjs/RadioGroup/useRadioGroup.js +148 -91
  171. package/lib-commonjs/RadioGroup/useRadioGroup.js.map +1 -1
  172. package/lib-commonjs/RadioGroup/useRadioGroupContextValue.d.ts +2 -3
  173. package/lib-commonjs/RadioGroup/useRadioGroupContextValue.d.ts.map +1 -1
  174. package/lib-commonjs/RadioGroup/useRadioGroupContextValue.js +4 -4
  175. package/lib-commonjs/RadioGroup/useRadioGroupContextValue.js.map +1 -1
  176. package/lib-commonjs/index.d.ts +25 -4
  177. package/lib-commonjs/index.js +128 -32
  178. package/lib-commonjs/index.js.map +1 -1
  179. package/lib-commonjs/legacy/MacOSRadioButtonNativeComponent.d.ts +6 -6
  180. package/lib-commonjs/legacy/MacOSRadioButtonNativeComponent.js +9 -7
  181. package/lib-commonjs/legacy/MacOSRadioButtonNativeComponent.js.map +1 -1
  182. package/lib-commonjs/legacy/RadioButton.d.ts +8 -2
  183. package/lib-commonjs/legacy/RadioButton.d.ts.map +1 -1
  184. package/lib-commonjs/legacy/RadioButton.js +167 -120
  185. package/lib-commonjs/legacy/RadioButton.js.map +1 -1
  186. package/lib-commonjs/legacy/RadioButton.macos.d.ts +8 -2
  187. package/lib-commonjs/legacy/RadioButton.macos.d.ts.map +1 -1
  188. package/lib-commonjs/legacy/RadioButton.macos.js +112 -84
  189. package/lib-commonjs/legacy/RadioButton.macos.js.map +1 -1
  190. package/lib-commonjs/legacy/RadioButton.settings.d.ts +2 -2
  191. package/lib-commonjs/legacy/RadioButton.settings.js +84 -84
  192. package/lib-commonjs/legacy/RadioButton.types.d.ts +46 -46
  193. package/lib-commonjs/legacy/RadioButton.types.d.ts.map +1 -1
  194. package/lib-commonjs/legacy/RadioButton.types.js +3 -3
  195. package/lib-commonjs/legacy/RadioButton.win32.d.ts +8 -2
  196. package/lib-commonjs/legacy/RadioButton.win32.d.ts.map +1 -1
  197. package/lib-commonjs/legacy/RadioButton.win32.js +222 -172
  198. package/lib-commonjs/legacy/RadioButton.win32.js.map +1 -1
  199. package/lib-commonjs/legacy/RadioGroup.d.ts +9 -4
  200. package/lib-commonjs/legacy/RadioGroup.d.ts.map +1 -1
  201. package/lib-commonjs/legacy/RadioGroup.js +173 -122
  202. package/lib-commonjs/legacy/RadioGroup.js.map +1 -1
  203. package/lib-commonjs/legacy/RadioGroup.settings.d.ts +1 -1
  204. package/lib-commonjs/legacy/RadioGroup.settings.js +24 -24
  205. package/lib-commonjs/legacy/RadioGroup.types.d.ts +78 -79
  206. package/lib-commonjs/legacy/RadioGroup.types.js +3 -3
  207. package/lib-commonjs/legacy/__tests__/RadioButton.test.d.ts +1 -1
  208. package/lib-commonjs/legacy/__tests__/RadioButton.test.js +63 -32
  209. package/lib-commonjs/legacy/__tests__/RadioButton.test.js.map +1 -1
  210. package/lib-commonjs/legacy/__tests__/RadioButtonGroup.test.d.ts +1 -1
  211. package/lib-commonjs/legacy/__tests__/RadioButtonGroup.test.js +100 -41
  212. package/lib-commonjs/legacy/__tests__/RadioButtonGroup.test.js.map +1 -1
  213. package/package.json +72 -71
  214. package/src/Radio/Radio.ios.tsx +2 -3
  215. package/src/Radio/Radio.tsx +2 -3
  216. package/src/Radio/__tests__/RadioExperimental.test.tsx +11 -5
  217. package/src/Radio/__tests__/__snapshots__/RadioExperimental.test.tsx.snap +2 -2
  218. package/src/Radio/useRadio.ts +2 -2
  219. package/src/Radio/useRadio.win32.ts +2 -2
  220. package/src/RadioGroup/RadioGroup.tsx +2 -3
  221. package/src/RadioGroup/__tests__/RadioGroupExperimental.test.tsx +53 -47
  222. package/src/RadioGroup/__tests__/__snapshots__/RadioGroupExperimental.test.tsx.snap +12 -12
  223. package/src/legacy/RadioButton.macos.tsx +1 -3
  224. package/src/legacy/RadioButton.tsx +3 -5
  225. package/src/legacy/RadioButton.types.ts +3 -3
  226. package/src/legacy/RadioButton.win32.tsx +3 -5
  227. package/src/legacy/RadioGroup.tsx +1 -3
  228. package/src/legacy/__tests__/RadioButton.test.tsx +6 -3
  229. package/src/legacy/__tests__/RadioButtonGroup.test.tsx +23 -19
  230. package/src/legacy/__tests__/__snapshots__/RadioButton.test.tsx.snap +1 -1
  231. package/src/legacy/__tests__/__snapshots__/RadioButtonGroup.test.tsx.snap +4 -4
@@ -1,35 +1,66 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
- Object.defineProperty(exports, "__esModule", { value: true });
26
- const React = __importStar(require("react"));
27
- const renderer = __importStar(require("react-test-renderer"));
28
- const RadioButton_1 = require("../RadioButton");
1
+ 'use strict';
2
+ var __createBinding =
3
+ (this && this.__createBinding) ||
4
+ (Object.create
5
+ ? function (o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ('get' in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = {
10
+ enumerable: true,
11
+ get: function () {
12
+ return m[k];
13
+ },
14
+ };
15
+ }
16
+ Object.defineProperty(o, k2, desc);
17
+ }
18
+ : function (o, m, k, k2) {
19
+ if (k2 === undefined) k2 = k;
20
+ o[k2] = m[k];
21
+ });
22
+ var __setModuleDefault =
23
+ (this && this.__setModuleDefault) ||
24
+ (Object.create
25
+ ? function (o, v) {
26
+ Object.defineProperty(o, 'default', { enumerable: true, value: v });
27
+ }
28
+ : function (o, v) {
29
+ o['default'] = v;
30
+ });
31
+ var __importStar =
32
+ (this && this.__importStar) ||
33
+ (function () {
34
+ var ownKeys = function (o) {
35
+ ownKeys =
36
+ Object.getOwnPropertyNames ||
37
+ function (o) {
38
+ var ar = [];
39
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
40
+ return ar;
41
+ };
42
+ return ownKeys(o);
43
+ };
44
+ return function (mod) {
45
+ if (mod && mod.__esModule) return mod;
46
+ var result = {};
47
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== 'default') __createBinding(result, mod, k[i]);
48
+ __setModuleDefault(result, mod);
49
+ return result;
50
+ };
51
+ })();
52
+ Object.defineProperty(exports, '__esModule', { value: true });
53
+ const jsx_runtime_1 = require('react/jsx-runtime');
54
+ const react_1 = require('react');
55
+ const renderer = __importStar(require('react-test-renderer'));
56
+ const RadioButton_1 = require('../RadioButton');
29
57
  describe('RadioButton component tests', () => {
30
- it('RadioButton default', () => {
31
- const tree = renderer.create(React.createElement(RadioButton_1.RadioButton, { buttonKey: "key1", content: "Default Button" })).toJSON();
32
- expect(tree).toMatchSnapshot();
58
+ it('RadioButton default', () => {
59
+ let component;
60
+ (0, react_1.act)(() => {
61
+ component = renderer.create(jsx_runtime_1.jsx(RadioButton_1.RadioButton, { buttonKey: 'key1', content: 'Default Button' }));
33
62
  });
63
+ expect(component.toJSON()).toMatchSnapshot();
64
+ });
34
65
  });
35
- //# sourceMappingURL=RadioButton.test.js.map
66
+ //# sourceMappingURL=RadioButton.test.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"RadioButton.test.js","sourceRoot":"","sources":["../../../src/legacy/__tests__/RadioButton.test.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA+B;AAE/B,8DAAgD;AAEhD,gDAA6C;AAE7C,QAAQ,CAAC,6BAA6B,EAAE,GAAG,EAAE;IAC3C,EAAE,CAAC,qBAAqB,EAAE,GAAG,EAAE;QAC7B,MAAM,IAAI,GAAG,QAAQ,CAAC,MAAM,CAAC,oBAAC,yBAAW,IAAC,SAAS,EAAC,MAAM,EAAC,OAAO,EAAC,gBAAgB,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC;QACjG,MAAM,CAAC,IAAI,CAAC,CAAC,eAAe,EAAE,CAAC;IACjC,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"RadioButton.test.js","sourceRoot":"","sources":["../../../src/legacy/__tests__/RadioButton.test.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iCAA4B;AAE5B,MAAY,QAAQ,gDAA4B;AAEhD,gDAA6C;AAE7C,QAAQ,CAAC,6BAA6B,EAAE,GAAG,EAAE,CAAC;IAC5C,EAAE,CAAC,qBAAqB,EAAE,GAAG,EAAE,CAAC;QAC9B,IAAI,SAAqC,CAAC;QAC1C,IAAA,WAAG,EAAC,GAAG,EAAE,CAAC;YACR,SAAS,GAAG,QAAQ,CAAC,MAAM,CAAC,kBAAC,yBAAW,IAAC,SAAS,EAAC,MAAM,EAAC,OAAO,EAAC,gBAAgB,GAAG,CAAC,CAAC;QAAA,CACxF,CAAC,CAAC;QACH,MAAM,CAAC,SAAU,CAAC,MAAM,EAAE,CAAC,CAAC,eAAe,EAAE,CAAC;IAAA,CAC/C,CAAC,CAAC;AAAA,CACJ,CAAC,CAAC"}
@@ -1,2 +1,2 @@
1
1
  export {};
2
- //# sourceMappingURL=RadioButtonGroup.test.d.ts.map
2
+ //# sourceMappingURL=RadioButtonGroup.test.d.ts.map
@@ -1,45 +1,104 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
- Object.defineProperty(exports, "__esModule", { value: true });
26
- const React = __importStar(require("react"));
27
- const react_native_1 = require("react-native");
28
- const renderer = __importStar(require("react-test-renderer"));
29
- const __1 = require("../..");
1
+ 'use strict';
2
+ var __createBinding =
3
+ (this && this.__createBinding) ||
4
+ (Object.create
5
+ ? function (o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ('get' in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = {
10
+ enumerable: true,
11
+ get: function () {
12
+ return m[k];
13
+ },
14
+ };
15
+ }
16
+ Object.defineProperty(o, k2, desc);
17
+ }
18
+ : function (o, m, k, k2) {
19
+ if (k2 === undefined) k2 = k;
20
+ o[k2] = m[k];
21
+ });
22
+ var __setModuleDefault =
23
+ (this && this.__setModuleDefault) ||
24
+ (Object.create
25
+ ? function (o, v) {
26
+ Object.defineProperty(o, 'default', { enumerable: true, value: v });
27
+ }
28
+ : function (o, v) {
29
+ o['default'] = v;
30
+ });
31
+ var __importStar =
32
+ (this && this.__importStar) ||
33
+ (function () {
34
+ var ownKeys = function (o) {
35
+ ownKeys =
36
+ Object.getOwnPropertyNames ||
37
+ function (o) {
38
+ var ar = [];
39
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
40
+ return ar;
41
+ };
42
+ return ownKeys(o);
43
+ };
44
+ return function (mod) {
45
+ if (mod && mod.__esModule) return mod;
46
+ var result = {};
47
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== 'default') __createBinding(result, mod, k[i]);
48
+ __setModuleDefault(result, mod);
49
+ return result;
50
+ };
51
+ })();
52
+ Object.defineProperty(exports, '__esModule', { value: true });
53
+ const jsx_runtime_1 = require('react/jsx-runtime');
54
+ const react_1 = require('react');
55
+ const react_native_1 = require('react-native');
56
+ const renderer = __importStar(require('react-test-renderer'));
57
+ const __1 = require('../..');
30
58
  describe('RadioButton component tests', () => {
31
- it('RadioButton default', () => {
32
- const tree = renderer.create(React.createElement(__1.RadioGroup, { label: "Uncontrolled RadioGroup", defaultSelectedKey: "key2" },
33
- React.createElement(__1.RadioButton, { buttonKey: "key1", content: "RadioButton1" }),
34
- React.createElement(__1.RadioButton, { buttonKey: "key2", content: "RadioButton2" })));
35
- expect(tree).toMatchSnapshot();
59
+ it('RadioButton default', () => {
60
+ let component;
61
+ (0, react_1.act)(() => {
62
+ component = renderer.create(
63
+ jsx_runtime_1.jsxs(__1.RadioGroup, {
64
+ label: 'Uncontrolled RadioGroup',
65
+ defaultSelectedKey: 'key2',
66
+ children: [
67
+ jsx_runtime_1.jsx(__1.RadioButton, { buttonKey: 'key1', content: 'RadioButton1' }),
68
+ jsx_runtime_1.jsx(__1.RadioButton, { buttonKey: 'key2', content: 'RadioButton2' }),
69
+ ],
70
+ }),
71
+ );
36
72
  });
37
- it('RadioButton not direct child of radio group', () => {
38
- const tree = renderer.create(React.createElement(__1.RadioGroup, { label: "Uncontrolled RadioGroup", defaultSelectedKey: "key2" },
39
- React.createElement(react_native_1.View, null,
40
- React.createElement(__1.RadioButton, { buttonKey: "key1", content: "RadioButton1", accessibilityPositionInSet: 1, accessibilitySetSize: 2 }),
41
- React.createElement(__1.RadioButton, { buttonKey: "key2", content: "RadioButton2", accessibilityPositionInSet: 2, accessibilitySetSize: 2 }))));
42
- expect(tree).toMatchSnapshot();
73
+ expect(component.toJSON()).toMatchSnapshot();
74
+ });
75
+ it('RadioButton not direct child of radio group', () => {
76
+ let component;
77
+ (0, react_1.act)(() => {
78
+ component = renderer.create(
79
+ jsx_runtime_1.jsx(__1.RadioGroup, {
80
+ label: 'Uncontrolled RadioGroup',
81
+ defaultSelectedKey: 'key2',
82
+ children: jsx_runtime_1.jsxs(react_native_1.View, {
83
+ children: [
84
+ jsx_runtime_1.jsx(__1.RadioButton, {
85
+ buttonKey: 'key1',
86
+ content: 'RadioButton1',
87
+ accessibilityPosInSet: 1,
88
+ accessibilitySetSize: 2,
89
+ }),
90
+ jsx_runtime_1.jsx(__1.RadioButton, {
91
+ buttonKey: 'key2',
92
+ content: 'RadioButton2',
93
+ accessibilityPosInSet: 2,
94
+ accessibilitySetSize: 2,
95
+ }),
96
+ ],
97
+ }),
98
+ }),
99
+ );
43
100
  });
101
+ expect(component.toJSON()).toMatchSnapshot();
102
+ });
44
103
  });
45
- //# sourceMappingURL=RadioButtonGroup.test.js.map
104
+ //# sourceMappingURL=RadioButtonGroup.test.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"RadioButtonGroup.test.js","sourceRoot":"","sources":["../../../src/legacy/__tests__/RadioButtonGroup.test.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA+B;AAC/B,+CAAoC;AAEpC,8DAAgD;AAEhD,6BAAgD;AAEhD,QAAQ,CAAC,6BAA6B,EAAE,GAAG,EAAE;IAC3C,EAAE,CAAC,qBAAqB,EAAE,GAAG,EAAE;QAC7B,MAAM,IAAI,GAAG,QAAQ,CAAC,MAAM,CAC1B,oBAAC,cAAU,IAAC,KAAK,EAAC,yBAAyB,EAAC,kBAAkB,EAAC,MAAM;YACnE,oBAAC,eAAW,IAAC,SAAS,EAAC,MAAM,EAAC,OAAO,EAAC,cAAc,GAAG;YACvD,oBAAC,eAAW,IAAC,SAAS,EAAC,MAAM,EAAC,OAAO,EAAC,cAAc,GAAG,CAC5C,CACd,CAAC;QAEF,MAAM,CAAC,IAAI,CAAC,CAAC,eAAe,EAAE,CAAC;IACjC,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,6CAA6C,EAAE,GAAG,EAAE;QACrD,MAAM,IAAI,GAAG,QAAQ,CAAC,MAAM,CAC1B,oBAAC,cAAU,IAAC,KAAK,EAAC,yBAAyB,EAAC,kBAAkB,EAAC,MAAM;YACnE,oBAAC,mBAAI;gBACH,oBAAC,eAAW,IAAC,SAAS,EAAC,MAAM,EAAC,OAAO,EAAC,cAAc,EAAC,0BAA0B,EAAE,CAAC,EAAE,oBAAoB,EAAE,CAAC,GAAI;gBAC/G,oBAAC,eAAW,IAAC,SAAS,EAAC,MAAM,EAAC,OAAO,EAAC,cAAc,EAAC,0BAA0B,EAAE,CAAC,EAAE,oBAAoB,EAAE,CAAC,GAAI,CAC1G,CACI,CACd,CAAC;QAEF,MAAM,CAAC,IAAI,CAAC,CAAC,eAAe,EAAE,CAAC;IACjC,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"RadioButtonGroup.test.js","sourceRoot":"","sources":["../../../src/legacy/__tests__/RadioButtonGroup.test.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iCAA4B;AAC5B,+CAAoC;AAEpC,MAAY,QAAQ,gDAA4B;AAEhD,6BAAgD;AAEhD,QAAQ,CAAC,6BAA6B,EAAE,GAAG,EAAE,CAAC;IAC5C,EAAE,CAAC,qBAAqB,EAAE,GAAG,EAAE,CAAC;QAC9B,IAAI,SAAqC,CAAC;QAC1C,IAAA,WAAG,EAAC,GAAG,EAAE,CAAC;YACR,SAAS,GAAG,QAAQ,CAAC,MAAM,CACzB,mBAAC,cAAU,IAAC,KAAK,EAAC,yBAAyB,EAAC,kBAAkB,EAAC,MAAM;oBACnE,kBAAC,eAAW,IAAC,SAAS,EAAC,MAAM,EAAC,OAAO,EAAC,cAAc,GAAG,EACvD,kBAAC,eAAW,IAAC,SAAS,EAAC,MAAM,EAAC,OAAO,EAAC,cAAc,GAAG;oBAC5C,CACd,CAAC;QAAA,CACH,CAAC,CAAC;QACH,MAAM,CAAC,SAAU,CAAC,MAAM,EAAE,CAAC,CAAC,eAAe,EAAE,CAAC;IAAA,CAC/C,CAAC,CAAC;IAEH,EAAE,CAAC,6CAA6C,EAAE,GAAG,EAAE,CAAC;QACtD,IAAI,SAAqC,CAAC;QAC1C,IAAA,WAAG,EAAC,GAAG,EAAE,CAAC;YACR,SAAS,GAAG,QAAQ,CAAC,MAAM,CACzB,kBAAC,cAAU,IAAC,KAAK,EAAC,yBAAyB,EAAC,kBAAkB,EAAC,MAAM,YACnE,mBAAC,mBAAI;wBACH,kBAAC,eAAW,IAAC,SAAS,EAAC,MAAM,EAAC,OAAO,EAAC,cAAc,EAAC,qBAAqB,EAAE,CAAC,EAAE,oBAAoB,EAAE,CAAC,GAAI,EAC1G,kBAAC,eAAW,IAAC,SAAS,EAAC,MAAM,EAAC,OAAO,EAAC,cAAc,EAAC,qBAAqB,EAAE,CAAC,EAAE,oBAAoB,EAAE,CAAC,GAAI;wBACrG,GACI,CACd,CAAC;QAAA,CACH,CAAC,CAAC;QACH,MAAM,CAAC,SAAU,CAAC,MAAM,EAAE,CAAC,CAAC,eAAe,EAAE,CAAC;IAAA,CAC/C,CAAC,CAAC;AAAA,CACJ,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,92 +1,101 @@
1
1
  {
2
2
  "name": "@fluentui-react-native/radio-group",
3
- "version": "0.21.30",
3
+ "version": "0.22.0",
4
4
  "description": "A cross-platform Radio Group component using the Fluent Design System",
5
- "main": "lib-commonjs/index.js",
6
- "module": "lib/index.js",
7
- "react-native": "src/index.ts",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "https://github.com/microsoft/fluentui-react-native.git",
8
+ "directory": "packages/components/RadioGroup"
9
+ },
10
+ "license": "MIT",
11
+ "author": "",
12
+ "sideEffects": false,
8
13
  "exports": {
9
14
  ".": {
15
+ "types": "./lib/index.d.ts",
10
16
  "import": "./lib/index.js",
11
- "require": "./lib-commonjs/index.js",
12
- "types": "./lib/index.d.ts"
17
+ "require": "./lib-commonjs/index.js"
13
18
  }
14
19
  },
15
- "typings": "lib/index.d.ts",
20
+ "main": "lib-commonjs/index.js",
21
+ "module": "lib/index.js",
22
+ "types": "lib/index.d.ts",
16
23
  "scripts": {
17
24
  "build": "fluentui-scripts build",
18
- "just": "fluentui-scripts",
25
+ "build-cjs": "tsgo --outDir lib-commonjs",
26
+ "build-esm": "tsgo --outDir lib --module esnext --moduleResolution bundler",
19
27
  "clean": "fluentui-scripts clean",
20
28
  "depcheck": "fluentui-scripts depcheck",
21
29
  "lint": "fluentui-scripts eslint",
22
- "test": "fluentui-scripts jest",
23
- "update-snapshots": "fluentui-scripts jest -u",
30
+ "lint-package": "fluentui-scripts lint-package",
24
31
  "prettier": "fluentui-scripts prettier",
25
- "prettier-fix": "fluentui-scripts prettier --fix true"
26
- },
27
- "repository": {
28
- "type": "git",
29
- "url": "https://github.com/microsoft/fluentui-react-native.git",
30
- "directory": "packages/components/RadioGroup"
32
+ "test": "fluentui-scripts jest",
33
+ "update-snapshots": "fluentui-scripts jest -u"
31
34
  },
32
35
  "dependencies": {
33
- "@fluentui-react-native/adapters": "0.13.5",
34
- "@fluentui-react-native/focus-zone": "0.21.14",
35
- "@fluentui-react-native/framework": "0.14.16",
36
- "@fluentui-react-native/interactive-hooks": "0.27.18",
37
- "@fluentui-react-native/pressable": "0.12.18",
38
- "@fluentui-react-native/text": "0.24.20",
39
- "@fluentui-react-native/theme-tokens": "0.27.10",
40
- "@fluentui-react-native/tokens": "0.23.10",
41
- "@fluentui-react-native/use-styling": "0.13.12",
42
- "@uifabricshared/foundation-composable": "0.13.11",
43
- "@uifabricshared/foundation-compose": "1.15.16",
44
- "@uifabricshared/foundation-settings": "0.15.11"
36
+ "@fluentui-react-native/adapters": "0.14.0",
37
+ "@fluentui-react-native/focus-zone": "0.22.0",
38
+ "@fluentui-react-native/framework": "0.15.0",
39
+ "@fluentui-react-native/interactive-hooks": "0.28.0",
40
+ "@fluentui-react-native/pressable": "0.13.0",
41
+ "@fluentui-react-native/text": "0.25.0",
42
+ "@fluentui-react-native/theme-tokens": "0.28.0",
43
+ "@fluentui-react-native/tokens": "0.24.0",
44
+ "@fluentui-react-native/use-styling": "0.14.0",
45
+ "@uifabricshared/foundation-composable": "0.14.0",
46
+ "@uifabricshared/foundation-compose": "1.16.0",
47
+ "@uifabricshared/foundation-settings": "0.16.0"
45
48
  },
46
49
  "devDependencies": {
47
50
  "@babel/core": "^7.20.0",
48
51
  "@fluentui-react-native/babel-config": "0.1.1",
49
52
  "@fluentui-react-native/eslint-config-rules": "0.1.1",
53
+ "@fluentui-react-native/framework-base": "0.3.0",
50
54
  "@fluentui-react-native/jest-config": "0.1.1",
51
- "@fluentui-react-native/scripts": "0.1.1",
55
+ "@fluentui-react-native/kit-config": "0.1.2",
56
+ "@fluentui-react-native/scripts": "0.1.2",
52
57
  "@fluentui-react-native/test-tools": "0.1.1",
53
58
  "@office-iss/react-native-win32": "^0.74.0",
54
- "@react-native/babel-preset": "^0.74.0",
55
- "@react-native/metro-config": "^0.74.0",
56
- "@types/react": "~18.2.0",
57
- "@types/react-test-renderer": "^18.2.0",
58
- "react": "18.2.0",
59
- "react-native": "^0.74.0",
60
- "react-native-macos": "^0.74.0",
61
- "react-native-svg": "^15.4.0",
62
- "react-native-windows": "^0.74.0",
63
- "react-test-renderer": "18.2.0"
59
+ "@react-native-community/cli": "^20.0.0",
60
+ "@react-native-community/cli-platform-android": "^20.0.0",
61
+ "@react-native-community/cli-platform-ios": "^20.0.0",
62
+ "@react-native/babel-preset": "^0.81.0",
63
+ "@react-native/metro-config": "^0.81.0",
64
+ "@types/react": "~19.1.0",
65
+ "@types/react-test-renderer": "^19.1.0",
66
+ "react": "19.1.0",
67
+ "react-native": "^0.81.0",
68
+ "react-native-macos": "^0.81.0",
69
+ "react-native-svg": "^15.12.1",
70
+ "react-native-windows": "^0.81.0",
71
+ "react-test-renderer": "19.1.0"
64
72
  },
65
73
  "peerDependencies": {
66
74
  "@office-iss/react-native-win32": "^0.74.0",
67
- "react": "18.2.0",
68
- "react-native": "^0.73.0 || ^0.74.0",
69
- "react-native-macos": "^0.73.0 || ^0.74.0",
70
- "react-native-svg": "^15.0.0 || ^15.4.0",
71
- "react-native-windows": "^0.73.0 || ^0.74.0"
75
+ "@types/react": "~18.2.0 || ~19.0.0 || ~19.1.0",
76
+ "react": "18.2.0 || 19.0.0 || 19.1.0",
77
+ "react-native": "^0.73.0 || ^0.74.0 || ^0.78.0 || ^0.81.0",
78
+ "react-native-macos": "^0.73.0 || ^0.74.0 || ^0.78.0 || ^0.81.0",
79
+ "react-native-svg": ">=15.0.0 <15.13.0 || >=15.4.0 <15.13.0 || ^15.11.2 || ^15.12.1",
80
+ "react-native-windows": "^0.73.0 || ^0.74.0 || ^0.78.0 || ^0.81.0"
81
+ },
82
+ "peerDependenciesMeta": {
83
+ "@office-iss/react-native-win32": {
84
+ "optional": true
85
+ },
86
+ "@types/react": {
87
+ "optional": true
88
+ },
89
+ "react-native-macos": {
90
+ "optional": true
91
+ },
92
+ "react-native-windows": {
93
+ "optional": true
94
+ }
72
95
  },
73
- "author": "",
74
- "license": "MIT",
75
- "sideEffects": false,
76
96
  "rnx-kit": {
77
97
  "kitType": "library",
78
98
  "alignDeps": {
79
- "presets": [
80
- "microsoft/react-native"
81
- ],
82
- "requirements": {
83
- "development": [
84
- "react-native@0.74"
85
- ],
86
- "production": [
87
- "react-native@0.73 || 0.74"
88
- ]
89
- },
90
99
  "capabilities": [
91
100
  "babel-preset-react-native",
92
101
  "core",
@@ -95,20 +104,12 @@
95
104
  "core-macos",
96
105
  "core-windows",
97
106
  "react",
107
+ "react-test-renderer",
98
108
  "svg",
99
- "react-test-renderer"
109
+ "tools-core",
110
+ "tools-jest"
100
111
  ]
101
- }
102
- },
103
- "peerDependenciesMeta": {
104
- "@office-iss/react-native-win32": {
105
- "optional": true
106
112
  },
107
- "react-native-macos": {
108
- "optional": true
109
- },
110
- "react-native-windows": {
111
- "optional": true
112
- }
113
+ "extends": "@fluentui-react-native/kit-config"
113
114
  }
114
- }
115
+ }
@@ -1,9 +1,8 @@
1
- /** @jsxRuntime classic */
2
- /** @jsx withSlots */
1
+ /** @jsxImportSource @fluentui-react-native/framework-base */
3
2
  import { Platform, Pressable, View } from 'react-native';
4
3
 
5
4
  import type { UseSlots } from '@fluentui-react-native/framework';
6
- import { compose, mergeProps, withSlots } from '@fluentui-react-native/framework';
5
+ import { compose, mergeProps } from '@fluentui-react-native/framework';
7
6
  import type { PressableState } from '@fluentui-react-native/interactive-hooks';
8
7
  import { TextV1 as Text } from '@fluentui-react-native/text';
9
8
  import { Svg, Path } from 'react-native-svg';
@@ -1,9 +1,8 @@
1
- /** @jsxRuntime classic */
2
- /** @jsx withSlots */
1
+ /** @jsxImportSource @fluentui-react-native/framework-base */
3
2
  import { Platform, Pressable, View } from 'react-native';
4
3
 
5
4
  import type { UseSlots } from '@fluentui-react-native/framework';
6
- import { compose, mergeProps, withSlots } from '@fluentui-react-native/framework';
5
+ import { compose, mergeProps } from '@fluentui-react-native/framework';
7
6
  import type { PressableState } from '@fluentui-react-native/interactive-hooks';
8
7
  import { TextV1 as Text } from '@fluentui-react-native/text';
9
8
 
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import { act } from 'react';
2
2
 
3
3
  import * as renderer from 'react-test-renderer';
4
4
 
@@ -6,12 +6,18 @@ import { Radio } from '../Radio';
6
6
 
7
7
  describe('Radio component tests', () => {
8
8
  it('Radio default', () => {
9
- const tree = renderer.create(<Radio value="key1" label="Default Radio" />).toJSON();
10
- expect(tree).toMatchSnapshot();
9
+ let component: renderer.ReactTestRenderer;
10
+ act(() => {
11
+ component = renderer.create(<Radio value="key1" label="Default Radio" />);
12
+ });
13
+ expect(component!.toJSON()).toMatchSnapshot();
11
14
  });
12
15
 
13
16
  it('Radio disabled', () => {
14
- const tree = renderer.create(<Radio disabled value="key1" label="Disabled Radio" />).toJSON();
15
- expect(tree).toMatchSnapshot();
17
+ let component: renderer.ReactTestRenderer;
18
+ act(() => {
19
+ component = renderer.create(<Radio disabled value="key1" label="Disabled Radio" />);
20
+ });
21
+ expect(component!.toJSON()).toMatchSnapshot();
16
22
  });
17
23
  });
@@ -10,7 +10,7 @@ exports[`Radio component tests Radio default 1`] = `
10
10
  ]
11
11
  }
12
12
  accessibilityLabel="Default Radio"
13
- accessibilityPositionInSet={0}
13
+ accessibilityPosInSet={0}
14
14
  accessibilityRole="radio"
15
15
  accessibilitySetSize={0}
16
16
  accessibilityState={
@@ -174,7 +174,7 @@ exports[`Radio component tests Radio disabled 1`] = `
174
174
  ]
175
175
  }
176
176
  accessibilityLabel="Disabled Radio"
177
- accessibilityPositionInSet={0}
177
+ accessibilityPosInSet={0}
178
178
  accessibilityRole="radio"
179
179
  accessibilitySetSize={0}
180
180
  accessibilityState={
@@ -26,7 +26,7 @@ export const useRadio = (props: RadioProps): RadioInfo => {
26
26
  accessibilityHint,
27
27
  accessibilityState,
28
28
  componentRef = defaultComponentRef,
29
- accessibilityPositionInSet,
29
+ accessibilityPosInSet,
30
30
  accessibilitySetSize,
31
31
  enableFocusRing,
32
32
  ...rest
@@ -101,7 +101,7 @@ export const useRadio = (props: RadioProps): RadioInfo => {
101
101
  accessibilityHint: accessibilityHint ?? subtext,
102
102
  accessibilityState: getAccessibilityState(state.disabled, state.selected, accessibilityState),
103
103
  accessibilityActions: accessibilityActionsProp,
104
- accessibilityPositionInSet: accessibilityPositionInSet ?? radioGroupContext.values.findIndex((x) => x == value) + 1,
104
+ accessibilityPosInSet: accessibilityPosInSet ?? radioGroupContext.values.findIndex((x) => x == value) + 1,
105
105
  accessibilitySetSize: accessibilitySetSize ?? radioGroupContext.values.length,
106
106
  focusable: !state.disabled,
107
107
  disabled: isDisabled,
@@ -34,7 +34,7 @@ export const useRadio = (props: RadioProps): RadioInfo => {
34
34
  accessibilityHint,
35
35
  accessibilityState,
36
36
  componentRef = defaultComponentRef,
37
- accessibilityPositionInSet,
37
+ accessibilityPosInSet,
38
38
  accessibilitySetSize,
39
39
  ...rest
40
40
  } = props;
@@ -168,7 +168,7 @@ export const useRadio = (props: RadioProps): RadioInfo => {
168
168
  accessibilityHint: accessibilityHint ?? subtext,
169
169
  accessibilityState: getAccessibilityState(state.disabled, state.selected, accessibilityState),
170
170
  accessibilityActions: accessibilityActionsProp,
171
- accessibilityPositionInSet: accessibilityPositionInSet ?? radioGroupContext.values.findIndex((x) => x == value) + 1,
171
+ accessibilityPosInSet: accessibilityPosInSet ?? radioGroupContext.values.findIndex((x) => x == value) + 1,
172
172
  accessibilitySetSize: accessibilitySetSize ?? radioGroupContext.values.length,
173
173
  focusable: !state.disabled,
174
174
  disabled: isDisabled,
@@ -1,11 +1,10 @@
1
- /** @jsxRuntime classic */
2
- /** @jsx withSlots */
1
+ /** @jsxImportSource @fluentui-react-native/framework-base */
3
2
  import * as React from 'react';
4
3
  import { Platform, View } from 'react-native';
5
4
 
6
5
  import { FocusZone } from '@fluentui-react-native/focus-zone';
7
6
  import type { UseSlots } from '@fluentui-react-native/framework';
8
- import { compose, mergeProps, withSlots } from '@fluentui-react-native/framework';
7
+ import { compose, mergeProps } from '@fluentui-react-native/framework';
9
8
  import { TextV1 as Text } from '@fluentui-react-native/text';
10
9
 
11
10
  import { stylingSettings } from './RadioGroup.styling';