@fluentui-react-native/radio-group 0.22.0 → 0.22.3
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.
- package/CHANGELOG.md +60 -0
- package/lib/Radio/Radio.d.ts +2 -7
- package/lib/Radio/Radio.ios.d.ts +2 -7
- package/lib/Radio/Radio.ios.js +31 -50
- package/lib/Radio/Radio.js +31 -46
- package/lib/Radio/Radio.styling.d.ts +1 -1
- package/lib/Radio/Radio.styling.js +88 -109
- package/lib/Radio/Radio.types.d.ts +170 -176
- package/lib/Radio/Radio.types.js +1 -1
- package/lib/Radio/RadioTokens.android.d.ts +1 -1
- package/lib/Radio/RadioTokens.android.js +42 -42
- package/lib/Radio/RadioTokens.android.js.map +1 -1
- package/lib/Radio/RadioTokens.d.ts +1 -1
- package/lib/Radio/RadioTokens.ios.d.ts +1 -1
- package/lib/Radio/RadioTokens.ios.js +39 -39
- package/lib/Radio/RadioTokens.ios.js.map +1 -1
- package/lib/Radio/RadioTokens.js +76 -76
- package/lib/Radio/RadioTokens.js.map +1 -1
- package/lib/Radio/RadioTokens.win32.d.ts +1 -1
- package/lib/Radio/RadioTokens.win32.js +89 -89
- package/lib/Radio/RadioTokens.win32.js.map +1 -1
- package/lib/Radio/__tests__/RadioExperimental.test.d.ts +1 -1
- package/lib/Radio/__tests__/RadioExperimental.test.js +14 -14
- package/lib/Radio/useRadio.d.ts +1 -1
- package/lib/Radio/useRadio.d.ts.map +1 -1
- package/lib/Radio/useRadio.js +72 -91
- package/lib/Radio/useRadio.js.map +1 -1
- package/lib/Radio/useRadio.win32.d.ts +1 -1
- package/lib/Radio/useRadio.win32.d.ts.map +1 -1
- package/lib/Radio/useRadio.win32.js +126 -143
- package/lib/Radio/useRadio.win32.js.map +1 -1
- package/lib/RadioGroup/RadioGroup.d.ts +2 -7
- package/lib/RadioGroup/RadioGroup.js +34 -48
- package/lib/RadioGroup/RadioGroup.styling.d.ts +1 -1
- package/lib/RadioGroup/RadioGroup.styling.js +42 -51
- package/lib/RadioGroup/RadioGroup.types.d.ts +117 -117
- package/lib/RadioGroup/RadioGroup.types.js +1 -1
- package/lib/RadioGroup/RadioGroupTokens.android.d.ts +1 -1
- package/lib/RadioGroup/RadioGroupTokens.android.js +1 -1
- package/lib/RadioGroup/RadioGroupTokens.d.ts +1 -1
- package/lib/RadioGroup/RadioGroupTokens.ios.d.ts +1 -1
- package/lib/RadioGroup/RadioGroupTokens.ios.js +1 -1
- package/lib/RadioGroup/RadioGroupTokens.js +12 -12
- package/lib/RadioGroup/RadioGroupTokens.js.map +1 -1
- package/lib/RadioGroup/RadioGroupTokens.mobile.d.ts +1 -1
- package/lib/RadioGroup/RadioGroupTokens.mobile.js +13 -13
- package/lib/RadioGroup/RadioGroupTokens.mobile.js.map +1 -1
- package/lib/RadioGroup/__tests__/RadioGroupExperimental.test.d.ts +1 -1
- package/lib/RadioGroup/__tests__/RadioGroupExperimental.test.js +56 -98
- package/lib/RadioGroup/radioGroupContext.d.ts +1 -1
- package/lib/RadioGroup/radioGroupContext.js +15 -19
- package/lib/RadioGroup/useRadioGroup.d.ts +1 -1
- package/lib/RadioGroup/useRadioGroup.js +63 -93
- package/lib/RadioGroup/useRadioGroupContextValue.d.ts +1 -1
- package/lib/RadioGroup/useRadioGroupContextValue.js +2 -2
- package/lib/index.d.ts +4 -25
- package/lib/index.js +1 -1
- package/lib/legacy/MacOSRadioButtonNativeComponent.d.ts +6 -6
- package/lib/legacy/MacOSRadioButtonNativeComponent.js +1 -1
- package/lib/legacy/RadioButton.d.ts +2 -8
- package/lib/legacy/RadioButton.d.ts.map +1 -1
- package/lib/legacy/RadioButton.js +82 -96
- package/lib/legacy/RadioButton.js.map +1 -1
- package/lib/legacy/RadioButton.macos.d.ts +2 -8
- package/lib/legacy/RadioButton.macos.d.ts.map +1 -1
- package/lib/legacy/RadioButton.macos.js +50 -48
- package/lib/legacy/RadioButton.macos.js.map +1 -1
- package/lib/legacy/RadioButton.settings.d.ts +2 -2
- package/lib/legacy/RadioButton.settings.js +81 -81
- package/lib/legacy/RadioButton.types.d.ts +45 -45
- package/lib/legacy/RadioButton.types.js +1 -1
- package/lib/legacy/RadioButton.win32.d.ts +2 -8
- package/lib/legacy/RadioButton.win32.d.ts.map +1 -1
- package/lib/legacy/RadioButton.win32.js +136 -151
- package/lib/legacy/RadioButton.win32.js.map +1 -1
- package/lib/legacy/RadioGroup.d.ts +2 -8
- package/lib/legacy/RadioGroup.d.ts.map +1 -1
- package/lib/legacy/RadioGroup.js +80 -108
- package/lib/legacy/RadioGroup.js.map +1 -1
- package/lib/legacy/RadioGroup.settings.d.ts +1 -1
- package/lib/legacy/RadioGroup.settings.js +21 -21
- package/lib/legacy/RadioGroup.types.d.ts +79 -78
- package/lib/legacy/RadioGroup.types.js +1 -1
- package/lib/legacy/__tests__/RadioButton.test.d.ts +1 -1
- package/lib/legacy/__tests__/RadioButton.test.js +8 -8
- package/lib/legacy/__tests__/RadioButtonGroup.test.d.ts +1 -1
- package/lib/legacy/__tests__/RadioButtonGroup.test.js +18 -34
- package/lib-commonjs/Radio/Radio.d.ts +2 -7
- package/lib-commonjs/Radio/Radio.ios.d.ts +2 -7
- package/lib-commonjs/Radio/Radio.ios.js +40 -64
- package/lib-commonjs/Radio/Radio.js +39 -59
- package/lib-commonjs/Radio/Radio.styling.d.ts +1 -1
- package/lib-commonjs/Radio/Radio.styling.js +94 -115
- package/lib-commonjs/Radio/Radio.types.d.ts +170 -176
- package/lib-commonjs/Radio/Radio.types.js +3 -3
- package/lib-commonjs/Radio/RadioTokens.android.d.ts +1 -1
- package/lib-commonjs/Radio/RadioTokens.android.js +45 -45
- package/lib-commonjs/Radio/RadioTokens.android.js.map +1 -1
- package/lib-commonjs/Radio/RadioTokens.d.ts +1 -1
- package/lib-commonjs/Radio/RadioTokens.ios.d.ts +1 -1
- package/lib-commonjs/Radio/RadioTokens.ios.js +42 -42
- package/lib-commonjs/Radio/RadioTokens.ios.js.map +1 -1
- package/lib-commonjs/Radio/RadioTokens.js +79 -79
- package/lib-commonjs/Radio/RadioTokens.js.map +1 -1
- package/lib-commonjs/Radio/RadioTokens.win32.d.ts +1 -1
- package/lib-commonjs/Radio/RadioTokens.win32.js +92 -92
- package/lib-commonjs/Radio/RadioTokens.win32.js.map +1 -1
- package/lib-commonjs/Radio/__tests__/RadioExperimental.test.d.ts +1 -1
- package/lib-commonjs/Radio/__tests__/RadioExperimental.test.js +48 -65
- package/lib-commonjs/Radio/useRadio.d.ts +1 -1
- package/lib-commonjs/Radio/useRadio.d.ts.map +1 -1
- package/lib-commonjs/Radio/useRadio.js +107 -143
- package/lib-commonjs/Radio/useRadio.js.map +1 -1
- package/lib-commonjs/Radio/useRadio.win32.d.ts +1 -1
- package/lib-commonjs/Radio/useRadio.win32.d.ts.map +1 -1
- package/lib-commonjs/Radio/useRadio.win32.js +162 -196
- package/lib-commonjs/Radio/useRadio.win32.js.map +1 -1
- package/lib-commonjs/RadioGroup/RadioGroup.d.ts +2 -7
- package/lib-commonjs/RadioGroup/RadioGroup.js +45 -65
- package/lib-commonjs/RadioGroup/RadioGroup.styling.d.ts +1 -1
- package/lib-commonjs/RadioGroup/RadioGroup.styling.js +48 -57
- package/lib-commonjs/RadioGroup/RadioGroup.types.d.ts +117 -117
- package/lib-commonjs/RadioGroup/RadioGroup.types.js +3 -3
- package/lib-commonjs/RadioGroup/RadioGroupTokens.android.d.ts +1 -1
- package/lib-commonjs/RadioGroup/RadioGroupTokens.android.js +5 -10
- package/lib-commonjs/RadioGroup/RadioGroupTokens.d.ts +1 -1
- package/lib-commonjs/RadioGroup/RadioGroupTokens.ios.d.ts +1 -1
- package/lib-commonjs/RadioGroup/RadioGroupTokens.ios.js +5 -10
- package/lib-commonjs/RadioGroup/RadioGroupTokens.js +15 -15
- package/lib-commonjs/RadioGroup/RadioGroupTokens.js.map +1 -1
- package/lib-commonjs/RadioGroup/RadioGroupTokens.mobile.d.ts +1 -1
- package/lib-commonjs/RadioGroup/RadioGroupTokens.mobile.js +16 -16
- package/lib-commonjs/RadioGroup/RadioGroupTokens.mobile.js.map +1 -1
- package/lib-commonjs/RadioGroup/__tests__/RadioGroupExperimental.test.d.ts +1 -1
- package/lib-commonjs/RadioGroup/__tests__/RadioGroupExperimental.test.js +91 -153
- package/lib-commonjs/RadioGroup/radioGroupContext.d.ts +1 -1
- package/lib-commonjs/RadioGroup/radioGroupContext.js +47 -68
- package/lib-commonjs/RadioGroup/useRadioGroup.d.ts +1 -1
- package/lib-commonjs/RadioGroup/useRadioGroup.js +97 -144
- package/lib-commonjs/RadioGroup/useRadioGroupContextValue.d.ts +1 -1
- package/lib-commonjs/RadioGroup/useRadioGroupContextValue.js +4 -4
- package/lib-commonjs/index.d.ts +4 -25
- package/lib-commonjs/index.js +32 -128
- package/lib-commonjs/legacy/MacOSRadioButtonNativeComponent.d.ts +6 -6
- package/lib-commonjs/legacy/MacOSRadioButtonNativeComponent.js +7 -9
- package/lib-commonjs/legacy/RadioButton.d.ts +2 -8
- package/lib-commonjs/legacy/RadioButton.d.ts.map +1 -1
- package/lib-commonjs/legacy/RadioButton.js +123 -162
- package/lib-commonjs/legacy/RadioButton.js.map +1 -1
- package/lib-commonjs/legacy/RadioButton.macos.d.ts +2 -8
- package/lib-commonjs/legacy/RadioButton.macos.d.ts.map +1 -1
- package/lib-commonjs/legacy/RadioButton.macos.js +90 -107
- package/lib-commonjs/legacy/RadioButton.macos.js.map +1 -1
- package/lib-commonjs/legacy/RadioButton.settings.d.ts +2 -2
- package/lib-commonjs/legacy/RadioButton.settings.js +84 -84
- package/lib-commonjs/legacy/RadioButton.types.d.ts +45 -45
- package/lib-commonjs/legacy/RadioButton.types.js +3 -3
- package/lib-commonjs/legacy/RadioButton.win32.d.ts +2 -8
- package/lib-commonjs/legacy/RadioButton.win32.d.ts.map +1 -1
- package/lib-commonjs/legacy/RadioButton.win32.js +177 -217
- package/lib-commonjs/legacy/RadioButton.win32.js.map +1 -1
- package/lib-commonjs/legacy/RadioGroup.d.ts +2 -8
- package/lib-commonjs/legacy/RadioGroup.d.ts.map +1 -1
- package/lib-commonjs/legacy/RadioGroup.js +121 -168
- package/lib-commonjs/legacy/RadioGroup.js.map +1 -1
- package/lib-commonjs/legacy/RadioGroup.settings.d.ts +1 -1
- package/lib-commonjs/legacy/RadioGroup.settings.js +24 -24
- package/lib-commonjs/legacy/RadioGroup.types.d.ts +79 -78
- package/lib-commonjs/legacy/RadioGroup.types.js +3 -3
- package/lib-commonjs/legacy/__tests__/RadioButton.test.d.ts +1 -1
- package/lib-commonjs/legacy/__tests__/RadioButton.test.js +42 -59
- package/lib-commonjs/legacy/__tests__/RadioButtonGroup.test.d.ts +1 -1
- package/lib-commonjs/legacy/__tests__/RadioButtonGroup.test.js +53 -96
- package/package.json +35 -34
- package/src/Radio/RadioTokens.android.ts +1 -1
- package/src/Radio/RadioTokens.ios.ts +1 -1
- package/src/Radio/RadioTokens.ts +1 -1
- package/src/Radio/RadioTokens.win32.ts +1 -1
- package/src/Radio/useRadio.ts +13 -11
- package/src/Radio/useRadio.win32.ts +45 -26
- package/src/RadioGroup/RadioGroupTokens.mobile.ts +1 -1
- package/src/RadioGroup/RadioGroupTokens.ts +1 -1
- package/src/legacy/RadioButton.macos.tsx +10 -8
- package/src/legacy/RadioButton.tsx +13 -11
- package/src/legacy/RadioButton.win32.tsx +46 -30
- package/src/legacy/RadioGroup.tsx +4 -8
- package/eslint.config.js +0 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RadioButton.macos.js","sourceRoot":"","sources":["../../src/legacy/RadioButton.macos.tsx"],"names":[],"mappings":";AAAA;;;;GAIG;AACH,6DAA6D;AAC7D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAC;AAE7D,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AAEpE,OAAO,qBAAqB,MAAM,mCAAmC,CAAC;AAEtE,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAEjD,MAAM,CAAC,MAAM,WAAW,GAAG,OAAO,CAAmB;IACnD,WAAW,EAAE,eAAe;IAC5B,eAAe,EAAE,CAAC,SAA4B,EAAE,UAAgD,EAAE,EAAE,CAAC;QACnG,MAAM,mBAAmB,GAAG,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QAC/C,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,YAAY,GAAG,mBAAmB,EAAE,GAAG,SAAS,CAAC;QACvF,MAAM,IAAI,GAAG,KAAK,CAAC,UAAU,CAAC,iBAAiB,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"RadioButton.macos.js","sourceRoot":"","sources":["../../src/legacy/RadioButton.macos.tsx"],"names":[],"mappings":";AAAA;;;;GAIG;AACH,6DAA6D;AAC7D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAC;AAE7D,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AAEpE,OAAO,qBAAqB,MAAM,mCAAmC,CAAC;AAEtE,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAEjD,MAAM,CAAC,MAAM,WAAW,GAAG,OAAO,CAAmB;IACnD,WAAW,EAAE,eAAe;IAC5B,eAAe,EAAE,CAAC,SAA4B,EAAE,UAAgD,EAAE,EAAE,CAAC;QACnG,MAAM,mBAAmB,GAAG,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QAC/C,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,YAAY,GAAG,mBAAmB,EAAE,GAAG,SAAS,CAAC;QACvF,MAAM,IAAI,GAAG,KAAK,CAAC,UAAU,CAAC,iBAAiB,CAAC,CAAC;QACjD,MAAM,EAAE,QAAQ,EAAE,WAAW,EAAE,uBAAuB,EAAE,GAAG,IAAI,CAAC;QAEhE,wEAAwE;QACxE,MAAM,eAAe,GAAG,KAAK,CAAC,WAAW,CAAC,GAAG,EAAE,CAAC;YAC9C,0EAA0E;YAC1E,IAAI,SAAS,IAAI,WAAW,EAAE,CAAC;gBAC7B,QAAQ,IAAI,QAAQ,CAAC,SAAS,CAAC,CAAC;gBAChC,uBAAuB,IAAI,YAAY,IAAI,uBAAuB,CAAC,YAAY,CAAC,CAAC;YACnF,CAAC;QAAA,CACF,EAAE,CAAC,SAAS,EAAE,YAAY,EAAE,QAAQ,EAAE,WAAW,EAAE,uBAAuB,CAAC,CAAC,CAAC;QAE9E;;uCAE+B;QAC/B,KAAK,CAAC,SAAS,CAAC,GAAG,EAAE,CAAC;YACpB,IAAI,SAAS,KAAK,WAAW,EAAE,CAAC;gBAC9B,uBAAuB,IAAI,YAAY,IAAI,uBAAuB,CAAC,YAAY,CAAC,CAAC;YACnF,CAAC;YACD,kGAAkG;QADjG,CAEF,EAAE,EAAE,CAAC,CAAC;QAEP,MAAM,UAAU,GAAG,UAAU,CAAC,SAAS,CAAC,CAAC;QACzC,MAAM,UAAU,GAAG,WAAW,KAAK,SAAS,CAAC;QAC7C,MAAM,SAAS,GAAG,aAAa,CAAwB,UAAU,EAAE;YACjE,IAAI,EAAE;gBACJ,GAAG,EAAE,YAAY;gBACjB,SAAS,EAAE,SAAS;gBACpB,OAAO,EAAE,OAAO;gBAChB,QAAQ,EAAE,QAAQ;gBAClB,OAAO,EAAE,eAAe;gBACxB,QAAQ,EAAE,UAAU;gBACpB,KAAK,EAAE;oBACL,QAAQ,EAAE,MAAM;oBAChB,SAAS,EAAE,EAAE;iBACd;aACF;SACF,CAAC,CAAC;QAEH,OAAO,EAAE,SAAS,EAAE,CAAC;IAAA,CACtB;IACD,KAAK,EAAE;QACL,IAAI,EAAE,qBAAqB;KAC5B;IACD,MAAM,EAAE;QACN,IAAI,EAAE,EAAE;KACT;IACD,MAAM,EAAE,CAAC,KAAoC,EAAE,EAAE,CAAC;QAChD,OAAO,KAAC,KAAK,CAAC,IAAI,KAAG,CAAC;IAAA,CACvB;CACF,CAAC,CAAC;AAEH,eAAe,WAAW,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { IComposeSettings } from '@uifabricshared/foundation-compose';
|
|
2
2
|
import type { IRadioButtonType } from './RadioButton.types';
|
|
3
|
-
export declare const radioButtonSelectActionLabel =
|
|
3
|
+
export declare const radioButtonSelectActionLabel = "Select a RadioButton";
|
|
4
4
|
export declare const settings: IComposeSettings<IRadioButtonType>;
|
|
5
|
-
//# sourceMappingURL=RadioButton.settings.d.ts.map
|
|
5
|
+
//# sourceMappingURL=RadioButton.settings.d.ts.map
|
|
@@ -5,91 +5,91 @@ const radioButtonInnerCircleSize = 10;
|
|
|
5
5
|
const radioButtonInnerCircleRadius = radioButtonInnerCircleSize / 2;
|
|
6
6
|
export const radioButtonSelectActionLabel = 'Select a RadioButton';
|
|
7
7
|
export const settings = [
|
|
8
|
-
|
|
9
|
-
tokens: {
|
|
10
|
-
borderColor: 'menuItemText',
|
|
11
|
-
color: 'menuItemText',
|
|
12
|
-
backgroundColor: 'menuItemText',
|
|
13
|
-
textBorderColor: 'transparent',
|
|
14
|
-
},
|
|
15
|
-
root: {
|
|
16
|
-
accessible: true,
|
|
17
|
-
focusable: true,
|
|
18
|
-
accessibilityRole: 'radio',
|
|
19
|
-
style: {
|
|
20
|
-
display: 'flex',
|
|
21
|
-
alignItems: 'center',
|
|
22
|
-
flexDirection: 'row',
|
|
23
|
-
minHeight: 20,
|
|
24
|
-
marginTop: 0,
|
|
25
|
-
position: 'relative',
|
|
26
|
-
},
|
|
27
|
-
},
|
|
28
|
-
button: {
|
|
29
|
-
style: {
|
|
30
|
-
backgroundColor: 'transparent',
|
|
31
|
-
width: radioButtonSize,
|
|
32
|
-
height: radioButtonSize,
|
|
33
|
-
top: 0,
|
|
34
|
-
left: 0,
|
|
35
|
-
borderWidth: 1,
|
|
36
|
-
borderStyle: 'solid',
|
|
37
|
-
borderRadius: radioButtonRadius,
|
|
38
|
-
marginTop: 4,
|
|
39
|
-
marginRight: 6,
|
|
40
|
-
marginBottom: 6,
|
|
41
|
-
marginLeft: 6,
|
|
42
|
-
},
|
|
43
|
-
},
|
|
44
|
-
innerCircle: {
|
|
45
|
-
style: {
|
|
46
|
-
position: 'relative',
|
|
47
|
-
opacity: 0,
|
|
48
|
-
borderRadius: radioButtonInnerCircleRadius,
|
|
49
|
-
height: radioButtonInnerCircleSize,
|
|
50
|
-
width: radioButtonInnerCircleSize,
|
|
51
|
-
left: 4,
|
|
52
|
-
top: 4,
|
|
53
|
-
},
|
|
54
|
-
},
|
|
55
|
-
content: {
|
|
56
|
-
variant: 'subheaderStandard',
|
|
57
|
-
style: {
|
|
58
|
-
marginTop: 2,
|
|
59
|
-
borderStyle: 'solid',
|
|
60
|
-
borderWidth: 2,
|
|
61
|
-
},
|
|
62
|
-
},
|
|
63
|
-
_precedence: ['disabled', 'hovered', 'focused', 'selected'],
|
|
64
|
-
_overrides: {
|
|
65
|
-
selected: {
|
|
66
|
-
innerCircle: {
|
|
67
|
-
style: {
|
|
68
|
-
opacity: 1,
|
|
69
|
-
},
|
|
70
|
-
},
|
|
71
|
-
},
|
|
72
|
-
focused: {
|
|
8
|
+
{
|
|
73
9
|
tokens: {
|
|
74
|
-
|
|
10
|
+
borderColor: 'menuItemText',
|
|
11
|
+
color: 'menuItemText',
|
|
12
|
+
backgroundColor: 'menuItemText',
|
|
13
|
+
textBorderColor: 'transparent',
|
|
14
|
+
},
|
|
15
|
+
root: {
|
|
16
|
+
accessible: true,
|
|
17
|
+
focusable: true,
|
|
18
|
+
accessibilityRole: 'radio',
|
|
19
|
+
style: {
|
|
20
|
+
display: 'flex',
|
|
21
|
+
alignItems: 'center',
|
|
22
|
+
flexDirection: 'row',
|
|
23
|
+
minHeight: 20,
|
|
24
|
+
marginTop: 0,
|
|
25
|
+
position: 'relative',
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
button: {
|
|
29
|
+
style: {
|
|
30
|
+
backgroundColor: 'transparent',
|
|
31
|
+
width: radioButtonSize,
|
|
32
|
+
height: radioButtonSize,
|
|
33
|
+
top: 0,
|
|
34
|
+
left: 0,
|
|
35
|
+
borderWidth: 1,
|
|
36
|
+
borderStyle: 'solid',
|
|
37
|
+
borderRadius: radioButtonRadius,
|
|
38
|
+
marginTop: 4,
|
|
39
|
+
marginRight: 6,
|
|
40
|
+
marginBottom: 6,
|
|
41
|
+
marginLeft: 6,
|
|
42
|
+
},
|
|
75
43
|
},
|
|
76
|
-
},
|
|
77
|
-
hovered: {
|
|
78
44
|
innerCircle: {
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
45
|
+
style: {
|
|
46
|
+
position: 'relative',
|
|
47
|
+
opacity: 0,
|
|
48
|
+
borderRadius: radioButtonInnerCircleRadius,
|
|
49
|
+
height: radioButtonInnerCircleSize,
|
|
50
|
+
width: radioButtonInnerCircleSize,
|
|
51
|
+
left: 4,
|
|
52
|
+
top: 4,
|
|
53
|
+
},
|
|
82
54
|
},
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
55
|
+
content: {
|
|
56
|
+
variant: 'subheaderStandard',
|
|
57
|
+
style: {
|
|
58
|
+
marginTop: 2,
|
|
59
|
+
borderStyle: 'solid',
|
|
60
|
+
borderWidth: 2,
|
|
61
|
+
},
|
|
62
|
+
},
|
|
63
|
+
_precedence: ['disabled', 'hovered', 'focused', 'selected'],
|
|
64
|
+
_overrides: {
|
|
65
|
+
selected: {
|
|
66
|
+
innerCircle: {
|
|
67
|
+
style: {
|
|
68
|
+
opacity: 1,
|
|
69
|
+
},
|
|
70
|
+
},
|
|
71
|
+
},
|
|
72
|
+
focused: {
|
|
73
|
+
tokens: {
|
|
74
|
+
textBorderColor: 'focusBorder',
|
|
75
|
+
},
|
|
76
|
+
},
|
|
77
|
+
hovered: {
|
|
78
|
+
innerCircle: {
|
|
79
|
+
style: {
|
|
80
|
+
opacity: 0.5,
|
|
81
|
+
},
|
|
82
|
+
},
|
|
83
|
+
},
|
|
84
|
+
disabled: {
|
|
85
|
+
tokens: {
|
|
86
|
+
borderColor: 'buttonBorderDisabled',
|
|
87
|
+
color: 'disabledBodyText',
|
|
88
|
+
backgroundColor: 'background',
|
|
89
|
+
},
|
|
90
|
+
},
|
|
89
91
|
},
|
|
90
|
-
},
|
|
91
92
|
},
|
|
92
|
-
|
|
93
|
-
radioButtonName,
|
|
93
|
+
radioButtonName,
|
|
94
94
|
];
|
|
95
|
-
//# sourceMappingURL=RadioButton.settings.js.map
|
|
95
|
+
//# sourceMappingURL=RadioButton.settings.js.map
|
|
@@ -6,57 +6,57 @@ import type { ITextProps } from '@fluentui-react-native/text';
|
|
|
6
6
|
import type { FontTokens, IForegroundColorTokens, IBackgroundColorTokens, IBorderTokens } from '@fluentui-react-native/tokens';
|
|
7
7
|
import type { IRenderData } from '@uifabricshared/foundation-composable';
|
|
8
8
|
import type { IViewProps } from '@fluentui-react-native/adapters';
|
|
9
|
-
export declare const radioButtonName =
|
|
9
|
+
export declare const radioButtonName = "RadioButton";
|
|
10
10
|
export interface IRadioButtonProps extends IPressableProps {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
11
|
+
/**
|
|
12
|
+
* The text string for the option
|
|
13
|
+
*/
|
|
14
|
+
content: string;
|
|
15
|
+
/**
|
|
16
|
+
* A unique key-identifier for each option
|
|
17
|
+
*/
|
|
18
|
+
buttonKey: string;
|
|
19
|
+
/**
|
|
20
|
+
* Whether or not the radio button is selectable
|
|
21
|
+
*/
|
|
22
|
+
disabled?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* An optional string for the Narrator to read for each RadioButton. If not provided, this will be set to the button's content.
|
|
25
|
+
* @deprecated Use accessibilityLabel instead.
|
|
26
|
+
*/
|
|
27
|
+
ariaLabel?: string;
|
|
28
|
+
/**
|
|
29
|
+
* Defines the current radio button's position in the radio group for accessibility purposes. It's recommended to set this value
|
|
30
|
+
* if radio buttons are not direct children of radio group. This value is auto-generated if radio buttons are direct children of
|
|
31
|
+
* radio group.
|
|
32
|
+
* @deprecated Use accessibilityPosInSet instead.
|
|
33
|
+
*/
|
|
34
|
+
ariaPosInSet?: number;
|
|
35
|
+
/**
|
|
36
|
+
* Defines the number of radio buttons in the group for accessibility purposes.It's recommended to set this value if radio
|
|
37
|
+
* buttons are not direct children of radio group. This value is auto-generated if radio buttons are direct children of
|
|
38
|
+
* radio group.
|
|
39
|
+
* @deprecated Use accessibilitySetSize instead.
|
|
40
|
+
*/
|
|
41
|
+
ariaSetSize?: number;
|
|
42
|
+
/**
|
|
43
|
+
* A RefObject to access the IFocusable interface. Use this to access the public methods and properties of the component.
|
|
44
|
+
*/
|
|
45
|
+
componentRef?: React.RefObject<IFocusable>;
|
|
46
46
|
}
|
|
47
47
|
export interface IRadioButtonTokens extends FontTokens, IForegroundColorTokens, IBackgroundColorTokens, IBorderTokens {
|
|
48
|
-
|
|
48
|
+
textBorderColor?: string;
|
|
49
49
|
}
|
|
50
50
|
export interface IRadioButtonSlotProps {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
51
|
+
root: React.PropsWithRef<IViewProps>;
|
|
52
|
+
button: ViewProps;
|
|
53
|
+
innerCircle: ViewProps;
|
|
54
|
+
content: ITextProps;
|
|
55
55
|
}
|
|
56
56
|
export type IRadioButtonRenderData = IRenderData<IRadioButtonSlotProps>;
|
|
57
57
|
export interface IRadioButtonType {
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
58
|
+
props: IRadioButtonProps;
|
|
59
|
+
tokens: IRadioButtonTokens;
|
|
60
|
+
slotProps: IRadioButtonSlotProps;
|
|
61
61
|
}
|
|
62
|
-
//# sourceMappingURL=RadioButton.types.d.ts.map
|
|
62
|
+
//# sourceMappingURL=RadioButton.types.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export const radioButtonName = 'RadioButton';
|
|
2
|
-
//# sourceMappingURL=RadioButton.types.js.map
|
|
2
|
+
//# sourceMappingURL=RadioButton.types.js.map
|
|
@@ -1,10 +1,4 @@
|
|
|
1
1
|
import type { IRadioButtonProps, IRadioButtonSlotProps } from './RadioButton.types';
|
|
2
|
-
export declare const RadioButton: import(
|
|
3
|
-
IRadioButtonProps,
|
|
4
|
-
IRadioButtonSlotProps,
|
|
5
|
-
import('./RadioButton.types').IRadioButtonTokens,
|
|
6
|
-
object,
|
|
7
|
-
object
|
|
8
|
-
>;
|
|
2
|
+
export declare const RadioButton: import("@uifabricshared/foundation-compose").IComposeReturnType<IRadioButtonProps, IRadioButtonSlotProps, import("./RadioButton.types").IRadioButtonTokens, object, object>;
|
|
9
3
|
export default RadioButton;
|
|
10
|
-
//# sourceMappingURL=RadioButton.win32.d.ts.map
|
|
4
|
+
//# sourceMappingURL=RadioButton.win32.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RadioButton.win32.d.ts","sourceRoot":"","sources":["../../src/legacy/RadioButton.win32.tsx"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAoB,iBAAiB,EAAE,qBAAqB,EAA0B,MAAM,qBAAqB,CAAC;AAW9H,eAAO,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"RadioButton.win32.d.ts","sourceRoot":"","sources":["../../src/legacy/RadioButton.win32.tsx"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAoB,iBAAiB,EAAE,qBAAqB,EAA0B,MAAM,qBAAqB,CAAC;AAW9H,eAAO,MAAM,WAAW,6KAgMtB,CAAC;AAEH,eAAe,WAAW,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/** @jsxImportSource @fluentui-react-native/framework-base */
|
|
2
2
|
'use strict';
|
|
3
|
-
import { jsx as _jsx, jsxs as _jsxs } from
|
|
3
|
+
import { jsx as _jsx, jsxs as _jsxs } from "@fluentui-react-native/framework-base/jsx-runtime";
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import { View, I18nManager } from 'react-native';
|
|
6
6
|
import { filterViewProps } from '@fluentui-react-native/adapters';
|
|
@@ -14,159 +14,144 @@ import { radioButtonName } from './RadioButton.types';
|
|
|
14
14
|
import { RadioGroupContext } from './RadioGroup';
|
|
15
15
|
var DirectionalArrowKeys;
|
|
16
16
|
(function (DirectionalArrowKeys) {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
17
|
+
DirectionalArrowKeys["ArrowUp"] = "ArrowUp";
|
|
18
|
+
DirectionalArrowKeys["ArrowDown"] = "ArrowDown";
|
|
19
|
+
DirectionalArrowKeys["ArrowRight"] = "ArrowRight";
|
|
20
|
+
DirectionalArrowKeys["ArrowLeft"] = "ArrowLeft";
|
|
21
21
|
})(DirectionalArrowKeys || (DirectionalArrowKeys = {}));
|
|
22
22
|
export const RadioButton = compose({
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
// Grabs the context information from RadioGroup (currently selected button and client's onChange callback)
|
|
40
|
-
const info = React.useContext(RadioGroupContext);
|
|
41
|
-
const buttonRef = useViewCommandFocus(componentRef);
|
|
42
|
-
/* We don't want to call the user's onChange multiple times on the same selection. */
|
|
43
|
-
const changeSelection = () => {
|
|
44
|
-
if (buttonKey != info.selectedKey) {
|
|
45
|
-
info.onChange && info.onChange(buttonKey);
|
|
46
|
-
info.updateSelectedButtonRef && componentRef && info.updateSelectedButtonRef(componentRef);
|
|
47
|
-
}
|
|
48
|
-
};
|
|
49
|
-
/* We use the componentRef of the currently selected button to maintain the default tabbable
|
|
23
|
+
displayName: radioButtonName,
|
|
24
|
+
usePrepareProps: (userProps, useStyling) => {
|
|
25
|
+
const defaultComponentRef = React.useRef(null);
|
|
26
|
+
const { content, buttonKey, disabled, accessibilityLabel, ariaLabel, componentRef = defaultComponentRef, accessibilityPosInSet, ariaPosInSet, accessibilitySetSize, ariaSetSize, ...rest } = userProps;
|
|
27
|
+
// Grabs the context information from RadioGroup (currently selected button and client's onChange callback)
|
|
28
|
+
const info = React.useContext(RadioGroupContext);
|
|
29
|
+
const { addRadioButtonEnabledKey, addRadioButtonKey, buttonKeys, enabledButtonKeys, invoked, onChange, removeRadioButtonEnabledKey, removeRadioButtonKey, selectedKey, updateInvoked, updateSelectedButtonRef, } = info;
|
|
30
|
+
const buttonRef = useViewCommandFocus(componentRef);
|
|
31
|
+
/* We don't want to call the user's onChange multiple times on the same selection. */
|
|
32
|
+
const changeSelection = React.useCallback(() => {
|
|
33
|
+
if (buttonKey != selectedKey) {
|
|
34
|
+
onChange && onChange(buttonKey);
|
|
35
|
+
updateSelectedButtonRef && componentRef && updateSelectedButtonRef(componentRef);
|
|
36
|
+
}
|
|
37
|
+
}, [buttonKey, componentRef, onChange, selectedKey, updateSelectedButtonRef]);
|
|
38
|
+
/* We use the componentRef of the currently selected button to maintain the default tabbable
|
|
50
39
|
element in a RadioGroup. Since the componentRef isn't generated until after initial render,
|
|
51
40
|
we must update it once here. */
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
button: [borderTokens],
|
|
167
|
-
innerCircle: [backgroundColorTokens],
|
|
168
|
-
content: [foregroundColorTokens, textTokens, [{ source: 'textBorderColor', lookup: getPaletteFromTheme, target: 'borderColor' }]],
|
|
169
|
-
},
|
|
41
|
+
React.useEffect(() => {
|
|
42
|
+
if (buttonKey == selectedKey) {
|
|
43
|
+
updateSelectedButtonRef && componentRef && updateSelectedButtonRef(componentRef);
|
|
44
|
+
}
|
|
45
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps -- intentionally run only on mount/unmount
|
|
46
|
+
}, []);
|
|
47
|
+
// Explicitly only run on mount and unmount
|
|
48
|
+
React.useEffect(() => {
|
|
49
|
+
addRadioButtonKey(buttonKey);
|
|
50
|
+
if (!disabled) {
|
|
51
|
+
addRadioButtonEnabledKey(buttonKey);
|
|
52
|
+
}
|
|
53
|
+
return () => {
|
|
54
|
+
removeRadioButtonKey(buttonKey);
|
|
55
|
+
removeRadioButtonEnabledKey(buttonKey);
|
|
56
|
+
};
|
|
57
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps -- intentionally run only on mount/unmount
|
|
58
|
+
}, []);
|
|
59
|
+
const isRTL = I18nManager.isRTL;
|
|
60
|
+
const onInvoke = React.useCallback((e) => {
|
|
61
|
+
if (e.nativeEvent.key in DirectionalArrowKeys) {
|
|
62
|
+
const length = enabledButtonKeys.length;
|
|
63
|
+
const next = e.nativeEvent.key === DirectionalArrowKeys.ArrowDown ||
|
|
64
|
+
(isRTL ? e.nativeEvent.key === DirectionalArrowKeys.ArrowLeft : e.nativeEvent.key === DirectionalArrowKeys.ArrowRight);
|
|
65
|
+
const currRadioButtonIndex = enabledButtonKeys.indexOf(selectedKey);
|
|
66
|
+
let newCurrRadioButtonIndex;
|
|
67
|
+
if (next) {
|
|
68
|
+
newCurrRadioButtonIndex = (currRadioButtonIndex + 1) % length;
|
|
69
|
+
}
|
|
70
|
+
else {
|
|
71
|
+
// previous
|
|
72
|
+
newCurrRadioButtonIndex = (currRadioButtonIndex - 1 + length) % length;
|
|
73
|
+
}
|
|
74
|
+
onChange && onChange(enabledButtonKeys[newCurrRadioButtonIndex]);
|
|
75
|
+
updateInvoked && updateInvoked(true);
|
|
76
|
+
}
|
|
77
|
+
}, [enabledButtonKeys, isRTL, onChange, selectedKey, updateInvoked]);
|
|
78
|
+
// Sets the updated selected button ref and focus if this Radio is selected via arrow key.
|
|
79
|
+
React.useEffect(() => {
|
|
80
|
+
if (invoked && buttonKey === selectedKey && !disabled) {
|
|
81
|
+
updateSelectedButtonRef && componentRef && updateSelectedButtonRef(componentRef);
|
|
82
|
+
componentRef?.current?.focus();
|
|
83
|
+
updateInvoked && updateInvoked(false);
|
|
84
|
+
}
|
|
85
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps -- only re-run when invoked changes
|
|
86
|
+
}, [invoked]);
|
|
87
|
+
const keys = ['ArrowDown', 'ArrowRight', 'ArrowUp', 'ArrowLeft'];
|
|
88
|
+
// Explicitly override onKeyDown to override the native behavior of moving focus with arrow keys.
|
|
89
|
+
const onKeyDownProps = useKeyDownProps(onInvoke, ...keys);
|
|
90
|
+
// Ensure focus is placed on button after click
|
|
91
|
+
const changeSelectionWithFocus = React.useCallback(() => {
|
|
92
|
+
if (buttonKey != selectedKey) {
|
|
93
|
+
onChange && onChange(buttonKey);
|
|
94
|
+
updateSelectedButtonRef && componentRef && updateSelectedButtonRef(componentRef);
|
|
95
|
+
updateInvoked && updateInvoked(true);
|
|
96
|
+
}
|
|
97
|
+
}, [buttonKey, componentRef, onChange, selectedKey, updateInvoked, updateSelectedButtonRef]);
|
|
98
|
+
/* RadioButton changes selection when focus is moved between each RadioButton and on a click */
|
|
99
|
+
const pressable = useAsPressable({
|
|
100
|
+
...rest,
|
|
101
|
+
onPress: changeSelectionWithFocus,
|
|
102
|
+
onFocus: changeSelection,
|
|
103
|
+
});
|
|
104
|
+
// Used when creating accessibility properties in mergeSettings below
|
|
105
|
+
const onAccessibilityAction = React.useCallback((event) => {
|
|
106
|
+
switch (event.nativeEvent.actionName) {
|
|
107
|
+
case 'Select':
|
|
108
|
+
changeSelection();
|
|
109
|
+
break;
|
|
110
|
+
}
|
|
111
|
+
}, [changeSelection]);
|
|
112
|
+
const state = {
|
|
113
|
+
...pressable.state,
|
|
114
|
+
selected: selectedKey === userProps.buttonKey && !disabled,
|
|
115
|
+
disabled: disabled || false,
|
|
116
|
+
};
|
|
117
|
+
// Grab the styling information from the userProps, referencing the state as well as the props.
|
|
118
|
+
const styleProps = useStyling(userProps, (override) => state[override] || userProps[override]);
|
|
119
|
+
const slotProps = mergeSettings(styleProps, {
|
|
120
|
+
root: {
|
|
121
|
+
...rest,
|
|
122
|
+
ref: buttonRef,
|
|
123
|
+
...pressable.props,
|
|
124
|
+
accessibilityRole: 'radio',
|
|
125
|
+
accessibilityLabel: accessibilityLabel ?? ariaLabel ?? content,
|
|
126
|
+
accessibilityState: { disabled: state.disabled, selected: state.selected },
|
|
127
|
+
accessibilityActions: [{ name: 'Select', label: radioButtonSelectActionLabel }],
|
|
128
|
+
accessibilityPosInSet: accessibilityPosInSet ?? ariaPosInSet ?? buttonKeys.findIndex((x) => x == buttonKey) + 1,
|
|
129
|
+
accessibilitySetSize: accessibilitySetSize ?? ariaSetSize ?? buttonKeys.length,
|
|
130
|
+
focusable: !state.disabled,
|
|
131
|
+
onAccessibilityAction: onAccessibilityAction,
|
|
132
|
+
...onKeyDownProps,
|
|
133
|
+
},
|
|
134
|
+
content: { children: content },
|
|
135
|
+
});
|
|
136
|
+
return { slotProps };
|
|
137
|
+
},
|
|
138
|
+
render: (Slots, _renderData, ...children) => {
|
|
139
|
+
return (_jsxs(Slots.root, { children: [
|
|
140
|
+
_jsx(Slots.button, { children: _jsx(Slots.innerCircle, {}) }), _jsx(Slots.content, {}), children] }));
|
|
141
|
+
},
|
|
142
|
+
settings,
|
|
143
|
+
slots: {
|
|
144
|
+
root: View,
|
|
145
|
+
button: { slotType: View, filter: filterViewProps },
|
|
146
|
+
innerCircle: { slotType: View, filter: filterViewProps },
|
|
147
|
+
content: Text,
|
|
148
|
+
},
|
|
149
|
+
styles: {
|
|
150
|
+
root: [],
|
|
151
|
+
button: [borderTokens],
|
|
152
|
+
innerCircle: [backgroundColorTokens],
|
|
153
|
+
content: [foregroundColorTokens, textTokens, [{ source: 'textBorderColor', lookup: getPaletteFromTheme, target: 'borderColor' }]],
|
|
154
|
+
},
|
|
170
155
|
});
|
|
171
156
|
export default RadioButton;
|
|
172
|
-
//# sourceMappingURL=RadioButton.win32.js.map
|
|
157
|
+
//# sourceMappingURL=RadioButton.win32.js.map
|