@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
@@ -1 +1 @@
1
- {"version":3,"file":"Radio.js","sourceRoot":"","sources":["../../src/Radio/Radio.tsx"],"names":[],"mappings":";;;AAAA,0BAA0B;AAC1B,qBAAqB;AACrB,+CAAyD;AAGzD,gEAAkF;AAElF,sDAA6D;AAE7D,mDAAkD;AAElD,+CAA0C;AAC1C,yCAAsC;AAEtC;;;;;;;GAOG;AACI,MAAM,WAAW,GAAG,CAAC,KAAa,EAAE,KAAqB,EAAE,SAAqB,EAAW,EAAE;IAClG,OAAO,CACL,KAAK,CAAC,KAAK,CAAC;QACZ,SAAS,CAAC,KAAK,CAAC;QAChB,CAAC,CAAC,CA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AAC,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,kBAAC,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
@@ -1,98 +1,119 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ 'use strict';
2
+ Object.defineProperty(exports, '__esModule', { value: true });
3
3
  exports.stylingSettings = exports.radioStates = void 0;
4
- const framework_1 = require("@fluentui-react-native/framework");
5
- const tokens_1 = require("@fluentui-react-native/tokens");
6
- const Radio_types_1 = require("./Radio.types");
7
- const RadioTokens_1 = require("./RadioTokens");
4
+ const framework_1 = require('@fluentui-react-native/framework');
5
+ const tokens_1 = require('@fluentui-react-native/tokens');
6
+ const Radio_types_1 = require('./Radio.types');
7
+ const RadioTokens_1 = require('./RadioTokens');
8
8
  exports.radioStates = ['labelPositionBelow', 'focused', 'hovered', 'pressed', 'selected', 'disabled'];
9
9
  exports.stylingSettings = {
10
- tokens: [RadioTokens_1.defaultRadioTokens, Radio_types_1.radioName],
11
- states: exports.radioStates,
12
- slotProps: {
13
- root: (0, framework_1.buildProps)((tokens) => ({
14
- style: {
15
- display: 'flex',
16
- alignItems: tokens.alignItems,
17
- flexDirection: tokens.flexDirection,
18
- paddingHorizontal: tokens.rootHorizontalPadding,
19
- paddingVertical: tokens.rootVerticalPadding,
20
- },
21
- android_ripple: { color: tokens.rippleColor },
22
- }), ['flexDirection', 'rootHorizontalPadding', 'rootVerticalPadding', 'rippleColor', 'alignItems']),
23
- button: (0, framework_1.buildProps)((tokens) => ({
24
- style: {
25
- backgroundColor: tokens.radioOuterCircleBackground,
26
- width: tokens.radioOuterCircleSize,
27
- height: tokens.radioOuterCircleSize,
28
- alignItems: 'center',
29
- justifyContent: 'center',
30
- borderWidth: tokens.radioBorderWidth,
31
- borderStyle: tokens.radioBorderStyle,
32
- borderRadius: tokens.radioOuterCircleSize / 2,
33
- borderColor: tokens.radioBorder,
34
- marginTop: tokens.marginTop,
35
- marginRight: tokens.marginRight,
36
- marginBottom: tokens.marginBottom,
37
- marginLeft: tokens.marginLeft,
38
- },
39
- android_ripple: { color: tokens.rippleColor, radius: tokens.rippleRadius, borderless: true },
40
- }), [
41
- 'radioOuterCircleBackground',
42
- 'radioBorderWidth',
43
- 'radioBorderStyle',
44
- 'radioOuterCircleSize',
45
- 'rippleColor',
46
- 'rippleRadius',
47
- 'radioBorder',
48
- 'marginTop',
49
- 'marginRight',
50
- 'marginBottom',
51
- 'marginLeft',
52
- ]),
53
- innerCircle: (0, framework_1.buildProps)((tokens) => ({
54
- style: {
55
- opacity: tokens.radioVisibility,
56
- borderRadius: tokens.radioInnerCircleSize / 2,
57
- height: tokens.radioInnerCircleSize,
58
- width: tokens.radioInnerCircleSize,
59
- backgroundColor: tokens.radioFill,
60
- },
61
- }), ['radioInnerCircleSize', 'radioVisibility', 'radioFill']),
62
- labelContent: (0, framework_1.buildProps)((tokens, theme) => ({
63
- style: {
64
- alignItems: tokens.labelAlignItems,
65
- flexDirection: 'column',
66
- marginRight: tokens.labelMarginRight,
67
- marginLeft: tokens.labelMarginLeft,
68
- padding: tokens.labelPadding,
69
- paddingRight: 0,
70
- ...tokens_1.borderStyles.from(tokens, theme),
71
- },
72
- }), ['labelAlignItems', 'labelMarginRight', 'labelMarginLeft', 'labelPadding', ...tokens_1.borderStyles.keys]),
73
- checkmark: (0, framework_1.buildProps)((tokens) => ({
74
- style: {
75
- opacity: tokens.radioVisibility,
76
- },
77
- }), ['radioVisibility']),
78
- label: (0, framework_1.buildProps)((tokens, theme) => ({
79
- variant: tokens.variant,
80
- style: {
81
- marginVertical: tokens.labelMarginVertical,
82
- marginHorizontal: 2,
83
- color: tokens.color,
84
- ...tokens_1.fontStyles.from(tokens, theme),
85
- },
86
- }), ['variant', 'labelMarginVertical', 'color', ...tokens_1.fontStyles.keys]),
87
- subtext: (0, framework_1.buildProps)((tokens) => ({
88
- variant: tokens.subtextVariant,
89
- style: {
90
- marginTop: tokens.subtextMarginTop,
91
- marginBottom: tokens.subtextMarginBottom,
92
- marginHorizontal: 2,
93
- color: tokens.color,
94
- },
95
- }), ['subtextMarginTop', 'subtextMarginBottom', 'color', 'subtextVariant']),
96
- },
10
+ tokens: [RadioTokens_1.defaultRadioTokens, Radio_types_1.radioName],
11
+ states: exports.radioStates,
12
+ slotProps: {
13
+ root: (0, framework_1.buildProps)(
14
+ (tokens) => ({
15
+ style: {
16
+ display: 'flex',
17
+ alignItems: tokens.alignItems,
18
+ flexDirection: tokens.flexDirection,
19
+ paddingHorizontal: tokens.rootHorizontalPadding,
20
+ paddingVertical: tokens.rootVerticalPadding,
21
+ },
22
+ android_ripple: { color: tokens.rippleColor },
23
+ }),
24
+ ['flexDirection', 'rootHorizontalPadding', 'rootVerticalPadding', 'rippleColor', 'alignItems'],
25
+ ),
26
+ button: (0, framework_1.buildProps)(
27
+ (tokens) => ({
28
+ style: {
29
+ backgroundColor: tokens.radioOuterCircleBackground,
30
+ width: tokens.radioOuterCircleSize,
31
+ height: tokens.radioOuterCircleSize,
32
+ alignItems: 'center',
33
+ justifyContent: 'center',
34
+ borderWidth: tokens.radioBorderWidth,
35
+ borderStyle: tokens.radioBorderStyle,
36
+ borderRadius: tokens.radioOuterCircleSize / 2,
37
+ borderColor: tokens.radioBorder,
38
+ marginTop: tokens.marginTop,
39
+ marginRight: tokens.marginRight,
40
+ marginBottom: tokens.marginBottom,
41
+ marginLeft: tokens.marginLeft,
42
+ },
43
+ android_ripple: { color: tokens.rippleColor, radius: tokens.rippleRadius, borderless: true },
44
+ }),
45
+ [
46
+ 'radioOuterCircleBackground',
47
+ 'radioBorderWidth',
48
+ 'radioBorderStyle',
49
+ 'radioOuterCircleSize',
50
+ 'rippleColor',
51
+ 'rippleRadius',
52
+ 'radioBorder',
53
+ 'marginTop',
54
+ 'marginRight',
55
+ 'marginBottom',
56
+ 'marginLeft',
57
+ ],
58
+ ),
59
+ innerCircle: (0, framework_1.buildProps)(
60
+ (tokens) => ({
61
+ style: {
62
+ opacity: tokens.radioVisibility,
63
+ borderRadius: tokens.radioInnerCircleSize / 2,
64
+ height: tokens.radioInnerCircleSize,
65
+ width: tokens.radioInnerCircleSize,
66
+ backgroundColor: tokens.radioFill,
67
+ },
68
+ }),
69
+ ['radioInnerCircleSize', 'radioVisibility', 'radioFill'],
70
+ ),
71
+ labelContent: (0, framework_1.buildProps)(
72
+ (tokens, theme) => ({
73
+ style: {
74
+ alignItems: tokens.labelAlignItems,
75
+ flexDirection: 'column',
76
+ marginRight: tokens.labelMarginRight,
77
+ marginLeft: tokens.labelMarginLeft,
78
+ padding: tokens.labelPadding,
79
+ paddingRight: 0,
80
+ ...tokens_1.borderStyles.from(tokens, theme),
81
+ },
82
+ }),
83
+ ['labelAlignItems', 'labelMarginRight', 'labelMarginLeft', 'labelPadding', ...tokens_1.borderStyles.keys],
84
+ ),
85
+ checkmark: (0, framework_1.buildProps)(
86
+ (tokens) => ({
87
+ style: {
88
+ opacity: tokens.radioVisibility,
89
+ },
90
+ }),
91
+ ['radioVisibility'],
92
+ ),
93
+ label: (0, framework_1.buildProps)(
94
+ (tokens, theme) => ({
95
+ variant: tokens.variant,
96
+ style: {
97
+ marginVertical: tokens.labelMarginVertical,
98
+ marginHorizontal: 2,
99
+ color: tokens.color,
100
+ ...tokens_1.fontStyles.from(tokens, theme),
101
+ },
102
+ }),
103
+ ['variant', 'labelMarginVertical', 'color', ...tokens_1.fontStyles.keys],
104
+ ),
105
+ subtext: (0, framework_1.buildProps)(
106
+ (tokens) => ({
107
+ variant: tokens.subtextVariant,
108
+ style: {
109
+ marginTop: tokens.subtextMarginTop,
110
+ marginBottom: tokens.subtextMarginBottom,
111
+ marginHorizontal: 2,
112
+ color: tokens.color,
113
+ },
114
+ }),
115
+ ['subtextMarginTop', 'subtextMarginBottom', 'color', 'subtextVariant'],
116
+ ),
117
+ },
97
118
  };
98
- //# sourceMappingURL=Radio.styling.js.map
119
+ //# sourceMappingURL=Radio.styling.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Radio.styling.js","sourceRoot":"","sources":["../../src/Radio/Radio.styling.ts"],"names":[],"mappings":";;;AACA,gEAA8D;AAC9D,0DAAyE;AAGzE,+CAA0C;AAC1C,+CAAmD;AAEtC,QAAA,WAAW,GAA0B,CAAC,oBAAoB,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,UAAU,EAAE,UAAU,CAAC,CAAC;AAErH,QAAA,eAAe,GAA+D;IACzF,MAAM,EAAE,CAAC,gCAAkB,EAAE,uBAAS,CAAC;IACvC,MAAM,EAAE,mBAAW;IACnB,SAAS,EAAE;QACT,IAAI,EAAE,IAAA,sBAAU,EACd,CAAC,MAAmB,EAAE,EAAE,CAAC,CAAC;YACxB,KAAK,EAAE;gBACL,OAAO,EAAE,MAAM;gBACf,UAAU,EAAE,MAAM,CAAC,UAAU;gBAC7B,aAAa,EAAE,MAAM,CAAC,aAAa;gBACnC,iBAAiB,EAAE,MAAM,CAAC,qBAAqB;gBAC/C,eAAe,EAAE,MAAM,CAAC,mBAAmB;aAC5C;YACD,cAAc,EAAE,EAAE,KAAK,EAAE,MAAM,CAAC,WAAW,EAAE;SAC9C,CAAC,EACF,CAAC,eAAe,EAAE,uBAAuB,EAAE,qBAAqB,EAAE,aAAa,EAAE,YAAY,CAAC,CAC/F;QACD,MAAM,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E,gBAAgB,CAAC,CACvE;KACF;CACF,CAAC"}
@@ -3,184 +3,190 @@ import type { IViewProps } from '@fluentui-react-native/adapters';
3
3
  import type { Variant } from '@fluentui-react-native/framework';
4
4
  import type { IFocusable, PressablePropsExtended, PressableState } from '@fluentui-react-native/interactive-hooks';
5
5
  import type { TextProps } from '@fluentui-react-native/text';
6
- import type { FontTokens, IForegroundColorTokens, IBackgroundColorTokens, IBorderTokens, IColorTokens } from '@fluentui-react-native/tokens';
6
+ import type {
7
+ FontTokens,
8
+ IForegroundColorTokens,
9
+ IBackgroundColorTokens,
10
+ IBorderTokens,
11
+ IColorTokens,
12
+ } from '@fluentui-react-native/tokens';
7
13
  import type { SvgProps } from 'react-native-svg';
8
- export declare const radioName = "Radio";
14
+ export declare const radioName = 'Radio';
9
15
  export interface RadioTokens extends FontTokens, IColorTokens, IForegroundColorTokens, IBackgroundColorTokens, IBorderTokens {
10
- /**
11
- * Horizontal padding of the root view
12
- */
13
- rootHorizontalPadding?: number;
14
- /**
15
- * Vertical padding of the root view
16
- */
17
- rootVerticalPadding?: number;
18
- /**
19
- * Indicator border color
20
- */
21
- radioBorder?: ColorValue;
22
- /**
23
- * Indicator border style
24
- */
25
- radioBorderStyle?: ViewStyle['borderStyle'];
26
- /**
27
- * Inner circle color when selected
28
- */
29
- radioFill?: ColorValue;
30
- /**
31
- * Visibility of the radio inner circle from 0 to 1
32
- */
33
- radioVisibility?: number;
34
- /**
35
- * Diameter size of the outer indicator
36
- */
37
- radioOuterCircleSize?: number;
38
- /**
39
- * Diameter size of the inner circle indicator
40
- */
41
- radioInnerCircleSize?: number;
42
- /**
43
- * Border width of Radio
44
- */
45
- radioBorderWidth?: number;
46
- /**
47
- * Background color of outer circle
48
- */
49
- radioOuterCircleBackground?: ColorValue;
50
- /**
51
- * The flex direction of the root
52
- */
53
- flexDirection?: ViewStyle['flexDirection'];
54
- /**
55
- * Root item alignment
56
- */
57
- alignItems?: ViewStyle['alignItems'];
58
- /**
59
- * The top margin
60
- */
61
- marginTop?: ViewStyle['marginTop'];
62
- /**
63
- * The right margin
64
- */
65
- marginRight?: ViewStyle['marginRight'];
66
- /**
67
- * The bottom margin
68
- */
69
- marginBottom?: ViewStyle['marginBottom'];
70
- /**
71
- * The left margin
72
- */
73
- marginLeft?: ViewStyle['marginLeft'];
74
- /**
75
- * Label item alignment
76
- */
77
- labelAlignItems?: ViewStyle['alignItems'];
78
- /**
79
- * Label's top margin.
80
- */
81
- labelMarginVertical?: ViewStyle['marginVertical'];
82
- /**
83
- * Label's right margin.
84
- */
85
- labelMarginRight?: ViewStyle['marginRight'];
86
- /**
87
- * Label's left margin.
88
- */
89
- labelMarginLeft?: ViewStyle['marginLeft'];
90
- /**
91
- * Label's padding.
92
- */
93
- labelPadding?: ViewStyle['marginLeft'];
94
- subtextVariant?: keyof Variant;
95
- /**
96
- * Padding between label and label subtext.
97
- *
98
- * Should only by used if subtext prop is provided.
99
- */
100
- subtextMarginTop?: ViewStyle['marginTop'];
101
- /**
102
- * Padding between label subtext and focus ring.
103
- *
104
- * Should only by used if subtext prop is provided.
105
- */
106
- subtextMarginBottom?: ViewStyle['marginBottom'];
107
- /**
108
- * Ripple color for Android.
109
- *
110
- * A ripple animation is shown on click for Android. This sets the color of the ripple.
111
- * @platform android
112
- */
113
- rippleColor?: ColorValue;
114
- /**
115
- * Ripple radius for circular radio on Android.
116
- *
117
- * A ripple animation is shown on click for Android. This sets the radius of the circular ripple shown on the radio button.
118
- * @platform android
119
- */
120
- rippleRadius?: number;
121
- /**
122
- * States that can be applied to a Radio
123
- */
124
- labelPositionBelow?: RadioTokens;
125
- selected?: RadioTokens;
126
- disabled?: RadioTokens;
127
- hovered?: RadioTokens;
128
- focused?: RadioTokens;
129
- pressed?: RadioTokens;
16
+ /**
17
+ * Horizontal padding of the root view
18
+ */
19
+ rootHorizontalPadding?: number;
20
+ /**
21
+ * Vertical padding of the root view
22
+ */
23
+ rootVerticalPadding?: number;
24
+ /**
25
+ * Indicator border color
26
+ */
27
+ radioBorder?: ColorValue;
28
+ /**
29
+ * Indicator border style
30
+ */
31
+ radioBorderStyle?: ViewStyle['borderStyle'];
32
+ /**
33
+ * Inner circle color when selected
34
+ */
35
+ radioFill?: ColorValue;
36
+ /**
37
+ * Visibility of the radio inner circle from 0 to 1
38
+ */
39
+ radioVisibility?: number;
40
+ /**
41
+ * Diameter size of the outer indicator
42
+ */
43
+ radioOuterCircleSize?: number;
44
+ /**
45
+ * Diameter size of the inner circle indicator
46
+ */
47
+ radioInnerCircleSize?: number;
48
+ /**
49
+ * Border width of Radio
50
+ */
51
+ radioBorderWidth?: number;
52
+ /**
53
+ * Background color of outer circle
54
+ */
55
+ radioOuterCircleBackground?: ColorValue;
56
+ /**
57
+ * The flex direction of the root
58
+ */
59
+ flexDirection?: ViewStyle['flexDirection'];
60
+ /**
61
+ * Root item alignment
62
+ */
63
+ alignItems?: ViewStyle['alignItems'];
64
+ /**
65
+ * The top margin
66
+ */
67
+ marginTop?: ViewStyle['marginTop'];
68
+ /**
69
+ * The right margin
70
+ */
71
+ marginRight?: ViewStyle['marginRight'];
72
+ /**
73
+ * The bottom margin
74
+ */
75
+ marginBottom?: ViewStyle['marginBottom'];
76
+ /**
77
+ * The left margin
78
+ */
79
+ marginLeft?: ViewStyle['marginLeft'];
80
+ /**
81
+ * Label item alignment
82
+ */
83
+ labelAlignItems?: ViewStyle['alignItems'];
84
+ /**
85
+ * Label's top margin.
86
+ */
87
+ labelMarginVertical?: ViewStyle['marginVertical'];
88
+ /**
89
+ * Label's right margin.
90
+ */
91
+ labelMarginRight?: ViewStyle['marginRight'];
92
+ /**
93
+ * Label's left margin.
94
+ */
95
+ labelMarginLeft?: ViewStyle['marginLeft'];
96
+ /**
97
+ * Label's padding.
98
+ */
99
+ labelPadding?: ViewStyle['marginLeft'];
100
+ subtextVariant?: keyof Variant;
101
+ /**
102
+ * Padding between label and label subtext.
103
+ *
104
+ * Should only by used if subtext prop is provided.
105
+ */
106
+ subtextMarginTop?: ViewStyle['marginTop'];
107
+ /**
108
+ * Padding between label subtext and focus ring.
109
+ *
110
+ * Should only by used if subtext prop is provided.
111
+ */
112
+ subtextMarginBottom?: ViewStyle['marginBottom'];
113
+ /**
114
+ * Ripple color for Android.
115
+ *
116
+ * A ripple animation is shown on click for Android. This sets the color of the ripple.
117
+ * @platform android
118
+ */
119
+ rippleColor?: ColorValue;
120
+ /**
121
+ * Ripple radius for circular radio on Android.
122
+ *
123
+ * A ripple animation is shown on click for Android. This sets the radius of the circular ripple shown on the radio button.
124
+ * @platform android
125
+ */
126
+ rippleRadius?: number;
127
+ /**
128
+ * States that can be applied to a Radio
129
+ */
130
+ labelPositionBelow?: RadioTokens;
131
+ selected?: RadioTokens;
132
+ disabled?: RadioTokens;
133
+ hovered?: RadioTokens;
134
+ focused?: RadioTokens;
135
+ pressed?: RadioTokens;
130
136
  }
131
137
  export interface RadioProps extends PressablePropsExtended {
132
- /**
133
- * The text string for the option
134
- */
135
- label: string;
136
- /**
137
- * Label subtext for the option
138
- */
139
- subtext?: string;
140
- /**
141
- * A unique key-identifier for each option
142
- */
143
- value: string;
144
- /**
145
- * Whether or not the radio button is selectable
146
- */
147
- disabled?: boolean;
148
- /**
149
- * The position of the label relative to the radio indicator.
150
- *
151
- * This defaults to 'after' unless the Radio is inside a RadioGroup with layout horizontal-stacked,
152
- * in which case it defaults to 'below'
153
- *
154
- * 'below' is not supported from Fluent Android and Win32, renders as-is.
155
- * @default after
156
- */
157
- labelPosition?: 'after' | 'below';
158
- /**
159
- * A RefObject to access the IFocusable interface. Use this to access the public methods and properties of the component.
160
- */
161
- componentRef?: React.RefObject<IFocusable>;
162
- /**
163
- * Whether to use native focus visuals for the component
164
- * @default true
165
- */
166
- enableFocusRing?: boolean;
138
+ /**
139
+ * The text string for the option
140
+ */
141
+ label: string;
142
+ /**
143
+ * Label subtext for the option
144
+ */
145
+ subtext?: string;
146
+ /**
147
+ * A unique key-identifier for each option
148
+ */
149
+ value: string;
150
+ /**
151
+ * Whether or not the radio button is selectable
152
+ */
153
+ disabled?: boolean;
154
+ /**
155
+ * The position of the label relative to the radio indicator.
156
+ *
157
+ * This defaults to 'after' unless the Radio is inside a RadioGroup with layout horizontal-stacked,
158
+ * in which case it defaults to 'below'
159
+ *
160
+ * 'below' is not supported from Fluent Android and Win32, renders as-is.
161
+ * @default after
162
+ */
163
+ labelPosition?: 'after' | 'below';
164
+ /**
165
+ * A RefObject to access the IFocusable interface. Use this to access the public methods and properties of the component.
166
+ */
167
+ componentRef?: React.RefObject<IFocusable>;
168
+ /**
169
+ * Whether to use native focus visuals for the component
170
+ * @default true
171
+ */
172
+ enableFocusRing?: boolean;
167
173
  }
168
174
  export interface RadioInfo {
169
- props: RadioProps & React.ComponentPropsWithRef<any>;
170
- state: PressableState;
175
+ props: RadioProps & React.ComponentPropsWithRef<any>;
176
+ state: PressableState;
171
177
  }
172
178
  export interface RadioSlotProps {
173
- root: React.PropsWithRef<PressablePropsExtended>;
174
- button: PressablePropsExtended;
175
- innerCircle?: IViewProps;
176
- checkmark?: SvgProps;
177
- labelContent: IViewProps;
178
- label: TextProps;
179
- subtext?: TextProps;
179
+ root: React.PropsWithRef<PressablePropsExtended>;
180
+ button: PressablePropsExtended;
181
+ innerCircle?: IViewProps;
182
+ checkmark?: SvgProps;
183
+ labelContent: IViewProps;
184
+ label: TextProps;
185
+ subtext?: TextProps;
180
186
  }
181
187
  export interface RadioType {
182
- props: RadioProps;
183
- tokens: RadioTokens;
184
- slotProps: RadioSlotProps;
188
+ props: RadioProps;
189
+ tokens: RadioTokens;
190
+ slotProps: RadioSlotProps;
185
191
  }
186
- //# sourceMappingURL=Radio.types.d.ts.map
192
+ //# sourceMappingURL=Radio.types.d.ts.map
@@ -1,5 +1,5 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ 'use strict';
2
+ Object.defineProperty(exports, '__esModule', { value: true });
3
3
  exports.radioName = void 0;
4
4
  exports.radioName = 'Radio';
5
- //# sourceMappingURL=Radio.types.js.map
5
+ //# sourceMappingURL=Radio.types.js.map
@@ -2,4 +2,4 @@ import type { Theme } from '@fluentui-react-native/framework';
2
2
  import type { TokenSettings } from '@fluentui-react-native/use-styling';
3
3
  import type { RadioTokens } from './Radio.types';
4
4
  export declare const defaultRadioTokens: TokenSettings<RadioTokens, Theme>;
5
- //# sourceMappingURL=RadioTokens.android.d.ts.map
5
+ //# sourceMappingURL=RadioTokens.android.d.ts.map