@fluentui-react-native/radio-group 0.21.30 → 0.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +57 -0
- package/SPEC.md +1 -1
- package/lib/Radio/Radio.d.ts +7 -2
- package/lib/Radio/Radio.d.ts.map +1 -1
- package/lib/Radio/Radio.ios.d.ts +7 -2
- package/lib/Radio/Radio.ios.d.ts.map +1 -1
- package/lib/Radio/Radio.ios.js +52 -36
- package/lib/Radio/Radio.ios.js.map +1 -1
- package/lib/Radio/Radio.js +48 -36
- package/lib/Radio/Radio.js.map +1 -1
- package/lib/Radio/Radio.styling.d.ts +1 -1
- package/lib/Radio/Radio.styling.js +109 -88
- package/lib/Radio/Radio.types.d.ts +176 -170
- 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 +15 -8
- package/lib/Radio/__tests__/RadioExperimental.test.js.map +1 -1
- package/lib/Radio/useRadio.d.ts +1 -1
- package/lib/Radio/useRadio.d.ts.map +1 -1
- package/lib/Radio/useRadio.js +91 -70
- 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 +143 -121
- package/lib/Radio/useRadio.win32.js.map +1 -1
- package/lib/RadioGroup/RadioGroup.d.ts +7 -2
- package/lib/RadioGroup/RadioGroup.d.ts.map +1 -1
- package/lib/RadioGroup/RadioGroup.js +49 -38
- package/lib/RadioGroup/RadioGroup.js.map +1 -1
- package/lib/RadioGroup/RadioGroup.styling.d.ts +1 -1
- package/lib/RadioGroup/RadioGroup.styling.js +51 -42
- 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 +99 -50
- package/lib/RadioGroup/__tests__/RadioGroupExperimental.test.js.map +1 -1
- package/lib/RadioGroup/radioGroupContext.d.ts +1 -1
- package/lib/RadioGroup/radioGroupContext.js +19 -15
- package/lib/RadioGroup/radioGroupContext.js.map +1 -1
- package/lib/RadioGroup/useRadioGroup.d.ts +1 -1
- package/lib/RadioGroup/useRadioGroup.d.ts.map +1 -1
- package/lib/RadioGroup/useRadioGroup.js +93 -63
- package/lib/RadioGroup/useRadioGroup.js.map +1 -1
- package/lib/RadioGroup/useRadioGroupContextValue.d.ts +2 -3
- package/lib/RadioGroup/useRadioGroupContextValue.d.ts.map +1 -1
- package/lib/RadioGroup/useRadioGroupContextValue.js +2 -2
- package/lib/RadioGroup/useRadioGroupContextValue.js.map +1 -1
- package/lib/index.d.ts +25 -4
- 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 +8 -2
- package/lib/legacy/RadioButton.d.ts.map +1 -1
- package/lib/legacy/RadioButton.js +97 -85
- package/lib/legacy/RadioButton.js.map +1 -1
- package/lib/legacy/RadioButton.macos.d.ts +8 -2
- package/lib/legacy/RadioButton.macos.d.ts.map +1 -1
- package/lib/legacy/RadioButton.macos.js +49 -50
- 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 +46 -46
- package/lib/legacy/RadioButton.types.d.ts.map +1 -1
- package/lib/legacy/RadioButton.types.js +1 -1
- package/lib/legacy/RadioButton.win32.d.ts +8 -2
- package/lib/legacy/RadioButton.win32.d.ts.map +1 -1
- package/lib/legacy/RadioButton.win32.js +152 -137
- package/lib/legacy/RadioButton.win32.js.map +1 -1
- package/lib/legacy/RadioGroup.d.ts +9 -4
- package/lib/legacy/RadioGroup.d.ts.map +1 -1
- package/lib/legacy/RadioGroup.js +109 -87
- 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 +78 -79
- 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 +9 -5
- package/lib/legacy/__tests__/RadioButton.test.js.map +1 -1
- package/lib/legacy/__tests__/RadioButtonGroup.test.d.ts +1 -1
- package/lib/legacy/__tests__/RadioButtonGroup.test.js +35 -13
- package/lib/legacy/__tests__/RadioButtonGroup.test.js.map +1 -1
- package/lib-commonjs/Radio/Radio.d.ts +7 -2
- package/lib-commonjs/Radio/Radio.d.ts.map +1 -1
- package/lib-commonjs/Radio/Radio.ios.d.ts +7 -2
- package/lib-commonjs/Radio/Radio.ios.d.ts.map +1 -1
- package/lib-commonjs/Radio/Radio.ios.js +65 -44
- package/lib-commonjs/Radio/Radio.ios.js.map +1 -1
- package/lib-commonjs/Radio/Radio.js +60 -43
- package/lib-commonjs/Radio/Radio.js.map +1 -1
- package/lib-commonjs/Radio/Radio.styling.d.ts +1 -1
- package/lib-commonjs/Radio/Radio.styling.js +115 -94
- package/lib-commonjs/Radio/Radio.styling.js.map +1 -1
- package/lib-commonjs/Radio/Radio.types.d.ts +176 -170
- 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 +69 -35
- package/lib-commonjs/Radio/__tests__/RadioExperimental.test.js.map +1 -1
- 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 +147 -99
- 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 +200 -151
- package/lib-commonjs/Radio/useRadio.win32.js.map +1 -1
- package/lib-commonjs/RadioGroup/RadioGroup.d.ts +7 -2
- package/lib-commonjs/RadioGroup/RadioGroup.d.ts.map +1 -1
- package/lib-commonjs/RadioGroup/RadioGroup.js +65 -48
- package/lib-commonjs/RadioGroup/RadioGroup.js.map +1 -1
- package/lib-commonjs/RadioGroup/RadioGroup.styling.d.ts +1 -1
- package/lib-commonjs/RadioGroup/RadioGroup.styling.js +57 -48
- package/lib-commonjs/RadioGroup/RadioGroup.styling.js.map +1 -1
- 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 +10 -5
- package/lib-commonjs/RadioGroup/RadioGroupTokens.android.js.map +1 -1
- 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 +10 -5
- package/lib-commonjs/RadioGroup/RadioGroupTokens.ios.js.map +1 -1
- 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 +157 -78
- package/lib-commonjs/RadioGroup/__tests__/RadioGroupExperimental.test.js.map +1 -1
- package/lib-commonjs/RadioGroup/radioGroupContext.d.ts +1 -1
- package/lib-commonjs/RadioGroup/radioGroupContext.js +72 -41
- package/lib-commonjs/RadioGroup/radioGroupContext.js.map +1 -1
- package/lib-commonjs/RadioGroup/useRadioGroup.d.ts +1 -1
- package/lib-commonjs/RadioGroup/useRadioGroup.d.ts.map +1 -1
- package/lib-commonjs/RadioGroup/useRadioGroup.js +148 -91
- package/lib-commonjs/RadioGroup/useRadioGroup.js.map +1 -1
- package/lib-commonjs/RadioGroup/useRadioGroupContextValue.d.ts +2 -3
- package/lib-commonjs/RadioGroup/useRadioGroupContextValue.d.ts.map +1 -1
- package/lib-commonjs/RadioGroup/useRadioGroupContextValue.js +4 -4
- package/lib-commonjs/RadioGroup/useRadioGroupContextValue.js.map +1 -1
- package/lib-commonjs/index.d.ts +25 -4
- package/lib-commonjs/index.js +128 -32
- package/lib-commonjs/index.js.map +1 -1
- package/lib-commonjs/legacy/MacOSRadioButtonNativeComponent.d.ts +6 -6
- package/lib-commonjs/legacy/MacOSRadioButtonNativeComponent.js +9 -7
- package/lib-commonjs/legacy/MacOSRadioButtonNativeComponent.js.map +1 -1
- package/lib-commonjs/legacy/RadioButton.d.ts +8 -2
- package/lib-commonjs/legacy/RadioButton.d.ts.map +1 -1
- package/lib-commonjs/legacy/RadioButton.js +167 -120
- package/lib-commonjs/legacy/RadioButton.js.map +1 -1
- package/lib-commonjs/legacy/RadioButton.macos.d.ts +8 -2
- package/lib-commonjs/legacy/RadioButton.macos.d.ts.map +1 -1
- package/lib-commonjs/legacy/RadioButton.macos.js +112 -84
- 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 +46 -46
- package/lib-commonjs/legacy/RadioButton.types.d.ts.map +1 -1
- package/lib-commonjs/legacy/RadioButton.types.js +3 -3
- package/lib-commonjs/legacy/RadioButton.win32.d.ts +8 -2
- package/lib-commonjs/legacy/RadioButton.win32.d.ts.map +1 -1
- package/lib-commonjs/legacy/RadioButton.win32.js +222 -172
- package/lib-commonjs/legacy/RadioButton.win32.js.map +1 -1
- package/lib-commonjs/legacy/RadioGroup.d.ts +9 -4
- package/lib-commonjs/legacy/RadioGroup.d.ts.map +1 -1
- package/lib-commonjs/legacy/RadioGroup.js +173 -122
- 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 +78 -79
- 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 +63 -32
- package/lib-commonjs/legacy/__tests__/RadioButton.test.js.map +1 -1
- package/lib-commonjs/legacy/__tests__/RadioButtonGroup.test.d.ts +1 -1
- package/lib-commonjs/legacy/__tests__/RadioButtonGroup.test.js +100 -41
- package/lib-commonjs/legacy/__tests__/RadioButtonGroup.test.js.map +1 -1
- package/package.json +72 -71
- package/src/Radio/Radio.ios.tsx +2 -3
- package/src/Radio/Radio.tsx +2 -3
- package/src/Radio/__tests__/RadioExperimental.test.tsx +11 -5
- package/src/Radio/__tests__/__snapshots__/RadioExperimental.test.tsx.snap +2 -2
- package/src/Radio/useRadio.ts +2 -2
- package/src/Radio/useRadio.win32.ts +2 -2
- package/src/RadioGroup/RadioGroup.tsx +2 -3
- package/src/RadioGroup/__tests__/RadioGroupExperimental.test.tsx +53 -47
- package/src/RadioGroup/__tests__/__snapshots__/RadioGroupExperimental.test.tsx.snap +12 -12
- package/src/legacy/RadioButton.macos.tsx +1 -3
- package/src/legacy/RadioButton.tsx +3 -5
- package/src/legacy/RadioButton.types.ts +3 -3
- package/src/legacy/RadioButton.win32.tsx +3 -5
- package/src/legacy/RadioGroup.tsx +1 -3
- package/src/legacy/__tests__/RadioButton.test.tsx +6 -3
- package/src/legacy/__tests__/RadioButtonGroup.test.tsx +23 -19
- package/src/legacy/__tests__/__snapshots__/RadioButton.test.tsx.snap +1 -1
- 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":"
|
|
1
|
+
{"version":3,"file":"Radio.js","sourceRoot":"","sources":["../../src/Radio/Radio.tsx"],"names":[],"mappings":";;;;AAAA,6DAA6D;AAC7D,+CAAyD;AAGzD,gEAAuE;AAEvE,sDAA6D;AAE7D,mDAAkD;AAElD,+CAA0C;AAC1C,yCAAsC;AAEtC;;;;;;;GAOG;AACI,MAAM,WAAW,GAAG,CAAC,KAAa,EAAE,KAAqB,EAAE,SAAqB,EAAW,EAAE,CAAC;IACnG,OAAO,CACL,KAAK,CAAC,KAAK,CAAC;QACZ,SAAS,CAAC,KAAK,CAAC;QAChB,CAAC,CAAC,CAAC,uBAAQ,CAAC,EAAE,KAAM,OAAe,IAAI,uBAAQ,CAAC,EAAE,KAAK,SAAS,CAAC;YAC/D,KAAK,KAAK,oBAAoB;YAC9B,SAAS,CAAC,eAAe,CAAC,KAAK,OAAO,CAAC,CAC1C,CAAC;AAAA,CACH,CAAC;AARW,QAAA,WAAW,GAAX,WAAW,CAQtB;AAEW,QAAA,KAAK,GAAG,IAAA,mBAAO,EAAY;IACtC,WAAW,EAAE,uBAAS;IACtB,GAAG,+BAAe;IAClB,KAAK,EAAE;QACL,IAAI,EAAE,wBAAS;QACf,MAAM,EAAE,wBAAS;QACjB,WAAW,EAAE,mBAAI;QACjB,YAAY,EAAE,mBAAI;QAClB,KAAK,EAAE,aAAI;QACX,OAAO,EAAE,aAAI;KACd;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AAC,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
|
-
|
|
2
|
-
Object.defineProperty(exports,
|
|
1
|
+
'use strict';
|
|
2
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
3
3
|
exports.stylingSettings = exports.radioStates = void 0;
|
|
4
|
-
const framework_1 = require(
|
|
5
|
-
const tokens_1 = require(
|
|
6
|
-
const Radio_types_1 = require(
|
|
7
|
-
const RadioTokens_1 = require(
|
|
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
|
-
|
|
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
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
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
|
-
|
|
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,
|
|
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,QAAA,WAAW;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,EAA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mB,EAAE,EAAE,CAAC,CAAC;YACxB,OAAO,EAAE,MAAM,CAAC,cAAc;YAC9B,KAAK,EAAE;gBACL,SAAS,EAAE,MAAM,CAAC,gBAAgB;gBAClC,YAAY,EAAE,MAAM,CAAC,mBAAmB;gBACxC,gBAAgB,EAAE,CAAC;gBACnB,KAAK,EAAE,MAAM,CAAC,KAAK;aACpB;SACF,CAAC,EACF,CAAC,kBAAkB,EAAE,qBAAqB,EAAE,OAAO,EAAE,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 {
|
|
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 =
|
|
14
|
+
export declare const radioName = 'Radio';
|
|
9
15
|
export interface RadioTokens extends FontTokens, IColorTokens, IForegroundColorTokens, IBackgroundColorTokens, IBorderTokens {
|
|
10
|
-
|
|
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
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
170
|
-
|
|
175
|
+
props: RadioProps & React.ComponentPropsWithRef<any>;
|
|
176
|
+
state: PressableState;
|
|
171
177
|
}
|
|
172
178
|
export interface RadioSlotProps {
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
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
|
-
|
|
183
|
-
|
|
184
|
-
|
|
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
|
-
|
|
2
|
-
Object.defineProperty(exports,
|
|
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
|