@fluentui-react-native/tester 0.89.0 → 0.90.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (189) hide show
  1. package/CHANGELOG.json +64 -1
  2. package/CHANGELOG.md +29 -2
  3. package/lib/FluentTester.js +6 -6
  4. package/lib/FluentTester.js.map +1 -1
  5. package/lib/TestComponents/Avatar/AvatarTest.d.ts.map +1 -1
  6. package/lib/TestComponents/Avatar/AvatarTest.js +2 -1
  7. package/lib/TestComponents/Avatar/AvatarTest.js.map +1 -1
  8. package/lib/TestComponents/Avatar/BasicAvatar.js +3 -3
  9. package/lib/TestComponents/Avatar/BasicAvatar.js.map +1 -1
  10. package/lib/TestComponents/Avatar/CustomizedAvatar.d.ts.map +1 -1
  11. package/lib/TestComponents/Avatar/CustomizedAvatar.js +14 -8
  12. package/lib/TestComponents/Avatar/CustomizedAvatar.js.map +1 -1
  13. package/lib/TestComponents/Badge/BadgeTest.d.ts.map +1 -1
  14. package/lib/TestComponents/Badge/BadgeTest.js +2 -1
  15. package/lib/TestComponents/Badge/BadgeTest.js.map +1 -1
  16. package/lib/TestComponents/Badge/BasicBadgeTest.d.ts.map +1 -1
  17. package/lib/TestComponents/Badge/BasicBadgeTest.js +1 -2
  18. package/lib/TestComponents/Badge/BasicBadgeTest.js.map +1 -1
  19. package/lib/TestComponents/Button/ButtonIconTestSection.js +2 -2
  20. package/lib/TestComponents/Button/ButtonIconTestSection.js.map +1 -1
  21. package/lib/TestComponents/Button/ButtonShapeTestSection.js +2 -2
  22. package/lib/TestComponents/Button/ButtonShapeTestSection.js.map +1 -1
  23. package/lib/TestComponents/Button/ButtonSizeTestSection.js +2 -2
  24. package/lib/TestComponents/Button/ButtonSizeTestSection.js.map +1 -1
  25. package/lib/TestComponents/Button/ButtonTest.d.ts.map +1 -1
  26. package/lib/TestComponents/Button/ButtonTest.js +2 -1
  27. package/lib/TestComponents/Button/ButtonTest.js.map +1 -1
  28. package/lib/TestComponents/Button/ButtonVariantTestSection.js +2 -2
  29. package/lib/TestComponents/Button/ButtonVariantTestSection.js.map +1 -1
  30. package/lib/TestComponents/Button/ToggleButtonTestSection.d.ts.map +1 -1
  31. package/lib/TestComponents/Button/ToggleButtonTestSection.js +6 -7
  32. package/lib/TestComponents/Button/ToggleButtonTestSection.js.map +1 -1
  33. package/lib/TestComponents/Callout/CalloutTest.js +1 -1
  34. package/lib/TestComponents/Callout/CalloutTest.js.map +1 -1
  35. package/lib/TestComponents/Checkbox/CheckboxTest.d.ts.map +1 -1
  36. package/lib/TestComponents/Checkbox/CheckboxTest.js +10 -6
  37. package/lib/TestComponents/Checkbox/CheckboxTest.js.map +1 -1
  38. package/lib/TestComponents/CheckboxExperimental/CheckboxTest.d.ts.map +1 -1
  39. package/lib/TestComponents/CheckboxExperimental/CheckboxTest.js +8 -5
  40. package/lib/TestComponents/CheckboxExperimental/CheckboxTest.js.map +1 -1
  41. package/lib/TestComponents/Common/styles.d.ts +10 -0
  42. package/lib/TestComponents/Common/styles.d.ts.map +1 -1
  43. package/lib/TestComponents/Common/styles.js +3 -0
  44. package/lib/TestComponents/Common/styles.js.map +1 -1
  45. package/lib/TestComponents/Menu/MenuTest.d.ts.map +1 -1
  46. package/lib/TestComponents/Menu/MenuTest.js +11 -5
  47. package/lib/TestComponents/Menu/MenuTest.js.map +1 -1
  48. package/lib/TestComponents/Notification/NotificationTest.d.ts.map +1 -1
  49. package/lib/TestComponents/Notification/NotificationTest.js +4 -3
  50. package/lib/TestComponents/Notification/NotificationTest.js.map +1 -1
  51. package/lib/TestComponents/Persona/CustomizeUsage.d.ts.map +1 -1
  52. package/lib/TestComponents/Persona/CustomizeUsage.js +8 -5
  53. package/lib/TestComponents/Persona/CustomizeUsage.js.map +1 -1
  54. package/lib/TestComponents/PersonaCoin/CustomizeUsage.d.ts.map +1 -1
  55. package/lib/TestComponents/PersonaCoin/CustomizeUsage.js +11 -8
  56. package/lib/TestComponents/PersonaCoin/CustomizeUsage.js.map +1 -1
  57. package/lib/TestComponents/PersonaCoin/CustomizeUsage.mobile.d.ts.map +1 -1
  58. package/lib/TestComponents/PersonaCoin/CustomizeUsage.mobile.js +3 -2
  59. package/lib/TestComponents/PersonaCoin/CustomizeUsage.mobile.js.map +1 -1
  60. package/lib/TestComponents/RadioGroupExperimental/RadioGroupExperimentalTest.d.ts.map +1 -1
  61. package/lib/TestComponents/RadioGroupExperimental/RadioGroupExperimentalTest.js +2 -1
  62. package/lib/TestComponents/RadioGroupExperimental/RadioGroupExperimentalTest.js.map +1 -1
  63. package/lib/TestComponents/Shadow/ShadowTest.d.ts.map +1 -1
  64. package/lib/TestComponents/Shadow/ShadowTest.js +2 -1
  65. package/lib/TestComponents/Shadow/ShadowTest.js.map +1 -1
  66. package/lib/TestComponents/Switch/Switch.d.ts.map +1 -1
  67. package/lib/TestComponents/Switch/Switch.js +2 -1
  68. package/lib/TestComponents/Switch/Switch.js.map +1 -1
  69. package/lib/TestComponents/Test.d.ts +1 -0
  70. package/lib/TestComponents/Test.d.ts.map +1 -1
  71. package/lib/TestComponents/Test.js +17 -10
  72. package/lib/TestComponents/Test.js.map +1 -1
  73. package/lib/TestComponents/Text/TextTest.d.ts.map +1 -1
  74. package/lib/TestComponents/Text/TextTest.js +2 -1
  75. package/lib/TestComponents/Text/TextTest.js.map +1 -1
  76. package/lib/TestComponents/Theme/ThemeTest.d.ts.map +1 -1
  77. package/lib/TestComponents/Theme/ThemeTest.js +11 -12
  78. package/lib/TestComponents/Theme/ThemeTest.js.map +1 -1
  79. package/lib/TestComponents/Tokens/TokenTest.d.ts.map +1 -1
  80. package/lib/TestComponents/Tokens/TokenTest.js +8 -10
  81. package/lib/TestComponents/Tokens/TokenTest.js.map +1 -1
  82. package/lib-commonjs/FluentTester.js +5 -5
  83. package/lib-commonjs/FluentTester.js.map +1 -1
  84. package/lib-commonjs/TestComponents/Avatar/AvatarTest.d.ts.map +1 -1
  85. package/lib-commonjs/TestComponents/Avatar/AvatarTest.js +2 -1
  86. package/lib-commonjs/TestComponents/Avatar/AvatarTest.js.map +1 -1
  87. package/lib-commonjs/TestComponents/Avatar/BasicAvatar.js +2 -2
  88. package/lib-commonjs/TestComponents/Avatar/BasicAvatar.js.map +1 -1
  89. package/lib-commonjs/TestComponents/Avatar/CustomizedAvatar.d.ts.map +1 -1
  90. package/lib-commonjs/TestComponents/Avatar/CustomizedAvatar.js +13 -7
  91. package/lib-commonjs/TestComponents/Avatar/CustomizedAvatar.js.map +1 -1
  92. package/lib-commonjs/TestComponents/Badge/BadgeTest.d.ts.map +1 -1
  93. package/lib-commonjs/TestComponents/Badge/BadgeTest.js +2 -1
  94. package/lib-commonjs/TestComponents/Badge/BadgeTest.js.map +1 -1
  95. package/lib-commonjs/TestComponents/Badge/BasicBadgeTest.d.ts.map +1 -1
  96. package/lib-commonjs/TestComponents/Badge/BasicBadgeTest.js +1 -2
  97. package/lib-commonjs/TestComponents/Badge/BasicBadgeTest.js.map +1 -1
  98. package/lib-commonjs/TestComponents/Button/ButtonIconTestSection.js +1 -1
  99. package/lib-commonjs/TestComponents/Button/ButtonIconTestSection.js.map +1 -1
  100. package/lib-commonjs/TestComponents/Button/ButtonShapeTestSection.js +1 -1
  101. package/lib-commonjs/TestComponents/Button/ButtonShapeTestSection.js.map +1 -1
  102. package/lib-commonjs/TestComponents/Button/ButtonSizeTestSection.js +1 -1
  103. package/lib-commonjs/TestComponents/Button/ButtonSizeTestSection.js.map +1 -1
  104. package/lib-commonjs/TestComponents/Button/ButtonTest.d.ts.map +1 -1
  105. package/lib-commonjs/TestComponents/Button/ButtonTest.js +2 -1
  106. package/lib-commonjs/TestComponents/Button/ButtonTest.js.map +1 -1
  107. package/lib-commonjs/TestComponents/Button/ButtonVariantTestSection.js +1 -1
  108. package/lib-commonjs/TestComponents/Button/ButtonVariantTestSection.js.map +1 -1
  109. package/lib-commonjs/TestComponents/Button/ToggleButtonTestSection.d.ts.map +1 -1
  110. package/lib-commonjs/TestComponents/Button/ToggleButtonTestSection.js +4 -6
  111. package/lib-commonjs/TestComponents/Button/ToggleButtonTestSection.js.map +1 -1
  112. package/lib-commonjs/TestComponents/Callout/CalloutTest.js +1 -1
  113. package/lib-commonjs/TestComponents/Callout/CalloutTest.js.map +1 -1
  114. package/lib-commonjs/TestComponents/Checkbox/CheckboxTest.d.ts.map +1 -1
  115. package/lib-commonjs/TestComponents/Checkbox/CheckboxTest.js +9 -6
  116. package/lib-commonjs/TestComponents/Checkbox/CheckboxTest.js.map +1 -1
  117. package/lib-commonjs/TestComponents/CheckboxExperimental/CheckboxTest.d.ts.map +1 -1
  118. package/lib-commonjs/TestComponents/CheckboxExperimental/CheckboxTest.js +7 -5
  119. package/lib-commonjs/TestComponents/CheckboxExperimental/CheckboxTest.js.map +1 -1
  120. package/lib-commonjs/TestComponents/Common/styles.d.ts +10 -0
  121. package/lib-commonjs/TestComponents/Common/styles.d.ts.map +1 -1
  122. package/lib-commonjs/TestComponents/Common/styles.js +4 -1
  123. package/lib-commonjs/TestComponents/Common/styles.js.map +1 -1
  124. package/lib-commonjs/TestComponents/Menu/MenuTest.d.ts.map +1 -1
  125. package/lib-commonjs/TestComponents/Menu/MenuTest.js +10 -5
  126. package/lib-commonjs/TestComponents/Menu/MenuTest.js.map +1 -1
  127. package/lib-commonjs/TestComponents/Notification/NotificationTest.d.ts.map +1 -1
  128. package/lib-commonjs/TestComponents/Notification/NotificationTest.js +4 -3
  129. package/lib-commonjs/TestComponents/Notification/NotificationTest.js.map +1 -1
  130. package/lib-commonjs/TestComponents/Persona/CustomizeUsage.d.ts.map +1 -1
  131. package/lib-commonjs/TestComponents/Persona/CustomizeUsage.js +7 -5
  132. package/lib-commonjs/TestComponents/Persona/CustomizeUsage.js.map +1 -1
  133. package/lib-commonjs/TestComponents/PersonaCoin/CustomizeUsage.d.ts.map +1 -1
  134. package/lib-commonjs/TestComponents/PersonaCoin/CustomizeUsage.js +10 -8
  135. package/lib-commonjs/TestComponents/PersonaCoin/CustomizeUsage.js.map +1 -1
  136. package/lib-commonjs/TestComponents/PersonaCoin/CustomizeUsage.mobile.d.ts.map +1 -1
  137. package/lib-commonjs/TestComponents/PersonaCoin/CustomizeUsage.mobile.js +2 -1
  138. package/lib-commonjs/TestComponents/PersonaCoin/CustomizeUsage.mobile.js.map +1 -1
  139. package/lib-commonjs/TestComponents/RadioGroupExperimental/RadioGroupExperimentalTest.d.ts.map +1 -1
  140. package/lib-commonjs/TestComponents/RadioGroupExperimental/RadioGroupExperimentalTest.js +2 -1
  141. package/lib-commonjs/TestComponents/RadioGroupExperimental/RadioGroupExperimentalTest.js.map +1 -1
  142. package/lib-commonjs/TestComponents/Shadow/ShadowTest.d.ts.map +1 -1
  143. package/lib-commonjs/TestComponents/Shadow/ShadowTest.js +2 -1
  144. package/lib-commonjs/TestComponents/Shadow/ShadowTest.js.map +1 -1
  145. package/lib-commonjs/TestComponents/Switch/Switch.d.ts.map +1 -1
  146. package/lib-commonjs/TestComponents/Switch/Switch.js +2 -1
  147. package/lib-commonjs/TestComponents/Switch/Switch.js.map +1 -1
  148. package/lib-commonjs/TestComponents/Test.d.ts +1 -0
  149. package/lib-commonjs/TestComponents/Test.d.ts.map +1 -1
  150. package/lib-commonjs/TestComponents/Test.js +16 -9
  151. package/lib-commonjs/TestComponents/Test.js.map +1 -1
  152. package/lib-commonjs/TestComponents/Text/TextTest.d.ts.map +1 -1
  153. package/lib-commonjs/TestComponents/Text/TextTest.js +2 -1
  154. package/lib-commonjs/TestComponents/Text/TextTest.js.map +1 -1
  155. package/lib-commonjs/TestComponents/Theme/ThemeTest.d.ts.map +1 -1
  156. package/lib-commonjs/TestComponents/Theme/ThemeTest.js +10 -12
  157. package/lib-commonjs/TestComponents/Theme/ThemeTest.js.map +1 -1
  158. package/lib-commonjs/TestComponents/Tokens/TokenTest.d.ts.map +1 -1
  159. package/lib-commonjs/TestComponents/Tokens/TokenTest.js +8 -10
  160. package/lib-commonjs/TestComponents/Tokens/TokenTest.js.map +1 -1
  161. package/package.json +4 -4
  162. package/src/FluentTester.tsx +6 -6
  163. package/src/TestComponents/Avatar/AvatarTest.tsx +3 -1
  164. package/src/TestComponents/Avatar/BasicAvatar.tsx +2 -2
  165. package/src/TestComponents/Avatar/CustomizedAvatar.tsx +15 -8
  166. package/src/TestComponents/Badge/BadgeTest.tsx +3 -1
  167. package/src/TestComponents/Badge/BasicBadgeTest.tsx +2 -3
  168. package/src/TestComponents/Button/ButtonIconTestSection.tsx +2 -2
  169. package/src/TestComponents/Button/ButtonShapeTestSection.tsx +2 -2
  170. package/src/TestComponents/Button/ButtonSizeTestSection.tsx +2 -2
  171. package/src/TestComponents/Button/ButtonTest.tsx +3 -1
  172. package/src/TestComponents/Button/ButtonVariantTestSection.tsx +2 -2
  173. package/src/TestComponents/Button/ToggleButtonTestSection.tsx +6 -5
  174. package/src/TestComponents/Callout/CalloutTest.tsx +1 -1
  175. package/src/TestComponents/Checkbox/CheckboxTest.tsx +14 -8
  176. package/src/TestComponents/CheckboxExperimental/CheckboxTest.tsx +10 -7
  177. package/src/TestComponents/Common/styles.ts +5 -0
  178. package/src/TestComponents/Menu/MenuTest.tsx +13 -5
  179. package/src/TestComponents/Notification/NotificationTest.tsx +5 -3
  180. package/src/TestComponents/Persona/CustomizeUsage.tsx +10 -7
  181. package/src/TestComponents/PersonaCoin/CustomizeUsage.mobile.tsx +4 -9
  182. package/src/TestComponents/PersonaCoin/CustomizeUsage.tsx +13 -10
  183. package/src/TestComponents/RadioGroupExperimental/RadioGroupExperimentalTest.tsx +9 -1
  184. package/src/TestComponents/Shadow/ShadowTest.tsx +3 -1
  185. package/src/TestComponents/Switch/Switch.tsx +3 -1
  186. package/src/TestComponents/Test.tsx +21 -12
  187. package/src/TestComponents/Text/TextTest.tsx +3 -1
  188. package/src/TestComponents/Theme/ThemeTest.tsx +15 -11
  189. package/src/TestComponents/Tokens/TokenTest.tsx +8 -9
@@ -1,6 +1,6 @@
1
1
  import React, { useState, useMemo } from 'react';
2
2
  import { Avatar, AvatarColors, AvatarSize, getJavaHashCode } from '@fluentui-react-native/avatar';
3
- import { View, Text, TextInput, Platform } from 'react-native';
3
+ import { View, Text, TextInput, Platform, StyleSheet } from 'react-native';
4
4
  import { steveBallmerPhotoUrl } from './../PersonaCoin/styles';
5
5
  import { commonTestStyles as commonStyles } from '../Common/styles';
6
6
  import { FontWeight } from '@fluentui-react-native/theme-types';
@@ -8,6 +8,13 @@ import { SvgIconProps } from '@fluentui-react-native/icon';
8
8
  import TestSvg from '../../FluentTester/test-data/test.svg';
9
9
  import { ToggleButton } from '@fluentui/react-native';
10
10
 
11
+ const styles = StyleSheet.create({
12
+ avatarTestCaseContainer: { marginLeft: 20 },
13
+ avatarTokenOptions: { flexDirection: 'row' },
14
+ fontTokenOptions: { paddingHorizontal: 20 },
15
+ tokenHeader: { fontWeight: 'bold' },
16
+ });
17
+
11
18
  export const CustomizeUsage: React.FunctionComponent = () => {
12
19
  const [showImage, setShowImage] = useState(true);
13
20
  const [showInitials, setShowInitials] = useState(true);
@@ -80,7 +87,7 @@ export const CustomizeUsage: React.FunctionComponent = () => {
80
87
  <ToggleButton onClick={() => setShowRing(!showRing)} checked={showRing} style={commonStyles.vmargin}>
81
88
  {showRing ? 'Hide' : 'Show'} ring
82
89
  </ToggleButton>
83
- <View style={{ flexDirection: 'row' }}>
90
+ <View style={styles.avatarTokenOptions}>
84
91
  <View>
85
92
  <TextInput
86
93
  accessibilityLabel="Name for generating initials"
@@ -100,7 +107,7 @@ export const CustomizeUsage: React.FunctionComponent = () => {
100
107
  setInitials(e.nativeEvent.text);
101
108
  }}
102
109
  />
103
- <Text style={{ fontWeight: 'bold' }}>Avatar tokens</Text>
110
+ <Text style={styles.tokenHeader}>Avatar tokens</Text>
104
111
  <TextInput
105
112
  accessibilityLabel="Background color"
106
113
  style={commonStyles.textBox}
@@ -139,7 +146,7 @@ export const CustomizeUsage: React.FunctionComponent = () => {
139
146
  setIconColor(e.nativeEvent.text);
140
147
  }}
141
148
  />
142
- <Text style={{ fontWeight: 'bold' }}>Ring tokens</Text>
149
+ <Text style={styles.tokenHeader}>Ring tokens</Text>
143
150
  <TextInput
144
151
  accessibilityLabel="Ring background color"
145
152
  style={commonStyles.textBox}
@@ -177,8 +184,8 @@ export const CustomizeUsage: React.FunctionComponent = () => {
177
184
  }}
178
185
  />
179
186
  </View>
180
- <View style={{ paddingHorizontal: 20 }}>
181
- <Text style={{ fontWeight: 'bold' }}>Font tokens</Text>
187
+ <View style={styles.fontTokenOptions}>
188
+ <Text style={styles.tokenHeader}>Font tokens</Text>
182
189
  <TextInput
183
190
  accessibilityLabel="Initials text color"
184
191
  style={commonStyles.textBox}
@@ -232,7 +239,7 @@ export const CustomizeUsage: React.FunctionComponent = () => {
232
239
  transparentRing={!showRing}
233
240
  />
234
241
  </View>
235
- <View style={{ marginLeft: 20 }}>
242
+ <View style={styles.avatarTestCaseContainer}>
236
243
  <Text>Avatar customized with props</Text>
237
244
  <Avatar
238
245
  active="active"
@@ -251,7 +258,7 @@ export const CustomizeUsage: React.FunctionComponent = () => {
251
258
  />
252
259
  </View>
253
260
  {useJavaHashCode && (
254
- <View style={{ marginLeft: 20 }}>
261
+ <View style={styles.avatarTestCaseContainer}>
255
262
  <Text>Avatar with hashed color</Text>
256
263
  <Avatar
257
264
  active="active"
@@ -38,5 +38,7 @@ export const BadgeTest: React.FunctionComponent = () => {
38
38
  const description =
39
39
  'A badge is an additional visual descriptor for UI elements. It can be used to denote numerical value, status or general information.\n Included in this spec are base properties for usage in all badge scenarios. Reference properties for other badge types i.e. size, layout, and style variations';
40
40
 
41
- return <Test name="Badge Test" description={description} sections={badgeSections} status={status}></Test>;
41
+ const spec = 'https://github.com/microsoft/fluentui-react-native/blob/main/packages/experimental/Badge/SPEC.md';
42
+
43
+ return <Test name="Badge Test" description={description} spec={spec} sections={badgeSections} status={status} />;
42
44
  };
@@ -67,7 +67,6 @@ export const BasicBadge: React.FunctionComponent = () => {
67
67
  size,
68
68
  shape,
69
69
  };
70
- const badgeContent = size === 'tiny' || size === 'extraSmall' ? '' : 'Basic badge';
71
70
 
72
71
  return (
73
72
  <View>
@@ -88,10 +87,10 @@ export const BasicBadge: React.FunctionComponent = () => {
88
87
  <Text>Parent component for the Badge</Text>
89
88
  {svgIconsEnabled && showIcon ? (
90
89
  <Badge {...badgeConfig} icon={{ svgSource: svgProps }} iconPosition={iconPosition}>
91
- {badgeContent}
90
+ Basic badge
92
91
  </Badge>
93
92
  ) : (
94
- <Badge {...badgeConfig}>{badgeContent}</Badge>
93
+ <Badge {...badgeConfig}>Basic badge</Badge>
95
94
  )}
96
95
  </View>
97
96
 
@@ -1,7 +1,7 @@
1
1
  import { ButtonV1 as Button } from '@fluentui/react-native';
2
2
  import * as React from 'react';
3
3
  import { Platform, View, StyleSheet } from 'react-native';
4
- import { commonTestStyles, stackStyle } from '../Common/styles';
4
+ import { commonTestStyles, testContentRootViewStyle } from '../Common/styles';
5
5
  import { SvgIconProps } from '@fluentui-react-native/icon';
6
6
  import TestSvg from './test.svg';
7
7
  import { SvgXml } from 'react-native-svg';
@@ -32,7 +32,7 @@ export const ButtonIconTest: React.FunctionComponent = () => {
32
32
  </svg>`;
33
33
 
34
34
  return (
35
- <View style={[stackStyle, commonTestStyles.view]}>
35
+ <View style={testContentRootViewStyle}>
36
36
  <Button icon={{ fontSource: { ...fontBuiltInProps, fontSize: 32 }, color: '#060' }} style={commonTestStyles.vmargin}>
37
37
  Font icon
38
38
  </Button>
@@ -1,11 +1,11 @@
1
1
  import { ButtonV1 as Button, CompoundButton } from '@fluentui/react-native';
2
2
  import * as React from 'react';
3
3
  import { View } from 'react-native';
4
- import { commonTestStyles, stackStyle } from '../Common/styles';
4
+ import { commonTestStyles, testContentRootViewStyle } from '../Common/styles';
5
5
 
6
6
  export const ButtonShapeTest: React.FunctionComponent = () => {
7
7
  return (
8
- <View style={[stackStyle, commonTestStyles.view]}>
8
+ <View style={testContentRootViewStyle}>
9
9
  <Button shape="rounded" style={commonTestStyles.vmargin}>
10
10
  Default Rounded Button
11
11
  </Button>
@@ -2,7 +2,7 @@ import { ButtonV1 as Button, CompoundButton } from '@fluentui/react-native';
2
2
  import { SvgIconProps } from '@fluentui-react-native/icon';
3
3
  import * as React from 'react';
4
4
  import { Platform, View } from 'react-native';
5
- import { commonTestStyles, stackStyle } from '../Common/styles';
5
+ import { commonTestStyles, testContentRootViewStyle } from '../Common/styles';
6
6
  import TestSvg from './test.svg';
7
7
 
8
8
  export const ButtonSizeTest: React.FunctionComponent = () => {
@@ -12,7 +12,7 @@ export const ButtonSizeTest: React.FunctionComponent = () => {
12
12
  };
13
13
  const svgIconsEnabled = ['ios', 'macos', 'win32', 'android'].includes(Platform.OS as string);
14
14
  return (
15
- <View style={[stackStyle, commonTestStyles.view]}>
15
+ <View style={testContentRootViewStyle}>
16
16
  {svgIconsEnabled && (
17
17
  <>
18
18
  <Button
@@ -68,5 +68,7 @@ export const ButtonTest: React.FunctionComponent = () => {
68
68
  const description =
69
69
  'Buttons are best used to enable a user to commit a change or complete steps in a task. They are typically found inside forms, dialogs, panels or pages. An example of their usage is confirming the deletion of a file in a confirmation dialog.\n\nWhen considering their place in a layout, contemplate the order in which a user will flow through the UI. As an example, in a form, the individual will need to read and interact with the form fields before submiting the form. Therefore, as a general rule, the button should be placed at the bottom of the UI container (a dialog, panel, or page) which holds the related UI elements.\n\nWhile buttons can technically be used to navigate a user to another part of the experience, this is not recommended unless that navigation is part of an action or their flow.';
70
70
 
71
- return <Test name="Button Test" description={description} sections={buttonSections} status={status}></Test>;
71
+ const spec = 'https://github.com/microsoft/fluentui-react-native/blob/main/packages/components/Button/SPEC.md';
72
+
73
+ return <Test name="Button Test" description={description} spec={spec} sections={buttonSections} status={status} />;
72
74
  };
@@ -1,7 +1,7 @@
1
1
  import { Button, CompoundButton, FAB } from '@fluentui-react-native/experimental-button';
2
2
  import * as React from 'react';
3
3
  import { View } from 'react-native';
4
- import { commonTestStyles, stackStyle } from '../Common/styles';
4
+ import { commonTestStyles, testContentRootViewStyle } from '../Common/styles';
5
5
  import { SvgIconProps } from '@fluentui-react-native/icon';
6
6
  import TestSvg from './test.svg';
7
7
 
@@ -14,7 +14,7 @@ export const ButtonVariantTest: React.FunctionComponent = () => {
14
14
  const iconProps = { svgSource: svgProps, width: 20, height: 20 };
15
15
 
16
16
  return (
17
- <View style={[stackStyle, commonTestStyles.view]}>
17
+ <View style={testContentRootViewStyle}>
18
18
  <Button style={commonTestStyles.vmargin}>Default</Button>
19
19
  <Button disabled style={commonTestStyles.vmargin}>
20
20
  Default Disabled
@@ -2,13 +2,14 @@ import { ToggleButton } from '@fluentui/react-native';
2
2
  import { Checkbox } from '@fluentui/react-native';
3
3
  import * as React from 'react';
4
4
  import { StyleSheet, View } from 'react-native';
5
- import { commonTestStyles, stackStyle } from '../Common/styles';
5
+ import { commonTestStyles, testContentRootViewStyle } from '../Common/styles';
6
6
 
7
7
  const styles = StyleSheet.create({
8
8
  row: {
9
9
  flexDirection: 'row',
10
10
  },
11
- hmargin: {
11
+ checkbox: {
12
+ ...commonTestStyles.vmargin,
12
13
  marginHorizontal: 8,
13
14
  },
14
15
  });
@@ -20,12 +21,12 @@ export const ToggleButtonTest: React.FunctionComponent = () => {
20
21
  const onGhostClicked = React.useCallback(() => setSubtleChecked(!subtleChecked), [subtleChecked, setSubtleChecked]);
21
22
 
22
23
  return (
23
- <View style={[stackStyle, commonTestStyles.view]}>
24
+ <View style={testContentRootViewStyle}>
24
25
  <View style={styles.row}>
25
26
  <ToggleButton onClick={onDefaultClicked} checked={defaultChecked} style={commonTestStyles.vmargin}>
26
27
  Default Toggle
27
28
  </ToggleButton>
28
- <Checkbox checked={defaultChecked} label="Default Toggle is Checked" style={[commonTestStyles.vmargin, styles.hmargin]} />
29
+ <Checkbox checked={defaultChecked} label="Default Toggle is Checked" style={styles.checkbox} />
29
30
  </View>
30
31
  <ToggleButton checked style={commonTestStyles.vmargin}>
31
32
  Checked Default Toggle
@@ -46,7 +47,7 @@ export const ToggleButtonTest: React.FunctionComponent = () => {
46
47
  <ToggleButton appearance="subtle" onClick={onGhostClicked} checked={subtleChecked} style={commonTestStyles.vmargin}>
47
48
  Subtle Toggle
48
49
  </ToggleButton>
49
- <Checkbox checked={subtleChecked} label="Subtle Toggle is Checked" style={[commonTestStyles.vmargin, styles.hmargin]} />
50
+ <Checkbox checked={subtleChecked} label="Subtle Toggle is Checked" style={styles.checkbox} />
50
51
  </View>
51
52
  <ToggleButton appearance="subtle" checked style={commonTestStyles.vmargin}>
52
53
  Checked Subtle Toggle
@@ -348,7 +348,7 @@ const StandardCallout: React.FunctionComponent = () => {
348
348
  </View>
349
349
  ) : (
350
350
  //else
351
- <View style={[{ padding: 20 }, { backgroundColor: calloutHovered ? 'lightgreen' : 'pink' }]}>
351
+ <View style={{ padding: 20, backgroundColor: calloutHovered ? 'lightgreen' : 'pink' }}>
352
352
  <Button content="click to change anchor" onClick={toggleCalloutRef} />
353
353
  </View>
354
354
  )}
@@ -1,11 +1,12 @@
1
1
  import { Checkbox } from '@fluentui/react-native';
2
- import { useTheme } from '@fluentui-react-native/theme-types';
2
+ import { Theme, useTheme } from '@fluentui-react-native/theme-types';
3
3
  import * as React from 'react';
4
- import { View, TextInput, TextStyle } from 'react-native';
4
+ import { View, TextInput } from 'react-native';
5
5
  import { commonTestStyles as commonStyles } from '../Common/styles';
6
6
  import { CHECKBOX_TESTPAGE } from './consts';
7
7
  import { E2ECheckboxTest } from './CheckboxE2ETest';
8
8
  import { Test, TestSection, PlatformStatus } from '../Test';
9
+ import { themedStyleSheet } from '@fluentui-react-native/themed-stylesheet';
9
10
 
10
11
  function onChangeUncontrolled(isChecked: boolean) {
11
12
  console.log(isChecked);
@@ -87,6 +88,10 @@ const HoverCheckbox = Checkbox.customize({
87
88
  },
88
89
  });
89
90
 
91
+ const getThemedStyles = themedStyleSheet((t: Theme) => {
92
+ return { textbox: { ...commonStyles.textBox, borderColor: t.colors.inputBorder } };
93
+ });
94
+
90
95
  const TokenCheckbox: React.FunctionComponent = () => {
91
96
  const [checkboxColor, setCheckboxColor] = React.useState('blue');
92
97
  const [checkmarkColor, setCheckmarkColor] = React.useState('white');
@@ -108,9 +113,8 @@ const TokenCheckbox: React.FunctionComponent = () => {
108
113
  });
109
114
 
110
115
  const theme = useTheme();
111
- const textBoxBorderStyle: TextStyle = {
112
- borderColor: theme.colors.inputBorder,
113
- };
116
+ const textBoxBorderStyle = getThemedStyles(theme);
117
+
114
118
  return (
115
119
  <View>
116
120
  <CircularCheckbox label="A circular checkbox" onChange={onChangeUncontrolled} defaultChecked={false} />
@@ -125,7 +129,7 @@ const TokenCheckbox: React.FunctionComponent = () => {
125
129
 
126
130
  <TextInput
127
131
  accessibilityLabel="Background color"
128
- style={[commonStyles.textBox, textBoxBorderStyle]}
132
+ style={textBoxBorderStyle.textbox}
129
133
  placeholder="Background color"
130
134
  blurOnSubmit={true}
131
135
  onSubmitEditing={(e) => {
@@ -135,7 +139,7 @@ const TokenCheckbox: React.FunctionComponent = () => {
135
139
 
136
140
  <TextInput
137
141
  accessibilityLabel="Checkmark color"
138
- style={[commonStyles.textBox, textBoxBorderStyle]}
142
+ style={textBoxBorderStyle.textbox}
139
143
  placeholder="Checkmark color"
140
144
  blurOnSubmit={true}
141
145
  onSubmitEditing={(e) => {
@@ -178,5 +182,7 @@ export const CheckboxTest: React.FunctionComponent = () => {
178
182
  const description =
179
183
  'Checkboxes give people a way to select one or more items from a group, or switch between two mutually exclusive options (checked or unchecked, on or off).';
180
184
 
181
- return <Test name="Checkbox Test" description={description} sections={checkboxSections} status={status} />;
185
+ const spec = 'https://github.com/microsoft/fluentui-react-native/blob/main/packages/components/Checkbox/SPEC.md';
186
+
187
+ return <Test name="Checkbox Test" description={description} spec={spec} sections={checkboxSections} status={status} />;
182
188
  };
@@ -2,11 +2,12 @@ import * as React from 'react';
2
2
  import { EXPERIMENTAL_CHECKBOX_TESTPAGE } from './consts';
3
3
  import { Test, TestSection, PlatformStatus } from '../Test';
4
4
  import { Checkbox } from '@fluentui-react-native/experimental-checkbox';
5
- import { useTheme } from '@fluentui-react-native/theme-types';
6
- import { View, TextInput, TextStyle } from 'react-native';
5
+ import { Theme, useTheme } from '@fluentui-react-native/theme-types';
6
+ import { View, TextInput } from 'react-native';
7
7
  import { commonTestStyles as commonStyles } from '../Common/styles';
8
8
  import { E2ECheckboxExperimentalTest } from './E2ECheckboxExperimentalTest';
9
9
  import { InteractionEvent } from '@fluentui-react-native/interactive-hooks';
10
+ import { themedStyleSheet } from '@fluentui-react-native/themed-stylesheet';
10
11
 
11
12
  function onChangeUncontrolled(_e: InteractionEvent, isChecked: boolean) {
12
13
  console.log(isChecked);
@@ -91,6 +92,10 @@ const ComposedCheckbox = Checkbox.compose({
91
92
  },
92
93
  });
93
94
 
95
+ const getThemedStyles = themedStyleSheet((t: Theme) => {
96
+ return { textbox: { ...commonStyles.textBox, borderColor: t.colors.inputBorder } };
97
+ });
98
+
94
99
  const TokenCheckbox: React.FunctionComponent = () => {
95
100
  const [checkboxColor, setCheckboxColor] = React.useState('blue');
96
101
  const [checkmarkColor, setCheckmarkColor] = React.useState('white');
@@ -104,9 +109,7 @@ const TokenCheckbox: React.FunctionComponent = () => {
104
109
  });
105
110
 
106
111
  const theme = useTheme();
107
- const textBoxBorderStyle: TextStyle = {
108
- borderColor: theme.colors.inputBorder,
109
- };
112
+ const textBoxBorderStyle = getThemedStyles(theme);
110
113
 
111
114
  return (
112
115
  <View>
@@ -123,7 +126,7 @@ const TokenCheckbox: React.FunctionComponent = () => {
123
126
  />
124
127
  <TextInput
125
128
  accessibilityLabel="Background color"
126
- style={[commonStyles.textBox, textBoxBorderStyle]}
129
+ style={textBoxBorderStyle.textbox}
127
130
  placeholder="Background color"
128
131
  blurOnSubmit={true}
129
132
  onSubmitEditing={(e) => {
@@ -133,7 +136,7 @@ const TokenCheckbox: React.FunctionComponent = () => {
133
136
 
134
137
  <TextInput
135
138
  accessibilityLabel="Checkmark color"
136
- style={[commonStyles.textBox, textBoxBorderStyle]}
139
+ style={textBoxBorderStyle.textbox}
137
140
  placeholder="Checkmark color"
138
141
  blurOnSubmit={true}
139
142
  onSubmitEditing={(e) => {
@@ -8,6 +8,7 @@ export const commonTestStyles = StyleSheet.create({
8
8
  flexDirection: 'row',
9
9
  alignItems: 'flex-start',
10
10
  },
11
+ flex: { flex: 1 },
11
12
  header: {
12
13
  marginVertical: 6,
13
14
  fontSize: 16,
@@ -116,6 +117,8 @@ export const fluentTesterStyles = StyleSheet.create({
116
117
  justifyContent: 'flex-start',
117
118
  },
118
119
 
120
+ testListSeparator: { marginHorizontal: 8 },
121
+
119
122
  testSection: {
120
123
  flexGrow: 1,
121
124
  },
@@ -159,3 +162,5 @@ export const mobileStyles = StyleSheet.create({
159
162
  width: '100%',
160
163
  },
161
164
  });
165
+
166
+ export const testContentRootViewStyle = [stackStyle, commonTestStyles.view];
@@ -16,6 +16,7 @@ import { MENU_TESTPAGE } from './consts';
16
16
  import { Test, TestSection, PlatformStatus } from '../Test';
17
17
  import { TextV1 as Text } from '@fluentui-react-native/text';
18
18
  import { E2EMenuTest } from './E2EMenuTest';
19
+ import { StyleSheet } from 'react-native';
19
20
 
20
21
  const MenuDefault: React.FunctionComponent = () => {
21
22
  return (
@@ -36,10 +37,13 @@ const MenuDefault: React.FunctionComponent = () => {
36
37
  );
37
38
  };
38
39
 
40
+ const defaultCheckedTestCase = ['itemOne'];
41
+ const checkedTestCase = ['itemTwo'];
42
+
39
43
  const MenuCheckmarks: React.FunctionComponent = () => {
40
44
  return (
41
45
  <Stack style={stackStyle}>
42
- <Menu defaultChecked={['itemOne']}>
46
+ <Menu defaultChecked={defaultCheckedTestCase}>
43
47
  <MenuTrigger>
44
48
  <Button>All checkmark items</Button>
45
49
  </MenuTrigger>
@@ -51,7 +55,7 @@ const MenuCheckmarks: React.FunctionComponent = () => {
51
55
  </MenuList>
52
56
  </MenuPopover>
53
57
  </Menu>
54
- <Menu hasCheckmarks checked={['itemTwo']}>
58
+ <Menu hasCheckmarks checked={checkedTestCase}>
55
59
  <MenuTrigger>
56
60
  <Button>Some controlled checkmark items with alignment</Button>
57
61
  </MenuTrigger>
@@ -94,7 +98,7 @@ const MenuRadioItem: React.FunctionComponent = () => {
94
98
  return (
95
99
  <Stack style={stackStyle}>
96
100
  <Text>Current checked: {checked.join(' ')}</Text>
97
- <Menu defaultChecked={['itemOne']} onCheckedChange={onCheckedChange}>
101
+ <Menu defaultChecked={defaultCheckedTestCase} onCheckedChange={onCheckedChange}>
98
102
  <MenuTrigger>
99
103
  <Button>Items with radio selection</Button>
100
104
  </MenuTrigger>
@@ -164,10 +168,12 @@ const MenuOpenOnHover: React.FunctionComponent = () => {
164
168
  );
165
169
  };
166
170
 
171
+ const rootStackStyle = StyleSheet.create({ root: { ...(stackStyle as object), flexDirection: 'row' } });
172
+
167
173
  const MenuControlledOpen: React.FunctionComponent = () => {
168
174
  const [open, setOpen] = React.useState<boolean>(false);
169
175
  return (
170
- <Stack style={[stackStyle, { flexDirection: 'row' }]}>
176
+ <Stack style={rootStackStyle.root}>
171
177
  <Button onClick={() => setOpen(!open)}>Toggle open</Button>
172
178
  <Menu open={open}>
173
179
  <MenuTrigger>
@@ -283,5 +289,7 @@ export const MenuTest: React.FunctionComponent = () => {
283
289
  const description =
284
290
  'A Menu is an component that displays a list of options on a temporary surface. They are invoked when users interact with a button, action, or other control.';
285
291
 
286
- return <Test name="Menu Test" description={description} sections={menuSections} status={status}></Test>;
292
+ const spec = 'https://github.com/microsoft/fluentui-react-native/blob/main/packages/components/Menu/SPEC.md';
293
+
294
+ return <Test name="Menu Test" description={description} spec={spec} sections={menuSections} status={status} />;
287
295
  };
@@ -164,7 +164,7 @@ const PrimaryWithAutoHide: React.FunctionComponent = () => {
164
164
  {visible ? 'Hide' : 'Show'}
165
165
  </Button>
166
166
  {!hidden && (
167
- <Animated.View style={[animatedViewProps]}>
167
+ <Animated.View style={animatedViewProps}>
168
168
  <Notification
169
169
  variant={'primary'}
170
170
  action="Undo"
@@ -237,7 +237,7 @@ const PrimaryBarWithAutoHide: React.FunctionComponent = () => {
237
237
  {visible ? 'Hide' : 'Show'}
238
238
  </Button>
239
239
  {!hidden && (
240
- <Animated.View style={[animatedViewProps]}>
240
+ <Animated.View style={animatedViewProps}>
241
241
  <Notification
242
242
  variant={'primaryBar'}
243
243
  onPress={() => {
@@ -282,5 +282,7 @@ export const NotificationTest: React.FunctionComponent = () => {
282
282
 
283
283
  const description = 'Testing notification component';
284
284
 
285
- return <Test name="Notification Test" description={description} sections={notificationSections} status={status}></Test>;
285
+ const spec = 'https://github.com/microsoft/fluentui-react-native/blob/main/packages/components/Notification/SPEC.md';
286
+
287
+ return <Test name="Notification Test" description={description} spec={spec} sections={notificationSections} status={status} />;
286
288
  };
@@ -1,10 +1,15 @@
1
1
  import * as React from 'react';
2
- import { View, Text, Switch, TextInput, TextStyle } from 'react-native';
2
+ import { View, Text, Switch, TextInput } from 'react-native';
3
3
  import { Persona } from '@fluentui/react-native';
4
4
  import { michaelImageUrl } from './styles';
5
5
  import { commonTestStyles as commonStyles } from '../Common/styles';
6
- import { useTheme } from '@fluentui-react-native/theme-types';
6
+ import { Theme, useTheme } from '@fluentui-react-native/theme-types';
7
7
  import { Slider } from '../Common/Slider';
8
+ import { themedStyleSheet } from '@fluentui-react-native/themed-stylesheet';
9
+
10
+ const getThemedStyles = themedStyleSheet((t: Theme) => {
11
+ return { textbox: { ...commonStyles.textBox, borderColor: t.colors.inputBorder } };
12
+ });
8
13
 
9
14
  export const CustomizeUsage: React.FunctionComponent = () => {
10
15
  const [showImage, setShowImage] = React.useState(true);
@@ -20,9 +25,7 @@ export const CustomizeUsage: React.FunctionComponent = () => {
20
25
  const [verticalGap, setVerticalGap] = React.useState<number>();
21
26
 
22
27
  const theme = useTheme();
23
- const textBoxBorderStyle: TextStyle = {
24
- borderColor: theme.colors.inputBorder,
25
- };
28
+ const textBoxBorderStyle = getThemedStyles(theme);
26
29
 
27
30
  const CustomizedPersona = React.useMemo(() => {
28
31
  const tokens = {
@@ -49,7 +52,7 @@ export const CustomizeUsage: React.FunctionComponent = () => {
49
52
 
50
53
  <TextInput
51
54
  accessibilityLabel="Background color"
52
- style={[commonStyles.textBox, textBoxBorderStyle]}
55
+ style={textBoxBorderStyle.textbox}
53
56
  placeholder="Background color"
54
57
  blurOnSubmit={true}
55
58
  onSubmitEditing={(e) => {
@@ -59,7 +62,7 @@ export const CustomizeUsage: React.FunctionComponent = () => {
59
62
 
60
63
  <TextInput
61
64
  accessibilityLabel="Initials text color"
62
- style={[commonStyles.textBox, textBoxBorderStyle]}
65
+ style={textBoxBorderStyle.textbox}
63
66
  placeholder="Initials text color"
64
67
  blurOnSubmit={true}
65
68
  onSubmitEditing={(e) => {
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { PersonaCoin } from '@fluentui/react-native';
3
- import { Switch, View, Text, TextInput } from 'react-native';
3
+ import { Switch, View, Text, TextInput, StyleSheet } from 'react-native';
4
4
  import Slider from '@react-native-community/slider';
5
5
  import { steveBallmerPhotoUrl, undefinedText } from './styles';
6
6
  import { commonTestStyles as commonStyles } from '../Common/styles';
@@ -8,20 +8,15 @@ import { useTheme } from '@fluentui-react-native/theme-types';
8
8
 
9
9
  type WithUndefined<T> = T | typeof undefinedText;
10
10
 
11
+ const styles = StyleSheet.create({ slider: { ...commonStyles.vmargin, flex: 1 } });
12
+
11
13
  const StyledSlider = (props) => {
12
14
  const { title, min, max, initial, onChange, current, step } = props;
13
15
  const theme = useTheme();
14
16
  return (
15
17
  <View style={{ flexDirection: 'row' }}>
16
18
  <Text style={{ flex: 0.5, color: theme.colors.inputText }}>{title}</Text>
17
- <Slider
18
- step={step || 1}
19
- minimumValue={min}
20
- maximumValue={max}
21
- value={initial}
22
- style={[commonStyles.vmargin, { flex: 1 }]}
23
- onValueChange={onChange}
24
- />
19
+ <Slider step={step || 1} minimumValue={min} maximumValue={max} value={initial} style={styles.slider} onValueChange={onChange} />
25
20
  <Text style={{ flex: 0.2, color: theme.colors.inputText }}>{current}</Text>
26
21
  </View>
27
22
  );
@@ -1,11 +1,16 @@
1
1
  import * as React from 'react';
2
2
  import { PersonaCoin, IconAlignment } from '@fluentui/react-native';
3
- import { Switch, View, Text, TextInput, TextStyle } from 'react-native';
3
+ import { Switch, View, Text, TextInput } from 'react-native';
4
4
  import { Slider } from '../Common/Slider';
5
5
  import { steveBallmerPhotoUrl } from './styles';
6
- import { useTheme } from '@fluentui-react-native/theme-types';
6
+ import { Theme, useTheme } from '@fluentui-react-native/theme-types';
7
7
  import { AlignmentPicker } from '../Common/AlignmentPicker';
8
8
  import { commonTestStyles as commonStyles } from '../Common/styles';
9
+ import { themedStyleSheet } from '@fluentui-react-native/themed-stylesheet';
10
+
11
+ const getThemedStyles = themedStyleSheet((t: Theme) => {
12
+ return { textbox: { ...commonStyles.textBox, borderColor: t.colors.inputBorder } };
13
+ });
9
14
 
10
15
  export const CustomizeUsage: React.FunctionComponent = () => {
11
16
  const [showImage, setShowImage] = React.useState(true);
@@ -25,9 +30,7 @@ export const CustomizeUsage: React.FunctionComponent = () => {
25
30
  const [transparent, setTransparent] = React.useState<boolean>(false);
26
31
 
27
32
  const theme = useTheme();
28
- const textBoxBorderStyle: TextStyle = {
29
- borderColor: theme.colors.inputBorder,
30
- };
33
+ const textBoxBorderStyle = getThemedStyles(theme);
31
34
 
32
35
  const CustomizedPersonaCoin = React.useMemo(() => {
33
36
  const tokens = {
@@ -75,7 +78,7 @@ export const CustomizeUsage: React.FunctionComponent = () => {
75
78
 
76
79
  <TextInput
77
80
  accessibilityLabel="Background color"
78
- style={[commonStyles.textBox, textBoxBorderStyle]}
81
+ style={textBoxBorderStyle.textbox}
79
82
  placeholder="Background color"
80
83
  blurOnSubmit={true}
81
84
  onSubmitEditing={(e) => {
@@ -85,7 +88,7 @@ export const CustomizeUsage: React.FunctionComponent = () => {
85
88
 
86
89
  <TextInput
87
90
  accessibilityLabel="Initials text color"
88
- style={[commonStyles.textBox, textBoxBorderStyle]}
91
+ style={textBoxBorderStyle.textbox}
89
92
  placeholder="Initials text color"
90
93
  blurOnSubmit={true}
91
94
  onSubmitEditing={(e) => {
@@ -95,7 +98,7 @@ export const CustomizeUsage: React.FunctionComponent = () => {
95
98
 
96
99
  <TextInput
97
100
  accessibilityLabel="Icon stroke color"
98
- style={[commonStyles.textBox, textBoxBorderStyle]}
101
+ style={textBoxBorderStyle.textbox}
99
102
  placeholder="Icon stroke color"
100
103
  blurOnSubmit={true}
101
104
  onSubmitEditing={(e) => {
@@ -105,7 +108,7 @@ export const CustomizeUsage: React.FunctionComponent = () => {
105
108
 
106
109
  <TextInput
107
110
  accessibilityLabel="Ring color"
108
- style={[commonStyles.textBox, textBoxBorderStyle]}
111
+ style={textBoxBorderStyle.textbox}
109
112
  placeholder="Ring color"
110
113
  blurOnSubmit={true}
111
114
  onSubmitEditing={(e) => {
@@ -115,7 +118,7 @@ export const CustomizeUsage: React.FunctionComponent = () => {
115
118
 
116
119
  <TextInput
117
120
  accessibilityLabel="Ring background color"
118
- style={[commonStyles.textBox, textBoxBorderStyle]}
121
+ style={textBoxBorderStyle.textbox}
119
122
  placeholder="Ring background color"
120
123
  blurOnSubmit={true}
121
124
  onSubmitEditing={(e) => {
@@ -23,7 +23,15 @@ export const RadioGroupExperimentalTest: React.FunctionComponent = () => {
23
23
  const description =
24
24
  'RadioGroup lets users select a single option from two or more choices. Each option is represented by one Radio; a user can select only one Radio in a RadioGroup.';
25
25
 
26
+ const spec = 'https://github.com/microsoft/fluentui-react-native/blob/main/packages/experimental/RadioGroup/SPEC.md';
27
+
26
28
  return (
27
- <Test name="Experimental RadioGroup Test" description={description} sections={radioGroupExperimentalSections} status={status}></Test>
29
+ <Test
30
+ name="Experimental RadioGroup Test"
31
+ description={description}
32
+ spec={spec}
33
+ sections={radioGroupExperimentalSections}
34
+ status={status}
35
+ />
28
36
  );
29
37
  };