@fluentui-react-native/radio-group 0.21.31 → 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
package/CHANGELOG.md CHANGED
@@ -1,5 +1,53 @@
1
1
  # Change Log - @fluentui-react-native/radio-group
2
2
 
3
+ ## 0.22.0
4
+
5
+ ### Minor Changes
6
+
7
+ - d7adbdd: # Migration from Beachball to Changesets
8
+
9
+ This changeset represents the migration from Beachball to Changesets for version management and consolidates all changes from 440+ beachball change files that were in the `change/` directory.
10
+
11
+ All 75 affected packages receive a minor version bump to acknowledge the accumulated changes from the beachball era.
12
+
13
+ ## What Changed
14
+
15
+ Going forward, all version management uses Changesets via `yarn changeset`. The following beachball infrastructure has been removed:
16
+
17
+ - ❌ 440+ beachball change files from `change/` directory
18
+ - ❌ `beachball` package dependency
19
+ - ❌ Beachball scripts from `package.json`
20
+ - ❌ `beachball.config.js` configuration file
21
+ - ❌ Beachball publish steps from Azure Pipelines
22
+
23
+ ## New Workflow
24
+
25
+ ✅ **Create changes**: Run `yarn changeset` to document changes
26
+ ✅ **Version bump PRs**: Automatically created by GitHub Actions
27
+ ✅ **Publishing**: Handled by Azure Pipelines using `changeset publish`
28
+ ✅ **Validation**: CI validates changesets and blocks major version bumps
29
+
30
+ For details, see `CHANGESETS_SETUP.md` and `CONTRIBUTING.md`.
31
+
32
+ ### Patch Changes
33
+
34
+ - d1d8c26: We were pinning @types/react and react-native-macos via resolutions. This fixes that which uncovered a bunch of type inconsistencies that needed to be addressed.
35
+ - Updated dependencies [d7adbdd]
36
+ - Updated dependencies [d1d8c26]
37
+ - Updated dependencies [d1d8c26]
38
+ - @fluentui-react-native/adapters@0.14.0
39
+ - @fluentui-react-native/focus-zone@0.22.0
40
+ - @fluentui-react-native/framework@0.15.0
41
+ - @fluentui-react-native/interactive-hooks@0.28.0
42
+ - @fluentui-react-native/pressable@0.13.0
43
+ - @fluentui-react-native/text@0.25.0
44
+ - @fluentui-react-native/theme-tokens@0.28.0
45
+ - @fluentui-react-native/tokens@0.24.0
46
+ - @fluentui-react-native/use-styling@0.14.0
47
+ - @uifabricshared/foundation-composable@0.14.0
48
+ - @uifabricshared/foundation-compose@1.16.0
49
+ - @uifabricshared/foundation-settings@0.16.0
50
+
3
51
  <!-- This log was last generated on Tue, 05 Aug 2025 18:50:41 GMT and should not be manually modified. -->
4
52
 
5
53
  <!-- Start content -->
@@ -2879,30 +2927,39 @@ Thu, 16 Apr 2020 23:57:38 GMT
2879
2927
  - publish with correct main/module references (jasonmo@microsoft.com)
2880
2928
 
2881
2929
  ## 0.2.11
2930
+
2882
2931
  Thu, 09 Apr 2020 18:39:15 GMT
2883
2932
 
2884
2933
  ### Patches
2885
2934
 
2886
2935
  - merge conflicts (ppatboyd@outlook.com)
2936
+
2887
2937
  ## 0.2.9
2938
+
2888
2939
  Fri, 03 Apr 2020 20:40:51 GMT
2889
2940
 
2890
2941
  ### Patches
2891
2942
 
2892
2943
  - switch the bin name from just-script to fluent-scripts to disambiguate names (jasonmo@microsoft.com)
2944
+
2893
2945
  ## 0.2.8
2946
+
2894
2947
  Tue, 31 Mar 2020 18:01:09 GMT
2895
2948
 
2896
2949
  ### Patches
2897
2950
 
2898
2951
  - Updating Checkbox version (safreibe@microsoft.com)
2952
+
2899
2953
  ## 0.2.7
2954
+
2900
2955
  Mon, 30 Mar 2020 16:27:00 GMT
2901
2956
 
2902
2957
  ### Patches
2903
2958
 
2904
2959
  - Update main attribute to specify TypeScript index file. (kinhln@microsoft.com)
2960
+
2905
2961
  ## 0.2.0
2962
+
2906
2963
  Mon, 16 Mar 2020 23:03:24 GMT
2907
2964
 
2908
2965
  ### Minor changes
package/SPEC.md CHANGED
@@ -23,7 +23,7 @@ const radiogroup = (
23
23
  );
24
24
  ```
25
25
 
26
- More examples on the [Test pages for RadioGroup](../../../apps/fluent-tester/src/TestComponents/RadioGroupV1). Instructions on running the tester app can be found [here](../../../apps/fluent-tester/README.md).
26
+ More examples on the [Test pages for RadioGroup](../../../apps/tester-core/src/TestComponents/RadioGroupV1). Instructions on running the tester app can be found [here](../../../apps/fluent-tester/README.md).
27
27
 
28
28
  ## Visual Examples
29
29
 
@@ -9,5 +9,10 @@ import type { RadioProps } from './Radio.types';
9
9
  * @returns Whether the styles that are assigned to the layer should be applied to the Radio
10
10
  */
11
11
  export declare const radioLookup: (layer: string, state: PressableState, userProps: RadioProps) => boolean;
12
- export declare const Radio: import("@fluentui-react-native/framework").ComposableComponent<RadioProps, import("./Radio.types").RadioSlotProps, import("./Radio.types").RadioTokens, import("@fluentui-react-native/framework").ObjectBase>;
13
- //# sourceMappingURL=Radio.d.ts.map
12
+ export declare const Radio: import('@fluentui-react-native/framework').ComposableComponent<
13
+ RadioProps,
14
+ import('./Radio.types').RadioSlotProps,
15
+ import('./Radio.types').RadioTokens,
16
+ import('@fluentui-react-native/framework-base').ObjectBase
17
+ >;
18
+ //# sourceMappingURL=Radio.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Radio.d.ts","sourceRoot":"","sources":["../../src/Radio/Radio.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0CAA0C,CAAC;AAI/E,OAAO,KAAK,EAAa,UAAU,EAAE,MAAM,eAAe,CAAC;AAI3D;;;;;;;GAOG;AACH,eAAO,MAAM,WAAW,UAAW,MAAM,SAAS,cAAc,aAAa,UAAU,KAAG,OAQzF,CAAC;AAEF,eAAO,MAAM,KAAK,gNA6ChB,CAAC"}
1
+ {"version":3,"file":"Radio.d.ts","sourceRoot":"","sources":["../../src/Radio/Radio.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0CAA0C,CAAC;AAI/E,OAAO,KAAK,EAAa,UAAU,EAAE,MAAM,eAAe,CAAC;AAI3D;;;;;;;GAOG;AACH,eAAO,MAAM,WAAW,0EAQvB,CAAC;AAEF,eAAO,MAAM,KAAK,qNA6ChB,CAAC"}
@@ -9,5 +9,10 @@ import type { RadioProps } from './Radio.types';
9
9
  * @returns Whether the styles that are assigned to the layer should be applied to the Radio
10
10
  */
11
11
  export declare const radioLookup: (layer: string, state: PressableState, userProps: RadioProps) => boolean;
12
- export declare const Radio: import("@fluentui-react-native/framework").ComposableComponent<RadioProps, import("./Radio.types").RadioSlotProps, import("./Radio.types").RadioTokens, import("@fluentui-react-native/framework").ObjectBase>;
13
- //# sourceMappingURL=Radio.ios.d.ts.map
12
+ export declare const Radio: import('@fluentui-react-native/framework').ComposableComponent<
13
+ RadioProps,
14
+ import('./Radio.types').RadioSlotProps,
15
+ import('./Radio.types').RadioTokens,
16
+ import('@fluentui-react-native/framework-base').ObjectBase
17
+ >;
18
+ //# sourceMappingURL=Radio.ios.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Radio.ios.d.ts","sourceRoot":"","sources":["../../src/Radio/Radio.ios.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0CAA0C,CAAC;AAK/E,OAAO,KAAK,EAAa,UAAU,EAAE,MAAM,eAAe,CAAC;AAI3D;;;;;;;GAOG;AACH,eAAO,MAAM,WAAW,UAAW,MAAM,SAAS,cAAc,aAAa,UAAU,KAAG,OAQzF,CAAC;AAEF,eAAO,MAAM,KAAK,gNAqDhB,CAAC"}
1
+ {"version":3,"file":"Radio.ios.d.ts","sourceRoot":"","sources":["../../src/Radio/Radio.ios.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0CAA0C,CAAC;AAK/E,OAAO,KAAK,EAAa,UAAU,EAAE,MAAM,eAAe,CAAC;AAI3D;;;;;;;GAOG;AACH,eAAO,MAAM,WAAW,0EAQvB,CAAC;AAEF,eAAO,MAAM,KAAK,qNAqDhB,CAAC"}
@@ -1,7 +1,7 @@
1
- /** @jsxRuntime classic */
2
- /** @jsx withSlots */
1
+ import { jsx as _jsx, jsxs as _jsxs } from '@fluentui-react-native/framework-base/jsx-runtime';
2
+ /** @jsxImportSource @fluentui-react-native/framework-base */
3
3
  import { Platform, Pressable, View } from 'react-native';
4
- import { compose, mergeProps, withSlots } from '@fluentui-react-native/framework';
4
+ import { compose, mergeProps } from '@fluentui-react-native/framework';
5
5
  import { TextV1 as Text } from '@fluentui-react-native/text';
6
6
  import { Svg, Path } from 'react-native-svg';
7
7
  import { stylingSettings } from './Radio.styling';
@@ -16,39 +16,55 @@ import { useRadio } from './useRadio';
16
16
  * @returns Whether the styles that are assigned to the layer should be applied to the Radio
17
17
  */
18
18
  export const radioLookup = (layer, state, userProps) => {
19
- return (state[layer] ||
20
- userProps[layer] ||
21
- (!(Platform.OS === 'win32' || Platform.OS === 'android') &&
22
- layer === 'labelPositionBelow' &&
23
- userProps['labelPosition'] === 'below'));
19
+ return (
20
+ state[layer] ||
21
+ userProps[layer] ||
22
+ (!(Platform.OS === 'win32' || Platform.OS === 'android') && layer === 'labelPositionBelow' && userProps['labelPosition'] === 'below')
23
+ );
24
24
  };
25
25
  export const Radio = compose({
26
- displayName: radioName,
27
- ...stylingSettings,
28
- slots: {
29
- root: Pressable,
30
- button: Pressable,
31
- checkmark: Svg,
32
- labelContent: View,
33
- label: Text,
34
- subtext: Text,
35
- },
36
- useRender: (userProps, useSlots) => {
37
- const radio = useRadio(userProps);
38
- const Slots = useSlots(userProps, (layer) => radioLookup(layer, radio.state, radio.props));
39
- // now return the handler for finishing render
40
- return (final) => {
41
- const { label, subtext, ...mergedProps } = mergeProps(radio.props, final);
42
- const { onPress, disabled, onPressIn, onPressOut } = mergedProps;
43
- const labelComponent = (withSlots(Slots.labelContent, null,
44
- withSlots(Slots.label, null, label),
45
- !!subtext && withSlots(Slots.subtext, null, subtext)));
46
- const checkmarkPath = (withSlots(Path, { fill: "currentColor", d: "M9.76497 3.20474C10.0661 3.48915 10.0797 3.96383 9.79526 4.26497L5.54526 8.76497C5.40613 8.91228 5.21332 8.99703 5.01071 8.99993C4.8081 9.00282 4.61295 8.92361 4.46967 8.78033L2.21967 6.53033C1.92678 6.23744 1.92678 5.76257 2.21967 5.46967C2.51256 5.17678 2.98744 5.17678 3.28033 5.46967L4.98463 7.17397L8.70474 3.23503C8.98915 2.9339 9.46383 2.92033 9.76497 3.20474Z" }));
47
- return (withSlots(Slots.root, { ...mergedProps, ...{ accessible: !disabled, focusable: !disabled } },
48
- withSlots(Slots.button, { accessible: false, onPress: onPress, onPressIn: onPressIn, onPressOut: onPressOut, disabled: disabled, focusable: false },
49
- withSlots(Slots.checkmark, { key: "checkmark", viewBox: "0 0 12 12" }, checkmarkPath)),
50
- labelComponent));
51
- };
52
- },
26
+ displayName: radioName,
27
+ ...stylingSettings,
28
+ slots: {
29
+ root: Pressable,
30
+ button: Pressable,
31
+ checkmark: Svg,
32
+ labelContent: View,
33
+ label: Text,
34
+ subtext: Text,
35
+ },
36
+ useRender: (userProps, useSlots) => {
37
+ const radio = useRadio(userProps);
38
+ const Slots = useSlots(userProps, (layer) => radioLookup(layer, radio.state, radio.props));
39
+ // now return the handler for finishing render
40
+ return (final) => {
41
+ const { label, subtext, ...mergedProps } = mergeProps(radio.props, final);
42
+ const { onPress, disabled, onPressIn, onPressOut } = mergedProps;
43
+ const labelComponent = _jsxs(Slots.labelContent, {
44
+ children: [_jsx(Slots.label, { children: label }), !!subtext && _jsx(Slots.subtext, { children: subtext })],
45
+ });
46
+ const checkmarkPath = _jsx(Path, {
47
+ fill: 'currentColor',
48
+ d: 'M9.76497 3.20474C10.0661 3.48915 10.0797 3.96383 9.79526 4.26497L5.54526 8.76497C5.40613 8.91228 5.21332 8.99703 5.01071 8.99993C4.8081 9.00282 4.61295 8.92361 4.46967 8.78033L2.21967 6.53033C1.92678 6.23744 1.92678 5.76257 2.21967 5.46967C2.51256 5.17678 2.98744 5.17678 3.28033 5.46967L4.98463 7.17397L8.70474 3.23503C8.98915 2.9339 9.46383 2.92033 9.76497 3.20474Z',
49
+ });
50
+ return _jsxs(Slots.root, {
51
+ ...mergedProps,
52
+ accessible: !disabled,
53
+ focusable: !disabled,
54
+ children: [
55
+ _jsx(Slots.button, {
56
+ accessible: false,
57
+ onPress: onPress,
58
+ onPressIn: onPressIn,
59
+ onPressOut: onPressOut,
60
+ disabled: disabled,
61
+ focusable: false,
62
+ children: _jsx(Slots.checkmark, { viewBox: '0 0 12 12', children: checkmarkPath }, 'checkmark'),
63
+ }),
64
+ labelComponent,
65
+ ],
66
+ });
67
+ };
68
+ },
53
69
  });
54
- //# sourceMappingURL=Radio.ios.js.map
70
+ //# sourceMappingURL=Radio.ios.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Radio.ios.js","sourceRoot":"","sources":["../../src/Radio/Radio.ios.tsx"],"names":[],"mappings":"AAAA,0BAA0B;AAC1B,qBAAqB;AACrB,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,IAAI,E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+ /** @jsxImportSource @fluentui-react-native/framework-base */
3
3
  import { Platform, Pressable, View } from 'react-native';
4
- import { compose, mergeProps, withSlots } from '@fluentui-react-native/framework';
4
+ import { compose, mergeProps } from '@fluentui-react-native/framework';
5
5
  import { TextV1 as Text } from '@fluentui-react-native/text';
6
6
  import { stylingSettings } from './Radio.styling';
7
7
  import { radioName } from './Radio.types';
@@ -15,39 +15,51 @@ import { useRadio } from './useRadio';
15
15
  * @returns Whether the styles that are assigned to the layer should be applied to the Radio
16
16
  */
17
17
  export const radioLookup = (layer, state, userProps) => {
18
- return (state[layer] ||
19
- userProps[layer] ||
20
- (!(Platform.OS === 'win32' || Platform.OS === 'android') &&
21
- layer === 'labelPositionBelow' &&
22
- userProps['labelPosition'] === 'below'));
18
+ return (
19
+ state[layer] ||
20
+ userProps[layer] ||
21
+ (!(Platform.OS === 'win32' || Platform.OS === 'android') && layer === 'labelPositionBelow' && userProps['labelPosition'] === 'below')
22
+ );
23
23
  };
24
24
  export const Radio = compose({
25
- displayName: radioName,
26
- ...stylingSettings,
27
- slots: {
28
- root: Pressable,
29
- button: Pressable,
30
- innerCircle: View,
31
- labelContent: View,
32
- label: Text,
33
- subtext: Text,
34
- },
35
- useRender: (userProps, useSlots) => {
36
- const radio = useRadio(userProps);
37
- const Slots = useSlots(userProps, (layer) => radioLookup(layer, radio.state, radio.props));
38
- // now return the handler for finishing render
39
- return (final) => {
40
- const { label, subtext, ...mergedProps } = mergeProps(radio.props, final);
41
- const { onPress, disabled, onPressIn, onPressOut } = mergedProps;
42
- const isMobile = Platform.OS === 'android' || Platform.OS === 'ios';
43
- const labelComponent = (withSlots(Slots.labelContent, null,
44
- withSlots(Slots.label, null, label),
45
- !!subtext && withSlots(Slots.subtext, null, subtext)));
46
- return (withSlots(Slots.root, { ...mergedProps, ...(isMobile && { accessible: !disabled, focusable: !disabled }) },
47
- withSlots(Slots.button, { accessible: false, onPress: onPress, onPressIn: onPressIn, onPressOut: onPressOut, disabled: disabled, focusable: false },
48
- withSlots(Slots.innerCircle, null)),
49
- labelComponent));
50
- };
51
- },
25
+ displayName: radioName,
26
+ ...stylingSettings,
27
+ slots: {
28
+ root: Pressable,
29
+ button: Pressable,
30
+ innerCircle: View,
31
+ labelContent: View,
32
+ label: Text,
33
+ subtext: Text,
34
+ },
35
+ useRender: (userProps, useSlots) => {
36
+ const radio = useRadio(userProps);
37
+ const Slots = useSlots(userProps, (layer) => radioLookup(layer, radio.state, radio.props));
38
+ // now return the handler for finishing render
39
+ return (final) => {
40
+ const { label, subtext, ...mergedProps } = mergeProps(radio.props, final);
41
+ const { onPress, disabled, onPressIn, onPressOut } = mergedProps;
42
+ const isMobile = Platform.OS === 'android' || Platform.OS === 'ios';
43
+ const labelComponent = _jsxs(Slots.labelContent, {
44
+ children: [_jsx(Slots.label, { children: label }), !!subtext && _jsx(Slots.subtext, { children: subtext })],
45
+ });
46
+ return _jsxs(Slots.root, {
47
+ ...mergedProps,
48
+ ...(isMobile && { accessible: !disabled, focusable: !disabled }),
49
+ children: [
50
+ _jsx(Slots.button, {
51
+ accessible: false,
52
+ onPress: onPress,
53
+ onPressIn: onPressIn,
54
+ onPressOut: onPressOut,
55
+ disabled: disabled,
56
+ focusable: false,
57
+ children: _jsx(Slots.innerCircle, {}),
58
+ }),
59
+ labelComponent,
60
+ ],
61
+ });
62
+ };
63
+ },
52
64
  });
53
- //# sourceMappingURL=Radio.js.map
65
+ //# sourceMappingURL=Radio.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Radio.js","sourceRoot":"","sources":["../../src/Radio/Radio.tsx"],"names":[],"mappings":"AAAA,0BAA0B;AAC1B,qBAAqB;AACrB,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAGzD,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAElF,OAAO,EAAE,MAAM,IAAI,IAAI,EAAE,MAAM,6BAA6B,CAAC;AAE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CAAC;YACjE,MAAM,QAAQ,GAAG,QAAQ,CAAC,EAAE,KAAK,SAAS,IAAI,QAAQ,CAAC,EAAE,KAAK,KAAK,CAAC;YAEpE,MAAM,cAAc,GAAG,CACrB,MAAC,KAAK,CAAC,YAAY;oBACjB,KAAC,KAAK,CAAC,KAAK,cAAE,KAAK,GAAe,EACjC,CAAC,CAAC,OAAO,IAAI,KAAC,KAAK,CAAC,OAAO,cAAE,OAAO,GAAiB,IACnC,CACtB,CAAC;YAEF,OAAO,CACL,MAAC,KAAK,CAAC,IAAI,OAAK,WAAW,KAAM,CAAC,QAAQ,IAAI,EAAE,UAAU,EAAE,CAAC,QAAQ,EAAE,SAAS,EAAE,CAAC,QAAQ,EAAE,CAAC;oBAC5F,KAAC,KAAK,CAAC,MAAM,IACX,UAAU,EAAE,KAAK,EACjB,OAAO,EAAE,OAAO,EAChB,SAAS,EAAE,SAAS,EACpB,UAAU,EAAE,UAAU,EACtB,QAAQ,EAAE,QAAQ,EAClB,SAAS,EAAE,KAAK,YAEhB,KAAC,KAAK,CAAC,WAAW,KAAG,GACR,EACd,cAAc,IACJ,CACd,CAAC;QAAA,CACH,CAAC;IAAA,CACH;CACF,CAAC,CAAC"}
@@ -2,4 +2,4 @@ import type { UseStylingOptions } from '@fluentui-react-native/framework';
2
2
  import type { RadioTokens, RadioSlotProps, RadioProps } from './Radio.types';
3
3
  export declare const radioStates: (keyof RadioTokens)[];
4
4
  export declare const stylingSettings: UseStylingOptions<RadioProps, RadioSlotProps, RadioTokens>;
5
- //# sourceMappingURL=Radio.styling.d.ts.map
5
+ //# sourceMappingURL=Radio.styling.d.ts.map
@@ -4,92 +4,113 @@ import { radioName } from './Radio.types';
4
4
  import { defaultRadioTokens } from './RadioTokens';
5
5
  export const radioStates = ['labelPositionBelow', 'focused', 'hovered', 'pressed', 'selected', 'disabled'];
6
6
  export const stylingSettings = {
7
- tokens: [defaultRadioTokens, radioName],
8
- states: radioStates,
9
- slotProps: {
10
- root: buildProps((tokens) => ({
11
- style: {
12
- display: 'flex',
13
- alignItems: tokens.alignItems,
14
- flexDirection: tokens.flexDirection,
15
- paddingHorizontal: tokens.rootHorizontalPadding,
16
- paddingVertical: tokens.rootVerticalPadding,
17
- },
18
- android_ripple: { color: tokens.rippleColor },
19
- }), ['flexDirection', 'rootHorizontalPadding', 'rootVerticalPadding', 'rippleColor', 'alignItems']),
20
- button: buildProps((tokens) => ({
21
- style: {
22
- backgroundColor: tokens.radioOuterCircleBackground,
23
- width: tokens.radioOuterCircleSize,
24
- height: tokens.radioOuterCircleSize,
25
- alignItems: 'center',
26
- justifyContent: 'center',
27
- borderWidth: tokens.radioBorderWidth,
28
- borderStyle: tokens.radioBorderStyle,
29
- borderRadius: tokens.radioOuterCircleSize / 2,
30
- borderColor: tokens.radioBorder,
31
- marginTop: tokens.marginTop,
32
- marginRight: tokens.marginRight,
33
- marginBottom: tokens.marginBottom,
34
- marginLeft: tokens.marginLeft,
35
- },
36
- android_ripple: { color: tokens.rippleColor, radius: tokens.rippleRadius, borderless: true },
37
- }), [
38
- 'radioOuterCircleBackground',
39
- 'radioBorderWidth',
40
- 'radioBorderStyle',
41
- 'radioOuterCircleSize',
42
- 'rippleColor',
43
- 'rippleRadius',
44
- 'radioBorder',
45
- 'marginTop',
46
- 'marginRight',
47
- 'marginBottom',
48
- 'marginLeft',
49
- ]),
50
- innerCircle: buildProps((tokens) => ({
51
- style: {
52
- opacity: tokens.radioVisibility,
53
- borderRadius: tokens.radioInnerCircleSize / 2,
54
- height: tokens.radioInnerCircleSize,
55
- width: tokens.radioInnerCircleSize,
56
- backgroundColor: tokens.radioFill,
57
- },
58
- }), ['radioInnerCircleSize', 'radioVisibility', 'radioFill']),
59
- labelContent: buildProps((tokens, theme) => ({
60
- style: {
61
- alignItems: tokens.labelAlignItems,
62
- flexDirection: 'column',
63
- marginRight: tokens.labelMarginRight,
64
- marginLeft: tokens.labelMarginLeft,
65
- padding: tokens.labelPadding,
66
- paddingRight: 0,
67
- ...borderStyles.from(tokens, theme),
68
- },
69
- }), ['labelAlignItems', 'labelMarginRight', 'labelMarginLeft', 'labelPadding', ...borderStyles.keys]),
70
- checkmark: buildProps((tokens) => ({
71
- style: {
72
- opacity: tokens.radioVisibility,
73
- },
74
- }), ['radioVisibility']),
75
- label: buildProps((tokens, theme) => ({
76
- variant: tokens.variant,
77
- style: {
78
- marginVertical: tokens.labelMarginVertical,
79
- marginHorizontal: 2,
80
- color: tokens.color,
81
- ...fontStyles.from(tokens, theme),
82
- },
83
- }), ['variant', 'labelMarginVertical', 'color', ...fontStyles.keys]),
84
- subtext: buildProps((tokens) => ({
85
- variant: tokens.subtextVariant,
86
- style: {
87
- marginTop: tokens.subtextMarginTop,
88
- marginBottom: tokens.subtextMarginBottom,
89
- marginHorizontal: 2,
90
- color: tokens.color,
91
- },
92
- }), ['subtextMarginTop', 'subtextMarginBottom', 'color', 'subtextVariant']),
93
- },
7
+ tokens: [defaultRadioTokens, radioName],
8
+ states: radioStates,
9
+ slotProps: {
10
+ root: buildProps(
11
+ (tokens) => ({
12
+ style: {
13
+ display: 'flex',
14
+ alignItems: tokens.alignItems,
15
+ flexDirection: tokens.flexDirection,
16
+ paddingHorizontal: tokens.rootHorizontalPadding,
17
+ paddingVertical: tokens.rootVerticalPadding,
18
+ },
19
+ android_ripple: { color: tokens.rippleColor },
20
+ }),
21
+ ['flexDirection', 'rootHorizontalPadding', 'rootVerticalPadding', 'rippleColor', 'alignItems'],
22
+ ),
23
+ button: buildProps(
24
+ (tokens) => ({
25
+ style: {
26
+ backgroundColor: tokens.radioOuterCircleBackground,
27
+ width: tokens.radioOuterCircleSize,
28
+ height: tokens.radioOuterCircleSize,
29
+ alignItems: 'center',
30
+ justifyContent: 'center',
31
+ borderWidth: tokens.radioBorderWidth,
32
+ borderStyle: tokens.radioBorderStyle,
33
+ borderRadius: tokens.radioOuterCircleSize / 2,
34
+ borderColor: tokens.radioBorder,
35
+ marginTop: tokens.marginTop,
36
+ marginRight: tokens.marginRight,
37
+ marginBottom: tokens.marginBottom,
38
+ marginLeft: tokens.marginLeft,
39
+ },
40
+ android_ripple: { color: tokens.rippleColor, radius: tokens.rippleRadius, borderless: true },
41
+ }),
42
+ [
43
+ 'radioOuterCircleBackground',
44
+ 'radioBorderWidth',
45
+ 'radioBorderStyle',
46
+ 'radioOuterCircleSize',
47
+ 'rippleColor',
48
+ 'rippleRadius',
49
+ 'radioBorder',
50
+ 'marginTop',
51
+ 'marginRight',
52
+ 'marginBottom',
53
+ 'marginLeft',
54
+ ],
55
+ ),
56
+ innerCircle: buildProps(
57
+ (tokens) => ({
58
+ style: {
59
+ opacity: tokens.radioVisibility,
60
+ borderRadius: tokens.radioInnerCircleSize / 2,
61
+ height: tokens.radioInnerCircleSize,
62
+ width: tokens.radioInnerCircleSize,
63
+ backgroundColor: tokens.radioFill,
64
+ },
65
+ }),
66
+ ['radioInnerCircleSize', 'radioVisibility', 'radioFill'],
67
+ ),
68
+ labelContent: buildProps(
69
+ (tokens, theme) => ({
70
+ style: {
71
+ alignItems: tokens.labelAlignItems,
72
+ flexDirection: 'column',
73
+ marginRight: tokens.labelMarginRight,
74
+ marginLeft: tokens.labelMarginLeft,
75
+ padding: tokens.labelPadding,
76
+ paddingRight: 0,
77
+ ...borderStyles.from(tokens, theme),
78
+ },
79
+ }),
80
+ ['labelAlignItems', 'labelMarginRight', 'labelMarginLeft', 'labelPadding', ...borderStyles.keys],
81
+ ),
82
+ checkmark: buildProps(
83
+ (tokens) => ({
84
+ style: {
85
+ opacity: tokens.radioVisibility,
86
+ },
87
+ }),
88
+ ['radioVisibility'],
89
+ ),
90
+ label: buildProps(
91
+ (tokens, theme) => ({
92
+ variant: tokens.variant,
93
+ style: {
94
+ marginVertical: tokens.labelMarginVertical,
95
+ marginHorizontal: 2,
96
+ color: tokens.color,
97
+ ...fontStyles.from(tokens, theme),
98
+ },
99
+ }),
100
+ ['variant', 'labelMarginVertical', 'color', ...fontStyles.keys],
101
+ ),
102
+ subtext: buildProps(
103
+ (tokens) => ({
104
+ variant: tokens.subtextVariant,
105
+ style: {
106
+ marginTop: tokens.subtextMarginTop,
107
+ marginBottom: tokens.subtextMarginBottom,
108
+ marginHorizontal: 2,
109
+ color: tokens.color,
110
+ },
111
+ }),
112
+ ['subtextMarginTop', 'subtextMarginBottom', 'color', 'subtextVariant'],
113
+ ),
114
+ },
94
115
  };
95
- //# sourceMappingURL=Radio.styling.js.map
116
+ //# sourceMappingURL=Radio.styling.js.map