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