@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,182 +1,232 @@
1
- /** @jsxRuntime classic */
2
- /** @jsx withSlots */
1
+ /** @jsxImportSource @fluentui-react-native/framework-base */
3
2
  'use strict';
4
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
5
- if (k2 === undefined) k2 = k;
6
- var desc = Object.getOwnPropertyDescriptor(m, k);
7
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
8
- desc = { enumerable: true, get: function() { return m[k]; } };
9
- }
10
- Object.defineProperty(o, k2, desc);
11
- }) : (function(o, m, k, k2) {
12
- if (k2 === undefined) k2 = k;
13
- o[k2] = m[k];
14
- }));
15
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
16
- Object.defineProperty(o, "default", { enumerable: true, value: v });
17
- }) : function(o, v) {
18
- o["default"] = v;
19
- });
20
- var __importStar = (this && this.__importStar) || function (mod) {
21
- if (mod && mod.__esModule) return mod;
22
- var result = {};
23
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
24
- __setModuleDefault(result, mod);
25
- return result;
26
- };
27
- Object.defineProperty(exports, "__esModule", { value: true });
3
+ var __createBinding =
4
+ (this && this.__createBinding) ||
5
+ (Object.create
6
+ ? function (o, m, k, k2) {
7
+ if (k2 === undefined) k2 = k;
8
+ var desc = Object.getOwnPropertyDescriptor(m, k);
9
+ if (!desc || ('get' in desc ? !m.__esModule : desc.writable || desc.configurable)) {
10
+ desc = {
11
+ enumerable: true,
12
+ get: function () {
13
+ return m[k];
14
+ },
15
+ };
16
+ }
17
+ Object.defineProperty(o, k2, desc);
18
+ }
19
+ : function (o, m, k, k2) {
20
+ if (k2 === undefined) k2 = k;
21
+ o[k2] = m[k];
22
+ });
23
+ var __setModuleDefault =
24
+ (this && this.__setModuleDefault) ||
25
+ (Object.create
26
+ ? function (o, v) {
27
+ Object.defineProperty(o, 'default', { enumerable: true, value: v });
28
+ }
29
+ : function (o, v) {
30
+ o['default'] = v;
31
+ });
32
+ var __importStar =
33
+ (this && this.__importStar) ||
34
+ (function () {
35
+ var ownKeys = function (o) {
36
+ ownKeys =
37
+ Object.getOwnPropertyNames ||
38
+ function (o) {
39
+ var ar = [];
40
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
41
+ return ar;
42
+ };
43
+ return ownKeys(o);
44
+ };
45
+ return function (mod) {
46
+ if (mod && mod.__esModule) return mod;
47
+ var result = {};
48
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== 'default') __createBinding(result, mod, k[i]);
49
+ __setModuleDefault(result, mod);
50
+ return result;
51
+ };
52
+ })();
53
+ Object.defineProperty(exports, '__esModule', { value: true });
28
54
  exports.RadioButton = void 0;
29
- const React = __importStar(require("react"));
30
- const react_native_1 = require("react-native");
31
- const adapters_1 = require("@fluentui-react-native/adapters");
32
- const interactive_hooks_1 = require("@fluentui-react-native/interactive-hooks");
33
- const text_1 = require("@fluentui-react-native/text");
34
- const tokens_1 = require("@fluentui-react-native/tokens");
35
- const foundation_composable_1 = require("@uifabricshared/foundation-composable");
36
- const foundation_compose_1 = require("@uifabricshared/foundation-compose");
37
- const foundation_settings_1 = require("@uifabricshared/foundation-settings");
38
- const RadioButton_settings_1 = require("./RadioButton.settings");
39
- const RadioButton_types_1 = require("./RadioButton.types");
40
- const RadioGroup_1 = require("./RadioGroup");
55
+ const jsx_runtime_1 = require('@fluentui-react-native/framework-base/jsx-runtime');
56
+ const React = __importStar(require('react'));
57
+ const react_native_1 = require('react-native');
58
+ const adapters_1 = require('@fluentui-react-native/adapters');
59
+ const interactive_hooks_1 = require('@fluentui-react-native/interactive-hooks');
60
+ const text_1 = require('@fluentui-react-native/text');
61
+ const tokens_1 = require('@fluentui-react-native/tokens');
62
+ const foundation_compose_1 = require('@uifabricshared/foundation-compose');
63
+ const foundation_settings_1 = require('@uifabricshared/foundation-settings');
64
+ const RadioButton_settings_1 = require('./RadioButton.settings');
65
+ const RadioButton_types_1 = require('./RadioButton.types');
66
+ const RadioGroup_1 = require('./RadioGroup');
41
67
  var DirectionalArrowKeys;
42
68
  (function (DirectionalArrowKeys) {
43
- DirectionalArrowKeys["ArrowUp"] = "ArrowUp";
44
- DirectionalArrowKeys["ArrowDown"] = "ArrowDown";
45
- DirectionalArrowKeys["ArrowRight"] = "ArrowRight";
46
- DirectionalArrowKeys["ArrowLeft"] = "ArrowLeft";
69
+ DirectionalArrowKeys['ArrowUp'] = 'ArrowUp';
70
+ DirectionalArrowKeys['ArrowDown'] = 'ArrowDown';
71
+ DirectionalArrowKeys['ArrowRight'] = 'ArrowRight';
72
+ DirectionalArrowKeys['ArrowLeft'] = 'ArrowLeft';
47
73
  })(DirectionalArrowKeys || (DirectionalArrowKeys = {}));
48
74
  exports.RadioButton = (0, foundation_compose_1.compose)({
49
- displayName: RadioButton_types_1.radioButtonName,
50
- usePrepareProps: (userProps, useStyling) => {
51
- const defaultComponentRef = React.useRef(null);
52
- const { content, buttonKey, disabled, accessibilityLabel, ariaLabel, componentRef = defaultComponentRef, accessibilityPositionInSet, ariaPosInSet, accessibilitySetSize, ariaSetSize, ...rest } = userProps;
53
- // Grabs the context information from RadioGroup (currently selected button and client's onChange callback)
54
- const info = React.useContext(RadioGroup_1.RadioGroupContext);
55
- const buttonRef = (0, interactive_hooks_1.useViewCommandFocus)(componentRef);
56
- /* We don't want to call the user's onChange multiple times on the same selection. */
57
- const changeSelection = () => {
58
- if (buttonKey != info.selectedKey) {
59
- info.onChange && info.onChange(buttonKey);
60
- info.updateSelectedButtonRef && componentRef && info.updateSelectedButtonRef(componentRef);
61
- }
62
- };
63
- /* We use the componentRef of the currently selected button to maintain the default tabbable
75
+ displayName: RadioButton_types_1.radioButtonName,
76
+ usePrepareProps: (userProps, useStyling) => {
77
+ const defaultComponentRef = React.useRef(null);
78
+ const {
79
+ content,
80
+ buttonKey,
81
+ disabled,
82
+ accessibilityLabel,
83
+ ariaLabel,
84
+ componentRef = defaultComponentRef,
85
+ accessibilityPosInSet,
86
+ ariaPosInSet,
87
+ accessibilitySetSize,
88
+ ariaSetSize,
89
+ ...rest
90
+ } = userProps;
91
+ // Grabs the context information from RadioGroup (currently selected button and client's onChange callback)
92
+ const info = React.useContext(RadioGroup_1.RadioGroupContext);
93
+ const buttonRef = (0, interactive_hooks_1.useViewCommandFocus)(componentRef);
94
+ /* We don't want to call the user's onChange multiple times on the same selection. */
95
+ const changeSelection = () => {
96
+ if (buttonKey != info.selectedKey) {
97
+ info.onChange && info.onChange(buttonKey);
98
+ info.updateSelectedButtonRef && componentRef && info.updateSelectedButtonRef(componentRef);
99
+ }
100
+ };
101
+ /* We use the componentRef of the currently selected button to maintain the default tabbable
64
102
  element in a RadioGroup. Since the componentRef isn't generated until after initial render,
65
103
  we must update it once here. */
66
- React.useEffect(() => {
67
- if (buttonKey == info.selectedKey) {
68
- info.updateSelectedButtonRef && componentRef && info.updateSelectedButtonRef(componentRef);
69
- }
70
- }, []);
71
- // Explicitly only run on mount and unmount
72
- React.useEffect(() => {
73
- info.addRadioButtonKey(buttonKey);
74
- if (!disabled) {
75
- info.addRadioButtonEnabledKey(buttonKey);
76
- }
77
- return () => {
78
- info.removeRadioButtonKey(buttonKey);
79
- info.removeRadioButtonEnabledKey(buttonKey);
80
- };
81
- }, []);
82
- const isRTL = react_native_1.I18nManager.isRTL;
83
- const onInvoke = React.useCallback((e) => {
84
- if (e.nativeEvent.key in DirectionalArrowKeys) {
85
- const length = info.enabledButtonKeys.length;
86
- const next = e.nativeEvent.key === DirectionalArrowKeys.ArrowDown ||
87
- (isRTL ? e.nativeEvent.key === DirectionalArrowKeys.ArrowLeft : e.nativeEvent.key === DirectionalArrowKeys.ArrowRight);
88
- const currRadioButtonIndex = info.enabledButtonKeys.indexOf(info.selectedKey);
89
- let newCurrRadioButtonIndex;
90
- if (next) {
91
- newCurrRadioButtonIndex = (currRadioButtonIndex + 1) % length;
92
- }
93
- else {
94
- // previous
95
- newCurrRadioButtonIndex = (currRadioButtonIndex - 1 + length) % length;
96
- }
97
- info.onChange && info.onChange(info.enabledButtonKeys[newCurrRadioButtonIndex]);
98
- info.updateInvoked && info.updateInvoked(true);
99
- }
100
- }, [info]);
101
- // Sets the updated selected button ref and focus if this Radio is selected via arrow key.
102
- React.useEffect(() => {
103
- if (info.invoked && buttonKey === info.selectedKey && !disabled) {
104
- info.updateSelectedButtonRef && componentRef && info.updateSelectedButtonRef(componentRef);
105
- componentRef?.current?.focus();
106
- info.updateInvoked && info.updateInvoked(false);
107
- }
108
- }, [info.invoked]);
109
- const keys = ['ArrowDown', 'ArrowRight', 'ArrowUp', 'ArrowLeft'];
110
- // Explicitly override onKeyDown to override the native behavior of moving focus with arrow keys.
111
- const onKeyDownProps = (0, interactive_hooks_1.useKeyDownProps)(onInvoke, ...keys);
112
- // Ensure focus is placed on button after click
113
- const changeSelectionWithFocus = () => {
114
- if (buttonKey != info.selectedKey) {
115
- info.onChange && info.onChange(buttonKey);
116
- info.updateSelectedButtonRef && componentRef && info.updateSelectedButtonRef(componentRef);
117
- info.updateInvoked && info.updateInvoked(true);
118
- }
119
- };
120
- /* RadioButton changes selection when focus is moved between each RadioButton and on a click */
121
- const pressable = (0, interactive_hooks_1.useAsPressable)({
122
- ...rest,
123
- onPress: changeSelectionWithFocus,
124
- onFocus: changeSelection,
125
- });
126
- // Used when creating accessibility properties in mergeSettings below
127
- const onAccessibilityAction = React.useCallback((event) => {
128
- switch (event.nativeEvent.actionName) {
129
- case 'Select':
130
- changeSelection();
131
- break;
132
- }
133
- }, [info, buttonKey]);
134
- const state = {
135
- ...pressable.state,
136
- selected: info.selectedKey === userProps.buttonKey && !disabled,
137
- disabled: disabled || false,
138
- };
139
- // Grab the styling information from the userProps, referencing the state as well as the props.
140
- const styleProps = useStyling(userProps, (override) => state[override] || userProps[override]);
141
- const slotProps = (0, foundation_settings_1.mergeSettings)(styleProps, {
142
- root: {
143
- ...rest,
144
- ref: buttonRef,
145
- ...pressable.props,
146
- accessibilityRole: 'radio',
147
- accessibilityLabel: accessibilityLabel ?? ariaLabel ?? content,
148
- accessibilityState: { disabled: state.disabled, selected: state.selected },
149
- accessibilityActions: [{ name: 'Select', label: RadioButton_settings_1.radioButtonSelectActionLabel }],
150
- accessibilityPositionInSet: accessibilityPositionInSet ?? ariaPosInSet ?? info.buttonKeys.findIndex((x) => x == buttonKey) + 1,
151
- accessibilitySetSize: accessibilitySetSize ?? ariaSetSize ?? info.buttonKeys.length,
152
- focusable: !state.disabled,
153
- onAccessibilityAction: onAccessibilityAction,
154
- ...onKeyDownProps,
155
- },
156
- content: { children: content },
157
- });
158
- return { slotProps };
159
- },
160
- render: (Slots, _renderData, ...children) => {
161
- return ((0, foundation_composable_1.withSlots)(Slots.root, null,
162
- (0, foundation_composable_1.withSlots)(Slots.button, null,
163
- (0, foundation_composable_1.withSlots)(Slots.innerCircle, null)),
164
- (0, foundation_composable_1.withSlots)(Slots.content, null),
165
- children));
166
- },
167
- settings: RadioButton_settings_1.settings,
168
- slots: {
169
- root: react_native_1.View,
170
- button: { slotType: react_native_1.View, filter: adapters_1.filterViewProps },
171
- innerCircle: { slotType: react_native_1.View, filter: adapters_1.filterViewProps },
172
- content: text_1.Text,
173
- },
174
- styles: {
175
- root: [],
176
- button: [tokens_1.borderTokens],
177
- innerCircle: [tokens_1.backgroundColorTokens],
178
- content: [tokens_1.foregroundColorTokens, tokens_1.textTokens, [{ source: 'textBorderColor', lookup: tokens_1.getPaletteFromTheme, target: 'borderColor' }]],
179
- },
104
+ React.useEffect(() => {
105
+ if (buttonKey == info.selectedKey) {
106
+ info.updateSelectedButtonRef && componentRef && info.updateSelectedButtonRef(componentRef);
107
+ }
108
+ }, []);
109
+ // Explicitly only run on mount and unmount
110
+ React.useEffect(() => {
111
+ info.addRadioButtonKey(buttonKey);
112
+ if (!disabled) {
113
+ info.addRadioButtonEnabledKey(buttonKey);
114
+ }
115
+ return () => {
116
+ info.removeRadioButtonKey(buttonKey);
117
+ info.removeRadioButtonEnabledKey(buttonKey);
118
+ };
119
+ }, []);
120
+ const isRTL = react_native_1.I18nManager.isRTL;
121
+ const onInvoke = React.useCallback(
122
+ (e) => {
123
+ if (e.nativeEvent.key in DirectionalArrowKeys) {
124
+ const length = info.enabledButtonKeys.length;
125
+ const next =
126
+ e.nativeEvent.key === DirectionalArrowKeys.ArrowDown ||
127
+ (isRTL ? e.nativeEvent.key === DirectionalArrowKeys.ArrowLeft : e.nativeEvent.key === DirectionalArrowKeys.ArrowRight);
128
+ const currRadioButtonIndex = info.enabledButtonKeys.indexOf(info.selectedKey);
129
+ let newCurrRadioButtonIndex;
130
+ if (next) {
131
+ newCurrRadioButtonIndex = (currRadioButtonIndex + 1) % length;
132
+ } else {
133
+ // previous
134
+ newCurrRadioButtonIndex = (currRadioButtonIndex - 1 + length) % length;
135
+ }
136
+ info.onChange && info.onChange(info.enabledButtonKeys[newCurrRadioButtonIndex]);
137
+ info.updateInvoked && info.updateInvoked(true);
138
+ }
139
+ },
140
+ [info],
141
+ );
142
+ // Sets the updated selected button ref and focus if this Radio is selected via arrow key.
143
+ React.useEffect(() => {
144
+ if (info.invoked && buttonKey === info.selectedKey && !disabled) {
145
+ info.updateSelectedButtonRef && componentRef && info.updateSelectedButtonRef(componentRef);
146
+ componentRef?.current?.focus();
147
+ info.updateInvoked && info.updateInvoked(false);
148
+ }
149
+ }, [info.invoked]);
150
+ const keys = ['ArrowDown', 'ArrowRight', 'ArrowUp', 'ArrowLeft'];
151
+ // Explicitly override onKeyDown to override the native behavior of moving focus with arrow keys.
152
+ const onKeyDownProps = (0, interactive_hooks_1.useKeyDownProps)(onInvoke, ...keys);
153
+ // Ensure focus is placed on button after click
154
+ const changeSelectionWithFocus = () => {
155
+ if (buttonKey != info.selectedKey) {
156
+ info.onChange && info.onChange(buttonKey);
157
+ info.updateSelectedButtonRef && componentRef && info.updateSelectedButtonRef(componentRef);
158
+ info.updateInvoked && info.updateInvoked(true);
159
+ }
160
+ };
161
+ /* RadioButton changes selection when focus is moved between each RadioButton and on a click */
162
+ const pressable = (0, interactive_hooks_1.useAsPressable)({
163
+ ...rest,
164
+ onPress: changeSelectionWithFocus,
165
+ onFocus: changeSelection,
166
+ });
167
+ // Used when creating accessibility properties in mergeSettings below
168
+ const onAccessibilityAction = React.useCallback(
169
+ (event) => {
170
+ switch (event.nativeEvent.actionName) {
171
+ case 'Select':
172
+ changeSelection();
173
+ break;
174
+ }
175
+ },
176
+ [info, buttonKey],
177
+ );
178
+ const state = {
179
+ ...pressable.state,
180
+ selected: info.selectedKey === userProps.buttonKey && !disabled,
181
+ disabled: disabled || false,
182
+ };
183
+ // Grab the styling information from the userProps, referencing the state as well as the props.
184
+ const styleProps = useStyling(userProps, (override) => state[override] || userProps[override]);
185
+ const slotProps = (0, foundation_settings_1.mergeSettings)(styleProps, {
186
+ root: {
187
+ ...rest,
188
+ ref: buttonRef,
189
+ ...pressable.props,
190
+ accessibilityRole: 'radio',
191
+ accessibilityLabel: accessibilityLabel ?? ariaLabel ?? content,
192
+ accessibilityState: { disabled: state.disabled, selected: state.selected },
193
+ accessibilityActions: [{ name: 'Select', label: RadioButton_settings_1.radioButtonSelectActionLabel }],
194
+ accessibilityPosInSet: accessibilityPosInSet ?? ariaPosInSet ?? info.buttonKeys.findIndex((x) => x == buttonKey) + 1,
195
+ accessibilitySetSize: accessibilitySetSize ?? ariaSetSize ?? info.buttonKeys.length,
196
+ focusable: !state.disabled,
197
+ onAccessibilityAction: onAccessibilityAction,
198
+ ...onKeyDownProps,
199
+ },
200
+ content: { children: content },
201
+ });
202
+ return { slotProps };
203
+ },
204
+ render: (Slots, _renderData, ...children) => {
205
+ return jsx_runtime_1.jsxs(Slots.root, {
206
+ children: [
207
+ jsx_runtime_1.jsx(Slots.button, { children: jsx_runtime_1.jsx(Slots.innerCircle, {}) }),
208
+ jsx_runtime_1.jsx(Slots.content, {}),
209
+ children,
210
+ ],
211
+ });
212
+ },
213
+ settings: RadioButton_settings_1.settings,
214
+ slots: {
215
+ root: react_native_1.View,
216
+ button: { slotType: react_native_1.View, filter: adapters_1.filterViewProps },
217
+ innerCircle: { slotType: react_native_1.View, filter: adapters_1.filterViewProps },
218
+ content: text_1.Text,
219
+ },
220
+ styles: {
221
+ root: [],
222
+ button: [tokens_1.borderTokens],
223
+ innerCircle: [tokens_1.backgroundColorTokens],
224
+ content: [
225
+ tokens_1.foregroundColorTokens,
226
+ tokens_1.textTokens,
227
+ [{ source: 'textBorderColor', lookup: tokens_1.getPaletteFromTheme, target: 'borderColor' }],
228
+ ],
229
+ },
180
230
  });
181
231
  exports.default = exports.RadioButton;
182
- //# sourceMappingURL=RadioButton.win32.js.map
232
+ //# sourceMappingURL=RadioButton.win32.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"RadioButton.win32.js","sourceRoot":"","sources":["../../src/legacy/RadioButton.win32.tsx"],"names":[],"mappings":"AAAA,0BAA0B;AAC1B,qBAAqB;AACrB,YAAY,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;AACb,6CAA+B;AAC/B,+CAAiD;AAEjD,8DAAkE;AAElE,gFAAgH;AAChH,sDAAmD;AACnD,0DAA4I;AAE5I,iFAAkE;AAElE,2EAA6D;AAC7D,6EAAoE;AAEpE,iEAAgF;AAEhF,2DAAsD;AACtD,6CAAiD;AAEjD,IAAK,oBAKJ;AALD,WAAK,oBAAoB;IACvB,2CAAmB,CAAA;IACnB,+CAAuB,CAAA;IACvB,iDAAyB,CAAA;IACzB,+CAAuB,CAAA;AACzB,CAAC,EALI,oBAAoB,KAApB,oBAAoB,QAKxB;AAEY,QAAA,WAAW,GAAG,IAAA,4BAAO,EAAmB;IACnD,WAAW,EAAE,mCAAe;IAE5B,eAAe,EAAE,CAAC,SAA4B,EAAE,UAAgD,EAAE,EAAE;QAClG,MAAM,mBAAmB,GAAG,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QAC/C,MAAM,EACJ,OAAO,EACP,SAAS,EACT,QAAQ,EACR,kBAAkB,EAClB,SAAS,EACT,YAAY,GAAG,mBAAmB,EAClC,0BAA0B,EAC1B,YAAY,EACZ,oBAAoB,EACpB,WAAW,EACX,GAAG,IAAI,EACR,GAAG,SAAS,CAAC;QAEd,2GAA2G;QAC3G,MAAM,IAAI,GAAG,KAAK,CAAC,UAAU,CAAC,8BAAiB,CAAC,CAAC;QAEjD,MAAM,SAAS,GAAG,IAAA,uCAAmB,EAAC,YAAY,CAAC,CAAC;QAEpD,qFAAqF;QACrF,MAAM,eAAe,GAAG,GAAG,EAAE;YAC3B,IAAI,SAAS,IAAI,IAAI,CAAC,WAAW,EAAE;gBACjC,IAA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;SAC/B,CAAC,CAAC;QAEH,OAAO,EAAE,SAAS,EAAE,CAAC;IAAA,CACtB;IAED,MAAM,EAAE,CAAC,KAAoC,EAAE,WAAmC,EAAE,GAAG,QAA2B,EAAE,EAAE,CAAC;QACrH,OAAO,CACL,mBAAC,KAAK,CAAC,IAAI;gBACT,kBAAC,KAAK,CAAC,MAAM,cACX,kBAAC,KAAK,CAAC,WAAW,KAAG,GACR,EACf,kBAAC,KAAK,CAAC,OAAO,KAAG,EAChB,QAAQ,IACE,CACd,CAAC;IAAA,CACH;IAED,QAAQ,EAAR,+BAAQ;IACR,KAAK,EAAE;QACL,IAAI,EAAE,mBAAI;QACV,MAAM,EAAE,EAAE,QAAQ,EAAE,mBAAI,EAAE,MAAM,EAAE,0BAAe,EAAE;QACnD,WAAW,EAAE,EAAE,QAAQ,EAAE,mBAAI,EAAE,MAAM,EAAE,0BAAe,EAAE;QACxD,OAAO,EAAE,WAAI;KACd;IACD,MAAM,EAAE;QACN,IAAI,EAAE,EAAE;QACR,MAAM,EAAE,CAAC,qBAAY,CAAC;QACtB,WAAW,EAAE,CAAC,8BAAqB,CAAC;QACpC,OAAO,EAAE,CAAC,8BAAqB,EAAE,mBAAU,EAAE,CAAC,EAAE,MAAM,EAAE,iBAAiB,EAAE,MAAM,EAAE,4BAAmB,EAAE,MAAM,EAAE,aAAa,EAAE,CAAC,CAAC;KAClI;CACF,CAAC,CAAC;kBAEY,QAAA,WAAW"}
@@ -1,8 +1,13 @@
1
- /** @jsxRuntime classic */
2
- /** @jsx withSlots */
1
+ /** @jsxImportSource @fluentui-react-native/framework-base */
3
2
  import * as React from 'react';
4
3
  import type { IRadioGroupProps, IRadioGroupState, IRadioGroupSlotProps, IRadioGroupContext } from './RadioGroup.types';
5
4
  export declare const RadioGroupContext: React.Context<IRadioGroupContext>;
6
- export declare const RadioGroup: import("@uifabricshared/foundation-compose").IComposeReturnType<IRadioGroupProps, IRadioGroupSlotProps, import("./RadioGroup.types").IRadioGroupTokens, IRadioGroupState, object>;
5
+ export declare const RadioGroup: import('@uifabricshared/foundation-compose').IComposeReturnType<
6
+ IRadioGroupProps,
7
+ IRadioGroupSlotProps,
8
+ import('./RadioGroup.types').IRadioGroupTokens,
9
+ IRadioGroupState,
10
+ object
11
+ >;
7
12
  export default RadioGroup;
8
- //# sourceMappingURL=RadioGroup.d.ts.map
13
+ //# sourceMappingURL=RadioGroup.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"RadioGroup.d.ts","sourceRoot":"","sources":["../../src/legacy/RadioGroup.tsx"],"names":[],"mappings":"AAAA,0BAA0B;AAC1B,qBAAqB;AACrB,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAc/B,OAAO,KAAK,EAEV,gBAAgB,EAChB,gBAAgB,EAChB,oBAAoB,EAEpB,kBAAkB,EACnB,MAAM,oBAAoB,CAAC;AAG5B,eAAO,MAAM,iBAAiB,mCAS5B,CAAC;AAEH,eAAO,MAAM,UAAU,mLAuHrB,CAAC;AAEH,eAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"RadioGroup.d.ts","sourceRoot":"","sources":["../../src/legacy/RadioGroup.tsx"],"names":[],"mappings":"AAAA,6DAA6D;AAC7D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAa/B,OAAO,KAAK,EAEV,gBAAgB,EAChB,gBAAgB,EAChB,oBAAoB,EAEpB,kBAAkB,EACnB,MAAM,oBAAoB,CAAC;AAG5B,eAAO,MAAM,iBAAiB,mCAS5B,CAAC;AAEH,eAAO,MAAM,UAAU,mLAuHrB,CAAC;AAEH,eAAe,UAAU,CAAC"}