@fluentui-react-native/tester 0.78.1 → 0.78.4

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 (59) hide show
  1. package/CHANGELOG.json +75 -12
  2. package/CHANGELOG.md +29 -2
  3. package/lib/FluentTester/TestComponents/Avatar/CustomizedAvatar.d.ts.map +1 -1
  4. package/lib/FluentTester/TestComponents/Avatar/CustomizedAvatar.js +13 -13
  5. package/lib/FluentTester/TestComponents/Avatar/CustomizedAvatar.js.map +1 -1
  6. package/lib/FluentTester/TestComponents/Checkbox/CheckboxTest.d.ts.map +1 -1
  7. package/lib/FluentTester/TestComponents/Checkbox/CheckboxTest.js +2 -2
  8. package/lib/FluentTester/TestComponents/Checkbox/CheckboxTest.js.map +1 -1
  9. package/lib/FluentTester/TestComponents/CheckboxExperimental/CheckboxTest.d.ts.map +1 -1
  10. package/lib/FluentTester/TestComponents/CheckboxExperimental/CheckboxTest.js +2 -2
  11. package/lib/FluentTester/TestComponents/CheckboxExperimental/CheckboxTest.js.map +1 -1
  12. package/lib/FluentTester/TestComponents/Persona/CustomizeUsage.d.ts.map +1 -1
  13. package/lib/FluentTester/TestComponents/Persona/CustomizeUsage.js +2 -2
  14. package/lib/FluentTester/TestComponents/Persona/CustomizeUsage.js.map +1 -1
  15. package/lib/FluentTester/TestComponents/PersonaCoin/CustomizeUsage.d.ts.map +1 -1
  16. package/lib/FluentTester/TestComponents/PersonaCoin/CustomizeUsage.js +5 -5
  17. package/lib/FluentTester/TestComponents/PersonaCoin/CustomizeUsage.js.map +1 -1
  18. package/lib/FluentTester/TestComponents/PersonaCoin/CustomizeUsage.mobile.d.ts.map +1 -1
  19. package/lib/FluentTester/TestComponents/PersonaCoin/CustomizeUsage.mobile.js +1 -1
  20. package/lib/FluentTester/TestComponents/PersonaCoin/CustomizeUsage.mobile.js.map +1 -1
  21. package/lib/FluentTester/TestComponents/Theme/ThemeTest.d.ts.map +1 -1
  22. package/lib/FluentTester/TestComponents/Theme/ThemeTest.js +2 -3
  23. package/lib/FluentTester/TestComponents/Theme/ThemeTest.js.map +1 -1
  24. package/lib/FluentTester/TestComponents/Tokens/TokenTest.d.ts.map +1 -1
  25. package/lib/FluentTester/TestComponents/Tokens/TokenTest.js +2 -3
  26. package/lib/FluentTester/TestComponents/Tokens/TokenTest.js.map +1 -1
  27. package/lib-commonjs/FluentTester/TestComponents/Avatar/CustomizedAvatar.d.ts.map +1 -1
  28. package/lib-commonjs/FluentTester/TestComponents/Avatar/CustomizedAvatar.js +13 -13
  29. package/lib-commonjs/FluentTester/TestComponents/Avatar/CustomizedAvatar.js.map +1 -1
  30. package/lib-commonjs/FluentTester/TestComponents/Checkbox/CheckboxTest.d.ts.map +1 -1
  31. package/lib-commonjs/FluentTester/TestComponents/Checkbox/CheckboxTest.js +2 -2
  32. package/lib-commonjs/FluentTester/TestComponents/Checkbox/CheckboxTest.js.map +1 -1
  33. package/lib-commonjs/FluentTester/TestComponents/CheckboxExperimental/CheckboxTest.d.ts.map +1 -1
  34. package/lib-commonjs/FluentTester/TestComponents/CheckboxExperimental/CheckboxTest.js +2 -2
  35. package/lib-commonjs/FluentTester/TestComponents/CheckboxExperimental/CheckboxTest.js.map +1 -1
  36. package/lib-commonjs/FluentTester/TestComponents/Persona/CustomizeUsage.d.ts.map +1 -1
  37. package/lib-commonjs/FluentTester/TestComponents/Persona/CustomizeUsage.js +2 -2
  38. package/lib-commonjs/FluentTester/TestComponents/Persona/CustomizeUsage.js.map +1 -1
  39. package/lib-commonjs/FluentTester/TestComponents/PersonaCoin/CustomizeUsage.d.ts.map +1 -1
  40. package/lib-commonjs/FluentTester/TestComponents/PersonaCoin/CustomizeUsage.js +5 -5
  41. package/lib-commonjs/FluentTester/TestComponents/PersonaCoin/CustomizeUsage.js.map +1 -1
  42. package/lib-commonjs/FluentTester/TestComponents/PersonaCoin/CustomizeUsage.mobile.d.ts.map +1 -1
  43. package/lib-commonjs/FluentTester/TestComponents/PersonaCoin/CustomizeUsage.mobile.js +1 -1
  44. package/lib-commonjs/FluentTester/TestComponents/PersonaCoin/CustomizeUsage.mobile.js.map +1 -1
  45. package/lib-commonjs/FluentTester/TestComponents/Theme/ThemeTest.d.ts.map +1 -1
  46. package/lib-commonjs/FluentTester/TestComponents/Theme/ThemeTest.js +1 -2
  47. package/lib-commonjs/FluentTester/TestComponents/Theme/ThemeTest.js.map +1 -1
  48. package/lib-commonjs/FluentTester/TestComponents/Tokens/TokenTest.d.ts.map +1 -1
  49. package/lib-commonjs/FluentTester/TestComponents/Tokens/TokenTest.js +1 -2
  50. package/lib-commonjs/FluentTester/TestComponents/Tokens/TokenTest.js.map +1 -1
  51. package/package.json +5 -5
  52. package/src/FluentTester/TestComponents/Avatar/CustomizedAvatar.tsx +26 -13
  53. package/src/FluentTester/TestComponents/Checkbox/CheckboxTest.tsx +2 -0
  54. package/src/FluentTester/TestComponents/CheckboxExperimental/CheckboxTest.tsx +2 -0
  55. package/src/FluentTester/TestComponents/Persona/CustomizeUsage.tsx +2 -0
  56. package/src/FluentTester/TestComponents/PersonaCoin/CustomizeUsage.mobile.tsx +9 -1
  57. package/src/FluentTester/TestComponents/PersonaCoin/CustomizeUsage.tsx +5 -0
  58. package/src/FluentTester/TestComponents/Theme/ThemeTest.tsx +2 -4
  59. package/src/FluentTester/TestComponents/Tokens/TokenTest.tsx +2 -4
@@ -77,7 +77,8 @@ export const CustomizeUsage: React.FunctionComponent = () => {
77
77
  <View style={{ flexDirection: 'row' }}>
78
78
  <View>
79
79
  <TextInput
80
- style={[commonStyles.textBox]}
80
+ accessibilityLabel="Name for generating initials"
81
+ style={commonStyles.textBox}
81
82
  placeholder="Name for generating initials"
82
83
  blurOnSubmit={true}
83
84
  onSubmitEditing={(e) => {
@@ -85,7 +86,8 @@ export const CustomizeUsage: React.FunctionComponent = () => {
85
86
  }}
86
87
  />
87
88
  <TextInput
88
- style={[commonStyles.textBox]}
89
+ accessibilityLabel="Initials"
90
+ style={commonStyles.textBox}
89
91
  placeholder="Initials"
90
92
  blurOnSubmit={true}
91
93
  onSubmitEditing={(e) => {
@@ -94,7 +96,8 @@ export const CustomizeUsage: React.FunctionComponent = () => {
94
96
  />
95
97
  <Text style={{ fontWeight: 'bold' }}>Avatar tokens</Text>
96
98
  <TextInput
97
- style={[commonStyles.textBox]}
99
+ accessibilityLabel="Background color"
100
+ style={commonStyles.textBox}
98
101
  placeholder="Background color"
99
102
  blurOnSubmit={true}
100
103
  onSubmitEditing={(e) => {
@@ -103,7 +106,8 @@ export const CustomizeUsage: React.FunctionComponent = () => {
103
106
  />
104
107
 
105
108
  <TextInput
106
- style={[commonStyles.textBox]}
109
+ accessibilityLabel="Avatar size"
110
+ style={commonStyles.textBox}
107
111
  placeholder="Avatar size"
108
112
  blurOnSubmit={true}
109
113
  onSubmitEditing={(e) => {
@@ -112,7 +116,8 @@ export const CustomizeUsage: React.FunctionComponent = () => {
112
116
  />
113
117
 
114
118
  <TextInput
115
- style={[commonStyles.textBox]}
119
+ accessibilityLabel="Icon size"
120
+ style={commonStyles.textBox}
116
121
  placeholder="Icon size"
117
122
  blurOnSubmit={true}
118
123
  onSubmitEditing={(e) => {
@@ -120,7 +125,8 @@ export const CustomizeUsage: React.FunctionComponent = () => {
120
125
  }}
121
126
  />
122
127
  <TextInput
123
- style={[commonStyles.textBox]}
128
+ accessibilityLabel="Icon color"
129
+ style={commonStyles.textBox}
124
130
  placeholder="Icon color"
125
131
  blurOnSubmit={true}
126
132
  onSubmitEditing={(e) => {
@@ -129,7 +135,8 @@ export const CustomizeUsage: React.FunctionComponent = () => {
129
135
  />
130
136
  <Text style={{ fontWeight: 'bold' }}>Ring tokens</Text>
131
137
  <TextInput
132
- style={[commonStyles.textBox]}
138
+ accessibilityLabel="Ring background color"
139
+ style={commonStyles.textBox}
133
140
  placeholder="Ring background color"
134
141
  blurOnSubmit={true}
135
142
  onSubmitEditing={(e) => {
@@ -137,7 +144,8 @@ export const CustomizeUsage: React.FunctionComponent = () => {
137
144
  }}
138
145
  />
139
146
  <TextInput
140
- style={[commonStyles.textBox]}
147
+ accessibilityLabel="Ring color"
148
+ style={commonStyles.textBox}
141
149
  placeholder="Ring color"
142
150
  blurOnSubmit={true}
143
151
  onSubmitEditing={(e) => {
@@ -145,7 +153,8 @@ export const CustomizeUsage: React.FunctionComponent = () => {
145
153
  }}
146
154
  />
147
155
  <TextInput
148
- style={[commonStyles.textBox]}
156
+ accessibilityLabel="Ring thickness"
157
+ style={commonStyles.textBox}
149
158
  placeholder="Ring thickness"
150
159
  blurOnSubmit={true}
151
160
  onSubmitEditing={(e) => {
@@ -156,7 +165,8 @@ export const CustomizeUsage: React.FunctionComponent = () => {
156
165
  <View style={{ paddingHorizontal: 20 }}>
157
166
  <Text style={{ fontWeight: 'bold' }}>Font tokens</Text>
158
167
  <TextInput
159
- style={[commonStyles.textBox]}
168
+ accessibilityLabel="Initials text color"
169
+ style={commonStyles.textBox}
160
170
  placeholder="Initials text color"
161
171
  blurOnSubmit={true}
162
172
  onSubmitEditing={(e) => {
@@ -164,7 +174,8 @@ export const CustomizeUsage: React.FunctionComponent = () => {
164
174
  }}
165
175
  />
166
176
  <TextInput
167
- style={[commonStyles.textBox]}
177
+ accessibilityLabel="Initials size"
178
+ style={commonStyles.textBox}
168
179
  placeholder="Initials size"
169
180
  blurOnSubmit={true}
170
181
  onSubmitEditing={(e) => {
@@ -172,7 +183,8 @@ export const CustomizeUsage: React.FunctionComponent = () => {
172
183
  }}
173
184
  />
174
185
  <TextInput
175
- style={[commonStyles.textBox]}
186
+ accessibilityLabel="Font weight"
187
+ style={commonStyles.textBox}
176
188
  placeholder="Font weight"
177
189
  blurOnSubmit={true}
178
190
  onSubmitEditing={(e) => {
@@ -180,7 +192,8 @@ export const CustomizeUsage: React.FunctionComponent = () => {
180
192
  }}
181
193
  />
182
194
  <TextInput
183
- style={[commonStyles.textBox]}
195
+ accessibilityLabel="Font family"
196
+ style={commonStyles.textBox}
184
197
  placeholder="Font family"
185
198
  blurOnSubmit={true}
186
199
  onSubmitEditing={(e) => {
@@ -124,6 +124,7 @@ const TokenCheckbox: React.FunctionComponent = () => {
124
124
  />
125
125
 
126
126
  <TextInput
127
+ accessibilityLabel="Background color"
127
128
  style={[commonStyles.textBox, textBoxBorderStyle]}
128
129
  placeholder="Background color"
129
130
  blurOnSubmit={true}
@@ -133,6 +134,7 @@ const TokenCheckbox: React.FunctionComponent = () => {
133
134
  />
134
135
 
135
136
  <TextInput
137
+ accessibilityLabel="Checkmark color"
136
138
  style={[commonStyles.textBox, textBoxBorderStyle]}
137
139
  placeholder="Checkmark color"
138
140
  blurOnSubmit={true}
@@ -122,6 +122,7 @@ const TokenCheckbox: React.FunctionComponent = () => {
122
122
  defaultChecked={false}
123
123
  />
124
124
  <TextInput
125
+ accessibilityLabel="Background color"
125
126
  style={[commonStyles.textBox, textBoxBorderStyle]}
126
127
  placeholder="Background color"
127
128
  blurOnSubmit={true}
@@ -131,6 +132,7 @@ const TokenCheckbox: React.FunctionComponent = () => {
131
132
  />
132
133
 
133
134
  <TextInput
135
+ accessibilityLabel="Checkmark color"
134
136
  style={[commonStyles.textBox, textBoxBorderStyle]}
135
137
  placeholder="Checkmark color"
136
138
  blurOnSubmit={true}
@@ -48,6 +48,7 @@ export const CustomizeUsage: React.FunctionComponent = () => {
48
48
  </View>
49
49
 
50
50
  <TextInput
51
+ accessibilityLabel="Background color"
51
52
  style={[commonStyles.textBox, textBoxBorderStyle]}
52
53
  placeholder="Background color"
53
54
  blurOnSubmit={true}
@@ -57,6 +58,7 @@ export const CustomizeUsage: React.FunctionComponent = () => {
57
58
  />
58
59
 
59
60
  <TextInput
61
+ accessibilityLabel="Initials text color"
60
62
  style={[commonStyles.textBox, textBoxBorderStyle]}
61
63
  placeholder="Initials text color"
62
64
  blurOnSubmit={true}
@@ -33,7 +33,15 @@ const StyledTextInput = (props) => {
33
33
  commonStyles.textBox,
34
34
  { flex: 1, marginHorizontal: 5, borderColor: theme.colors.disabledBodyText, color: theme.colors.inputText },
35
35
  ];
36
- return <TextInput style={textInputStyles} placeholderTextColor={theme.colors.disabledBodyText} blurOnSubmit={true} {...props} />;
36
+ return (
37
+ <TextInput
38
+ accessibilityLabel={props.placeholder}
39
+ style={textInputStyles}
40
+ placeholderTextColor={theme.colors.disabledBodyText}
41
+ blurOnSubmit={true}
42
+ {...props}
43
+ />
44
+ );
37
45
  };
38
46
 
39
47
  const StyledSwitch = (props) => {
@@ -74,6 +74,7 @@ export const CustomizeUsage: React.FunctionComponent = () => {
74
74
  </View>
75
75
 
76
76
  <TextInput
77
+ accessibilityLabel="Background color"
77
78
  style={[commonStyles.textBox, textBoxBorderStyle]}
78
79
  placeholder="Background color"
79
80
  blurOnSubmit={true}
@@ -83,6 +84,7 @@ export const CustomizeUsage: React.FunctionComponent = () => {
83
84
  />
84
85
 
85
86
  <TextInput
87
+ accessibilityLabel="Initials text color"
86
88
  style={[commonStyles.textBox, textBoxBorderStyle]}
87
89
  placeholder="Initials text color"
88
90
  blurOnSubmit={true}
@@ -92,6 +94,7 @@ export const CustomizeUsage: React.FunctionComponent = () => {
92
94
  />
93
95
 
94
96
  <TextInput
97
+ accessibilityLabel="Icon stroke color"
95
98
  style={[commonStyles.textBox, textBoxBorderStyle]}
96
99
  placeholder="Icon stroke color"
97
100
  blurOnSubmit={true}
@@ -101,6 +104,7 @@ export const CustomizeUsage: React.FunctionComponent = () => {
101
104
  />
102
105
 
103
106
  <TextInput
107
+ accessibilityLabel="Ring color"
104
108
  style={[commonStyles.textBox, textBoxBorderStyle]}
105
109
  placeholder="Ring color"
106
110
  blurOnSubmit={true}
@@ -110,6 +114,7 @@ export const CustomizeUsage: React.FunctionComponent = () => {
110
114
  />
111
115
 
112
116
  <TextInput
117
+ accessibilityLabel="Ring background color"
113
118
  style={[commonStyles.textBox, textBoxBorderStyle]}
114
119
  placeholder="Ring background color"
115
120
  blurOnSubmit={true}
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { FlatList, View, ViewStyle, StyleSheet, ColorValue } from 'react-native';
2
+ import { View, ViewStyle, StyleSheet, ColorValue } from 'react-native';
3
3
  import { useTheme, Theme } from '@fluentui-react-native/theme-types';
4
4
  import { themedStyleSheet } from '@fluentui-react-native/themed-stylesheet';
5
5
  import { commonTestStyles } from '../Common/styles';
@@ -91,9 +91,7 @@ const SwatchList: React.FunctionComponent = () => {
91
91
  return (
92
92
  <View style={[commonTestStyles.view]}>
93
93
  <Text>getHostSettingsWin32(theme: ITheme).palette</Text>
94
- <View style={themedStyles.stackStyle}>
95
- <FlatList data={paletteAsArray} renderItem={renderSwatch} />
96
- </View>
94
+ <View style={themedStyles.stackStyle}>{paletteAsArray.map((item) => renderSwatch({ item }))}</View>
97
95
  </View>
98
96
  );
99
97
  };
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { FlatList, View, ViewStyle, StyleSheet, ColorValue } from 'react-native';
2
+ import { View, ViewStyle, StyleSheet, ColorValue } from 'react-native';
3
3
  import { useTheme, Theme } from '@fluentui-react-native/theme-types';
4
4
  import { themedStyleSheet } from '@fluentui-react-native/themed-stylesheet';
5
5
  import { getCurrentAppearance } from '@fluentui-react-native/theming-utils';
@@ -87,9 +87,7 @@ const AliasTokensSwatchList: React.FunctionComponent = () => {
87
87
  return (
88
88
  <View style={[commonTestStyles.view]}>
89
89
  <Text>Alias Color Tokens from Token Pipeline</Text>
90
- <View style={themedStyles.stackStyle}>
91
- <FlatList data={aliasTokensAsArray} renderItem={renderSwatch} />
92
- </View>
90
+ <View style={themedStyles.stackStyle}>{aliasTokensAsArray.map((item) => renderSwatch({ item }))}</View>
93
91
  </View>
94
92
  );
95
93
  };