@fluentui-react-native/radio-group 0.22.0 → 0.22.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.
Files changed (156) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/lib/Radio/Radio.d.ts +2 -7
  3. package/lib/Radio/Radio.ios.d.ts +2 -7
  4. package/lib/Radio/Radio.ios.js +31 -50
  5. package/lib/Radio/Radio.js +31 -46
  6. package/lib/Radio/Radio.styling.d.ts +1 -1
  7. package/lib/Radio/Radio.styling.js +88 -109
  8. package/lib/Radio/Radio.types.d.ts +170 -176
  9. package/lib/Radio/Radio.types.js +1 -1
  10. package/lib/Radio/RadioTokens.android.d.ts +1 -1
  11. package/lib/Radio/RadioTokens.android.js +42 -42
  12. package/lib/Radio/RadioTokens.android.js.map +1 -1
  13. package/lib/Radio/RadioTokens.d.ts +1 -1
  14. package/lib/Radio/RadioTokens.ios.d.ts +1 -1
  15. package/lib/Radio/RadioTokens.ios.js +39 -39
  16. package/lib/Radio/RadioTokens.ios.js.map +1 -1
  17. package/lib/Radio/RadioTokens.js +76 -76
  18. package/lib/Radio/RadioTokens.js.map +1 -1
  19. package/lib/Radio/RadioTokens.win32.d.ts +1 -1
  20. package/lib/Radio/RadioTokens.win32.js +89 -89
  21. package/lib/Radio/RadioTokens.win32.js.map +1 -1
  22. package/lib/Radio/__tests__/RadioExperimental.test.d.ts +1 -1
  23. package/lib/Radio/__tests__/RadioExperimental.test.js +14 -14
  24. package/lib/Radio/useRadio.d.ts +1 -1
  25. package/lib/Radio/useRadio.js +70 -91
  26. package/lib/Radio/useRadio.win32.d.ts +1 -1
  27. package/lib/Radio/useRadio.win32.js +121 -143
  28. package/lib/RadioGroup/RadioGroup.d.ts +2 -7
  29. package/lib/RadioGroup/RadioGroup.js +34 -48
  30. package/lib/RadioGroup/RadioGroup.styling.d.ts +1 -1
  31. package/lib/RadioGroup/RadioGroup.styling.js +42 -51
  32. package/lib/RadioGroup/RadioGroup.types.d.ts +117 -117
  33. package/lib/RadioGroup/RadioGroup.types.js +1 -1
  34. package/lib/RadioGroup/RadioGroupTokens.android.d.ts +1 -1
  35. package/lib/RadioGroup/RadioGroupTokens.android.js +1 -1
  36. package/lib/RadioGroup/RadioGroupTokens.d.ts +1 -1
  37. package/lib/RadioGroup/RadioGroupTokens.ios.d.ts +1 -1
  38. package/lib/RadioGroup/RadioGroupTokens.ios.js +1 -1
  39. package/lib/RadioGroup/RadioGroupTokens.js +12 -12
  40. package/lib/RadioGroup/RadioGroupTokens.js.map +1 -1
  41. package/lib/RadioGroup/RadioGroupTokens.mobile.d.ts +1 -1
  42. package/lib/RadioGroup/RadioGroupTokens.mobile.js +13 -13
  43. package/lib/RadioGroup/RadioGroupTokens.mobile.js.map +1 -1
  44. package/lib/RadioGroup/__tests__/RadioGroupExperimental.test.d.ts +1 -1
  45. package/lib/RadioGroup/__tests__/RadioGroupExperimental.test.js +56 -98
  46. package/lib/RadioGroup/radioGroupContext.d.ts +1 -1
  47. package/lib/RadioGroup/radioGroupContext.js +15 -19
  48. package/lib/RadioGroup/useRadioGroup.d.ts +1 -1
  49. package/lib/RadioGroup/useRadioGroup.js +63 -93
  50. package/lib/RadioGroup/useRadioGroupContextValue.d.ts +1 -1
  51. package/lib/RadioGroup/useRadioGroupContextValue.js +2 -2
  52. package/lib/index.d.ts +4 -25
  53. package/lib/index.js +1 -1
  54. package/lib/legacy/MacOSRadioButtonNativeComponent.d.ts +6 -6
  55. package/lib/legacy/MacOSRadioButtonNativeComponent.js +1 -1
  56. package/lib/legacy/RadioButton.d.ts +2 -8
  57. package/lib/legacy/RadioButton.js +80 -96
  58. package/lib/legacy/RadioButton.macos.d.ts +2 -8
  59. package/lib/legacy/RadioButton.macos.js +48 -48
  60. package/lib/legacy/RadioButton.settings.d.ts +2 -2
  61. package/lib/legacy/RadioButton.settings.js +81 -81
  62. package/lib/legacy/RadioButton.types.d.ts +45 -45
  63. package/lib/legacy/RadioButton.types.js +1 -1
  64. package/lib/legacy/RadioButton.win32.d.ts +2 -8
  65. package/lib/legacy/RadioButton.win32.js +132 -151
  66. package/lib/legacy/RadioGroup.d.ts +2 -8
  67. package/lib/legacy/RadioGroup.js +84 -108
  68. package/lib/legacy/RadioGroup.settings.d.ts +1 -1
  69. package/lib/legacy/RadioGroup.settings.js +21 -21
  70. package/lib/legacy/RadioGroup.types.d.ts +79 -78
  71. package/lib/legacy/RadioGroup.types.js +1 -1
  72. package/lib/legacy/__tests__/RadioButton.test.d.ts +1 -1
  73. package/lib/legacy/__tests__/RadioButton.test.js +8 -8
  74. package/lib/legacy/__tests__/RadioButtonGroup.test.d.ts +1 -1
  75. package/lib/legacy/__tests__/RadioButtonGroup.test.js +18 -34
  76. package/lib-commonjs/Radio/Radio.d.ts +2 -7
  77. package/lib-commonjs/Radio/Radio.ios.d.ts +2 -7
  78. package/lib-commonjs/Radio/Radio.ios.js +40 -64
  79. package/lib-commonjs/Radio/Radio.js +39 -59
  80. package/lib-commonjs/Radio/Radio.styling.d.ts +1 -1
  81. package/lib-commonjs/Radio/Radio.styling.js +94 -115
  82. package/lib-commonjs/Radio/Radio.types.d.ts +170 -176
  83. package/lib-commonjs/Radio/Radio.types.js +3 -3
  84. package/lib-commonjs/Radio/RadioTokens.android.d.ts +1 -1
  85. package/lib-commonjs/Radio/RadioTokens.android.js +45 -45
  86. package/lib-commonjs/Radio/RadioTokens.android.js.map +1 -1
  87. package/lib-commonjs/Radio/RadioTokens.d.ts +1 -1
  88. package/lib-commonjs/Radio/RadioTokens.ios.d.ts +1 -1
  89. package/lib-commonjs/Radio/RadioTokens.ios.js +42 -42
  90. package/lib-commonjs/Radio/RadioTokens.ios.js.map +1 -1
  91. package/lib-commonjs/Radio/RadioTokens.js +79 -79
  92. package/lib-commonjs/Radio/RadioTokens.js.map +1 -1
  93. package/lib-commonjs/Radio/RadioTokens.win32.d.ts +1 -1
  94. package/lib-commonjs/Radio/RadioTokens.win32.js +92 -92
  95. package/lib-commonjs/Radio/RadioTokens.win32.js.map +1 -1
  96. package/lib-commonjs/Radio/__tests__/RadioExperimental.test.d.ts +1 -1
  97. package/lib-commonjs/Radio/__tests__/RadioExperimental.test.js +48 -65
  98. package/lib-commonjs/Radio/useRadio.d.ts +1 -1
  99. package/lib-commonjs/Radio/useRadio.js +105 -143
  100. package/lib-commonjs/Radio/useRadio.win32.d.ts +1 -1
  101. package/lib-commonjs/Radio/useRadio.win32.js +157 -196
  102. package/lib-commonjs/RadioGroup/RadioGroup.d.ts +2 -7
  103. package/lib-commonjs/RadioGroup/RadioGroup.js +45 -65
  104. package/lib-commonjs/RadioGroup/RadioGroup.styling.d.ts +1 -1
  105. package/lib-commonjs/RadioGroup/RadioGroup.styling.js +48 -57
  106. package/lib-commonjs/RadioGroup/RadioGroup.types.d.ts +117 -117
  107. package/lib-commonjs/RadioGroup/RadioGroup.types.js +3 -3
  108. package/lib-commonjs/RadioGroup/RadioGroupTokens.android.d.ts +1 -1
  109. package/lib-commonjs/RadioGroup/RadioGroupTokens.android.js +5 -10
  110. package/lib-commonjs/RadioGroup/RadioGroupTokens.d.ts +1 -1
  111. package/lib-commonjs/RadioGroup/RadioGroupTokens.ios.d.ts +1 -1
  112. package/lib-commonjs/RadioGroup/RadioGroupTokens.ios.js +5 -10
  113. package/lib-commonjs/RadioGroup/RadioGroupTokens.js +15 -15
  114. package/lib-commonjs/RadioGroup/RadioGroupTokens.js.map +1 -1
  115. package/lib-commonjs/RadioGroup/RadioGroupTokens.mobile.d.ts +1 -1
  116. package/lib-commonjs/RadioGroup/RadioGroupTokens.mobile.js +16 -16
  117. package/lib-commonjs/RadioGroup/RadioGroupTokens.mobile.js.map +1 -1
  118. package/lib-commonjs/RadioGroup/__tests__/RadioGroupExperimental.test.d.ts +1 -1
  119. package/lib-commonjs/RadioGroup/__tests__/RadioGroupExperimental.test.js +91 -153
  120. package/lib-commonjs/RadioGroup/radioGroupContext.d.ts +1 -1
  121. package/lib-commonjs/RadioGroup/radioGroupContext.js +47 -68
  122. package/lib-commonjs/RadioGroup/useRadioGroup.d.ts +1 -1
  123. package/lib-commonjs/RadioGroup/useRadioGroup.js +97 -144
  124. package/lib-commonjs/RadioGroup/useRadioGroupContextValue.d.ts +1 -1
  125. package/lib-commonjs/RadioGroup/useRadioGroupContextValue.js +4 -4
  126. package/lib-commonjs/index.d.ts +4 -25
  127. package/lib-commonjs/index.js +32 -128
  128. package/lib-commonjs/legacy/MacOSRadioButtonNativeComponent.d.ts +6 -6
  129. package/lib-commonjs/legacy/MacOSRadioButtonNativeComponent.js +7 -9
  130. package/lib-commonjs/legacy/RadioButton.d.ts +2 -8
  131. package/lib-commonjs/legacy/RadioButton.js +121 -162
  132. package/lib-commonjs/legacy/RadioButton.macos.d.ts +2 -8
  133. package/lib-commonjs/legacy/RadioButton.macos.js +88 -107
  134. package/lib-commonjs/legacy/RadioButton.settings.d.ts +2 -2
  135. package/lib-commonjs/legacy/RadioButton.settings.js +84 -84
  136. package/lib-commonjs/legacy/RadioButton.types.d.ts +45 -45
  137. package/lib-commonjs/legacy/RadioButton.types.js +3 -3
  138. package/lib-commonjs/legacy/RadioButton.win32.d.ts +2 -8
  139. package/lib-commonjs/legacy/RadioButton.win32.js +173 -217
  140. package/lib-commonjs/legacy/RadioGroup.d.ts +2 -8
  141. package/lib-commonjs/legacy/RadioGroup.js +125 -168
  142. package/lib-commonjs/legacy/RadioGroup.settings.d.ts +1 -1
  143. package/lib-commonjs/legacy/RadioGroup.settings.js +24 -24
  144. package/lib-commonjs/legacy/RadioGroup.types.d.ts +79 -78
  145. package/lib-commonjs/legacy/RadioGroup.types.js +3 -3
  146. package/lib-commonjs/legacy/__tests__/RadioButton.test.d.ts +1 -1
  147. package/lib-commonjs/legacy/__tests__/RadioButton.test.js +42 -59
  148. package/lib-commonjs/legacy/__tests__/RadioButtonGroup.test.d.ts +1 -1
  149. package/lib-commonjs/legacy/__tests__/RadioButtonGroup.test.js +53 -96
  150. package/package.json +27 -26
  151. package/src/Radio/RadioTokens.android.ts +1 -1
  152. package/src/Radio/RadioTokens.ios.ts +1 -1
  153. package/src/Radio/RadioTokens.ts +1 -1
  154. package/src/Radio/RadioTokens.win32.ts +1 -1
  155. package/src/RadioGroup/RadioGroupTokens.mobile.ts +1 -1
  156. package/src/RadioGroup/RadioGroupTokens.ts +1 -1
@@ -1,66 +1,49 @@
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;
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 () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
41
24
  };
42
- return ownKeys(o);
25
+ return ownKeys(o);
43
26
  };
44
27
  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;
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
50
33
  };
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');
34
+ })();
35
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ const jsx_runtime_1 = require("react/jsx-runtime");
37
+ const react_1 = require("react");
38
+ const renderer = __importStar(require("react-test-renderer"));
39
+ const RadioButton_1 = require("../RadioButton");
57
40
  describe('RadioButton component tests', () => {
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' }));
41
+ it('RadioButton default', () => {
42
+ let component;
43
+ (0, react_1.act)(() => {
44
+ component = renderer.create(jsx_runtime_1.jsx(RadioButton_1.RadioButton, { buttonKey: "key1", content: "Default Button" }));
45
+ });
46
+ expect(component.toJSON()).toMatchSnapshot();
62
47
  });
63
- expect(component.toJSON()).toMatchSnapshot();
64
- });
65
48
  });
66
- //# sourceMappingURL=RadioButton.test.js.map
49
+ //# sourceMappingURL=RadioButton.test.js.map
@@ -1,2 +1,2 @@
1
1
  export {};
2
- //# sourceMappingURL=RadioButtonGroup.test.d.ts.map
2
+ //# sourceMappingURL=RadioButtonGroup.test.d.ts.map
@@ -1,104 +1,61 @@
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;
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 () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
41
24
  };
42
- return ownKeys(o);
25
+ return ownKeys(o);
43
26
  };
44
27
  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;
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
50
33
  };
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('../..');
34
+ })();
35
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ const jsx_runtime_1 = require("react/jsx-runtime");
37
+ const react_1 = require("react");
38
+ const react_native_1 = require("react-native");
39
+ const renderer = __importStar(require("react-test-renderer"));
40
+ const __1 = require("../..");
58
41
  describe('RadioButton component tests', () => {
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
- );
42
+ it('RadioButton default', () => {
43
+ let component;
44
+ (0, react_1.act)(() => {
45
+ component = renderer.create(jsx_runtime_1.jsxs(__1.RadioGroup, { label: "Uncontrolled RadioGroup", defaultSelectedKey: "key2", children: [
46
+ jsx_runtime_1.jsx(__1.RadioButton, { buttonKey: "key1", content: "RadioButton1" }), jsx_runtime_1.jsx(__1.RadioButton, { buttonKey: "key2", content: "RadioButton2" })
47
+ ] }));
48
+ });
49
+ expect(component.toJSON()).toMatchSnapshot();
72
50
  });
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
- );
51
+ it('RadioButton not direct child of radio group', () => {
52
+ let component;
53
+ (0, react_1.act)(() => {
54
+ component = renderer.create(jsx_runtime_1.jsx(__1.RadioGroup, { label: "Uncontrolled RadioGroup", defaultSelectedKey: "key2", children: jsx_runtime_1.jsxs(react_native_1.View, { children: [
55
+ jsx_runtime_1.jsx(__1.RadioButton, { buttonKey: "key1", content: "RadioButton1", accessibilityPosInSet: 1, accessibilitySetSize: 2 }), jsx_runtime_1.jsx(__1.RadioButton, { buttonKey: "key2", content: "RadioButton2", accessibilityPosInSet: 2, accessibilitySetSize: 2 })
56
+ ] }) }));
57
+ });
58
+ expect(component.toJSON()).toMatchSnapshot();
100
59
  });
101
- expect(component.toJSON()).toMatchSnapshot();
102
- });
103
60
  });
104
- //# sourceMappingURL=RadioButtonGroup.test.js.map
61
+ //# sourceMappingURL=RadioButtonGroup.test.js.map
package/package.json CHANGED
@@ -1,60 +1,61 @@
1
1
  {
2
2
  "name": "@fluentui-react-native/radio-group",
3
- "version": "0.22.0",
3
+ "version": "0.22.1",
4
4
  "description": "A cross-platform Radio Group component using the Fluent Design System",
5
+ "license": "MIT",
6
+ "author": "",
5
7
  "repository": {
6
8
  "type": "git",
7
9
  "url": "https://github.com/microsoft/fluentui-react-native.git",
8
10
  "directory": "packages/components/RadioGroup"
9
11
  },
10
- "license": "MIT",
11
- "author": "",
12
12
  "sideEffects": false,
13
+ "main": "lib-commonjs/index.js",
14
+ "module": "lib/index.js",
15
+ "types": "lib/index.d.ts",
13
16
  "exports": {
14
17
  ".": {
15
18
  "types": "./lib/index.d.ts",
16
19
  "import": "./lib/index.js",
17
- "require": "./lib-commonjs/index.js"
20
+ "require": "./lib-commonjs/index.js",
21
+ "default": "./src/index.ts"
18
22
  }
19
23
  },
20
- "main": "lib-commonjs/index.js",
21
- "module": "lib/index.js",
22
- "types": "lib/index.d.ts",
23
24
  "scripts": {
24
25
  "build": "fluentui-scripts build",
25
26
  "build-cjs": "tsgo --outDir lib-commonjs",
26
- "build-esm": "tsgo --outDir lib --module esnext --moduleResolution bundler",
27
+ "build-core": "tsgo --outDir lib --module esnext --moduleResolution bundler",
27
28
  "clean": "fluentui-scripts clean",
28
29
  "depcheck": "fluentui-scripts depcheck",
29
30
  "lint": "fluentui-scripts eslint",
30
31
  "lint-package": "fluentui-scripts lint-package",
31
- "prettier": "fluentui-scripts prettier",
32
+ "format": "fluentui-scripts format",
32
33
  "test": "fluentui-scripts jest",
33
34
  "update-snapshots": "fluentui-scripts jest -u"
34
35
  },
35
36
  "dependencies": {
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"
37
+ "@fluentui-react-native/adapters": "0.14.1",
38
+ "@fluentui-react-native/focus-zone": "0.22.1",
39
+ "@fluentui-react-native/framework": "0.15.1",
40
+ "@fluentui-react-native/interactive-hooks": "0.28.1",
41
+ "@fluentui-react-native/pressable": "0.13.1",
42
+ "@fluentui-react-native/text": "0.25.1",
43
+ "@fluentui-react-native/theme-tokens": "0.28.1",
44
+ "@fluentui-react-native/tokens": "0.24.1",
45
+ "@fluentui-react-native/use-styling": "0.14.1",
46
+ "@uifabricshared/foundation-composable": "0.14.1",
47
+ "@uifabricshared/foundation-compose": "1.16.1",
48
+ "@uifabricshared/foundation-settings": "0.16.1"
48
49
  },
49
50
  "devDependencies": {
50
51
  "@babel/core": "^7.20.0",
51
52
  "@fluentui-react-native/babel-config": "0.1.1",
52
- "@fluentui-react-native/eslint-config-rules": "0.1.1",
53
- "@fluentui-react-native/framework-base": "0.3.0",
54
- "@fluentui-react-native/jest-config": "0.1.1",
53
+ "@fluentui-react-native/eslint-config-rules": "0.1.2",
54
+ "@fluentui-react-native/framework-base": "0.3.1",
55
+ "@fluentui-react-native/jest-config": "0.1.0",
55
56
  "@fluentui-react-native/kit-config": "0.1.2",
56
- "@fluentui-react-native/scripts": "0.1.2",
57
- "@fluentui-react-native/test-tools": "0.1.1",
57
+ "@fluentui-react-native/scripts": "0.1.0",
58
+ "@fluentui-react-native/test-tools": "0.1.0",
58
59
  "@office-iss/react-native-win32": "^0.74.0",
59
60
  "@react-native-community/cli": "^20.0.0",
60
61
  "@react-native-community/cli-platform-android": "^20.0.0",
@@ -56,4 +56,4 @@ export const defaultRadioTokens: TokenSettings<RadioTokens, Theme> = (t: Theme)
56
56
  color: t.colors.neutralForegroundDisabled1,
57
57
  },
58
58
  },
59
- } as RadioTokens);
59
+ }) as RadioTokens;
@@ -55,4 +55,4 @@ export const defaultRadioTokens: TokenSettings<RadioTokens, Theme> = (t: Theme)
55
55
  color: t.colors.neutralForegroundDisabled1,
56
56
  },
57
57
  },
58
- } as RadioTokens);
58
+ }) as RadioTokens;
@@ -95,4 +95,4 @@ export const defaultRadioTokens: TokenSettings<RadioTokens, Theme> = (t: Theme)
95
95
  radioFill: t.colors.neutralForegroundDisabled,
96
96
  },
97
97
  },
98
- } as RadioTokens);
98
+ }) as RadioTokens;
@@ -109,4 +109,4 @@ export const defaultRadioTokens: TokenSettings<RadioTokens, Theme> = (t: Theme)
109
109
  radioFill: t.colors.neutralForegroundDisabled,
110
110
  },
111
111
  },
112
- } as RadioTokens);
112
+ }) as RadioTokens;
@@ -18,4 +18,4 @@ export const defaultRadioGroupTokens: TokenSettings<RadioGroupTokens, Theme> = (
18
18
  isHorizontal: {
19
19
  flexDirection: 'row',
20
20
  },
21
- } as RadioGroupTokens);
21
+ }) as RadioGroupTokens;
@@ -17,4 +17,4 @@ export const defaultRadioGroupTokens: TokenSettings<RadioGroupTokens, Theme> = (
17
17
  isHorizontal: {
18
18
  flexDirection: 'row',
19
19
  },
20
- } as RadioGroupTokens);
20
+ }) as RadioGroupTokens;