@fluentui-react-native/tester 0.65.5 → 0.66.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.
Files changed (112) hide show
  1. package/CHANGELOG.json +28 -1
  2. package/CHANGELOG.md +12 -2
  3. package/lib/E2E/Avatar/pages/AvatarPageObject.js +2 -2
  4. package/lib/E2E/Avatar/pages/AvatarPageObject.js.map +1 -1
  5. package/lib/E2E/Avatar/specs/Avatar.spec.win.js +4 -4
  6. package/lib/E2E/Avatar/specs/Avatar.spec.win.js.map +1 -1
  7. package/lib/FluentTester/TestComponents/Avatar/AvatarTest.d.ts +0 -2
  8. package/lib/FluentTester/TestComponents/Avatar/AvatarTest.d.ts.map +1 -1
  9. package/lib/FluentTester/TestComponents/Avatar/AvatarTest.js +10 -60
  10. package/lib/FluentTester/TestComponents/Avatar/AvatarTest.js.map +1 -1
  11. package/lib/FluentTester/TestComponents/Avatar/BasicAvatar.js +6 -6
  12. package/lib/FluentTester/TestComponents/Avatar/BasicAvatar.js.map +1 -1
  13. package/lib/FluentTester/TestComponents/Avatar/CustomizedAvatar.js +3 -3
  14. package/lib/FluentTester/TestComponents/Avatar/CustomizedAvatar.js.map +1 -1
  15. package/lib/FluentTester/TestComponents/Avatar/E2EAvatarTest.js +4 -4
  16. package/lib/FluentTester/TestComponents/Avatar/E2EAvatarTest.js.map +1 -1
  17. package/lib/FluentTester/TestComponents/Avatar/NativeAvatarTest.d.ts +5 -0
  18. package/lib/FluentTester/TestComponents/Avatar/NativeAvatarTest.d.ts.map +1 -0
  19. package/lib/FluentTester/TestComponents/Avatar/NativeAvatarTest.js +83 -0
  20. package/lib/FluentTester/TestComponents/Avatar/NativeAvatarTest.js.map +1 -0
  21. package/lib/FluentTester/TestComponents/Avatar/consts.d.ts +7 -6
  22. package/lib/FluentTester/TestComponents/Avatar/consts.d.ts.map +1 -1
  23. package/lib/FluentTester/TestComponents/Avatar/consts.js +7 -6
  24. package/lib/FluentTester/TestComponents/Avatar/consts.js.map +1 -1
  25. package/lib/FluentTester/TestComponents/Avatar/index.d.ts +1 -1
  26. package/lib/FluentTester/TestComponents/Avatar/index.d.ts.map +1 -1
  27. package/lib/FluentTester/TestComponents/Avatar/index.js +1 -1
  28. package/lib/FluentTester/TestComponents/Avatar/index.js.map +1 -1
  29. package/lib/FluentTester/testPages.android.js +2 -2
  30. package/lib/FluentTester/testPages.android.js.map +1 -1
  31. package/lib/FluentTester/testPages.ios.d.ts.map +1 -1
  32. package/lib/FluentTester/testPages.ios.js +6 -1
  33. package/lib/FluentTester/testPages.ios.js.map +1 -1
  34. package/lib/FluentTester/testPages.js +3 -3
  35. package/lib/FluentTester/testPages.js.map +1 -1
  36. package/lib/FluentTester/testPages.macos.d.ts.map +1 -1
  37. package/lib/FluentTester/testPages.macos.js +6 -1
  38. package/lib/FluentTester/testPages.macos.js.map +1 -1
  39. package/lib/FluentTester/testPages.web.js +2 -2
  40. package/lib/FluentTester/testPages.web.js.map +1 -1
  41. package/lib/FluentTester/testPages.win32.js +2 -2
  42. package/lib/FluentTester/testPages.win32.js.map +1 -1
  43. package/lib/FluentTester/testPages.windows.js +2 -2
  44. package/lib/FluentTester/testPages.windows.js.map +1 -1
  45. package/lib-commonjs/E2E/Avatar/pages/AvatarPageObject.js +1 -1
  46. package/lib-commonjs/E2E/Avatar/pages/AvatarPageObject.js.map +1 -1
  47. package/lib-commonjs/E2E/Avatar/specs/Avatar.spec.win.js +3 -3
  48. package/lib-commonjs/E2E/Avatar/specs/Avatar.spec.win.js.map +1 -1
  49. package/lib-commonjs/FluentTester/TestComponents/Avatar/AvatarTest.d.ts +0 -2
  50. package/lib-commonjs/FluentTester/TestComponents/Avatar/AvatarTest.d.ts.map +1 -1
  51. package/lib-commonjs/FluentTester/TestComponents/Avatar/AvatarTest.js +11 -63
  52. package/lib-commonjs/FluentTester/TestComponents/Avatar/AvatarTest.js.map +1 -1
  53. package/lib-commonjs/FluentTester/TestComponents/Avatar/BasicAvatar.js +8 -8
  54. package/lib-commonjs/FluentTester/TestComponents/Avatar/BasicAvatar.js.map +1 -1
  55. package/lib-commonjs/FluentTester/TestComponents/Avatar/CustomizedAvatar.js +3 -3
  56. package/lib-commonjs/FluentTester/TestComponents/Avatar/CustomizedAvatar.js.map +1 -1
  57. package/lib-commonjs/FluentTester/TestComponents/Avatar/E2EAvatarTest.js +3 -3
  58. package/lib-commonjs/FluentTester/TestComponents/Avatar/E2EAvatarTest.js.map +1 -1
  59. package/lib-commonjs/FluentTester/TestComponents/Avatar/NativeAvatarTest.d.ts +5 -0
  60. package/lib-commonjs/FluentTester/TestComponents/Avatar/NativeAvatarTest.d.ts.map +1 -0
  61. package/lib-commonjs/FluentTester/TestComponents/Avatar/NativeAvatarTest.js +90 -0
  62. package/lib-commonjs/FluentTester/TestComponents/Avatar/NativeAvatarTest.js.map +1 -0
  63. package/lib-commonjs/FluentTester/TestComponents/Avatar/consts.d.ts +7 -6
  64. package/lib-commonjs/FluentTester/TestComponents/Avatar/consts.d.ts.map +1 -1
  65. package/lib-commonjs/FluentTester/TestComponents/Avatar/consts.js +8 -7
  66. package/lib-commonjs/FluentTester/TestComponents/Avatar/consts.js.map +1 -1
  67. package/lib-commonjs/FluentTester/TestComponents/Avatar/index.d.ts +1 -1
  68. package/lib-commonjs/FluentTester/TestComponents/Avatar/index.d.ts.map +1 -1
  69. package/lib-commonjs/FluentTester/TestComponents/Avatar/index.js +1 -1
  70. package/lib-commonjs/FluentTester/TestComponents/Avatar/index.js.map +1 -1
  71. package/lib-commonjs/FluentTester/testPages.android.js +1 -1
  72. package/lib-commonjs/FluentTester/testPages.android.js.map +1 -1
  73. package/lib-commonjs/FluentTester/testPages.ios.d.ts.map +1 -1
  74. package/lib-commonjs/FluentTester/testPages.ios.js +5 -0
  75. package/lib-commonjs/FluentTester/testPages.ios.js.map +1 -1
  76. package/lib-commonjs/FluentTester/testPages.js +2 -2
  77. package/lib-commonjs/FluentTester/testPages.js.map +1 -1
  78. package/lib-commonjs/FluentTester/testPages.macos.d.ts.map +1 -1
  79. package/lib-commonjs/FluentTester/testPages.macos.js +5 -0
  80. package/lib-commonjs/FluentTester/testPages.macos.js.map +1 -1
  81. package/lib-commonjs/FluentTester/testPages.web.js +1 -1
  82. package/lib-commonjs/FluentTester/testPages.web.js.map +1 -1
  83. package/lib-commonjs/FluentTester/testPages.win32.js +1 -1
  84. package/lib-commonjs/FluentTester/testPages.win32.js.map +1 -1
  85. package/lib-commonjs/FluentTester/testPages.windows.js +1 -1
  86. package/lib-commonjs/FluentTester/testPages.windows.js.map +1 -1
  87. package/package.json +3 -2
  88. package/src/E2E/Avatar/pages/AvatarPageObject.ts +2 -2
  89. package/src/E2E/Avatar/specs/Avatar.spec.win.ts +6 -6
  90. package/src/FluentTester/TestComponents/Avatar/AvatarTest.tsx +10 -109
  91. package/src/FluentTester/TestComponents/Avatar/BasicAvatar.tsx +7 -7
  92. package/src/FluentTester/TestComponents/Avatar/CustomizedAvatar.tsx +3 -3
  93. package/src/FluentTester/TestComponents/Avatar/E2EAvatarTest.tsx +9 -9
  94. package/src/FluentTester/TestComponents/Avatar/NativeAvatarTest.tsx +136 -0
  95. package/src/FluentTester/TestComponents/Avatar/consts.ts +7 -6
  96. package/src/FluentTester/TestComponents/Avatar/index.ts +1 -1
  97. package/src/FluentTester/testPages.android.ts +2 -2
  98. package/src/FluentTester/testPages.ios.ts +6 -1
  99. package/src/FluentTester/testPages.macos.ts +6 -1
  100. package/src/FluentTester/testPages.ts +3 -3
  101. package/src/FluentTester/testPages.web.ts +2 -2
  102. package/src/FluentTester/testPages.win32.ts +2 -2
  103. package/src/FluentTester/testPages.windows.ts +2 -2
  104. package/lib/FluentTester/TestComponents/Avatar/JSAvatarTest.d.ts +0 -3
  105. package/lib/FluentTester/TestComponents/Avatar/JSAvatarTest.d.ts.map +0 -1
  106. package/lib/FluentTester/TestComponents/Avatar/JSAvatarTest.js +0 -33
  107. package/lib/FluentTester/TestComponents/Avatar/JSAvatarTest.js.map +0 -1
  108. package/lib-commonjs/FluentTester/TestComponents/Avatar/JSAvatarTest.d.ts +0 -3
  109. package/lib-commonjs/FluentTester/TestComponents/Avatar/JSAvatarTest.d.ts.map +0 -1
  110. package/lib-commonjs/FluentTester/TestComponents/Avatar/JSAvatarTest.js +0 -38
  111. package/lib-commonjs/FluentTester/TestComponents/Avatar/JSAvatarTest.js.map +0 -1
  112. package/src/FluentTester/TestComponents/Avatar/JSAvatarTest.tsx +0 -37
@@ -4,10 +4,10 @@ import {
4
4
  AvatarSizes,
5
5
  AvatarColor,
6
6
  AvatarColors,
7
- JSAvatar,
7
+ Avatar,
8
8
  AvatarActive,
9
9
  AvatarActiveAppearance,
10
- } from '@fluentui-react-native/experimental-avatar';
10
+ } from '@fluentui-react-native/avatar';
11
11
  import { PresenceBadgeStatuses, PresenceBadgeStatus } from '@fluentui-react-native/badge';
12
12
  import { Switch, View, Text, Picker, ColorValue, Platform } from 'react-native';
13
13
  import { satyaPhotoUrl, undefinedText } from './../PersonaCoin/styles';
@@ -100,12 +100,12 @@ export const StandardUsage: FunctionComponent = () => {
100
100
  <StyledPicker prompt="Avatar Color" selected={avatarColor} onChange={onAvatarColorChange} collection={avatarColors} />
101
101
  <StyledPicker prompt="Presence status" selected={presence} onChange={onPresenceChange} collection={allPresences} />
102
102
  </View>
103
- <JSAvatar
103
+ <Avatar
104
104
  accessibilityLabel="Fall-back Icon"
105
105
  accessibilityHint="A picture representing a user"
106
106
  size={imageSize === undefinedText ? undefined : imageSize}
107
107
  />
108
- <JSAvatar
108
+ <Avatar
109
109
  active={active}
110
110
  activeAppearance={activeAppearance}
111
111
  size={imageSize === undefinedText ? undefined : imageSize}
@@ -116,7 +116,7 @@ export const StandardUsage: FunctionComponent = () => {
116
116
  imageUrl={showImage ? satyaPhotoUrl : undefined}
117
117
  avatarColor={avatarColor}
118
118
  />
119
- <JSAvatar
119
+ <Avatar
120
120
  active={active}
121
121
  activeAppearance={activeAppearance}
122
122
  size={imageSize === undefinedText ? undefined : imageSize}
@@ -128,7 +128,7 @@ export const StandardUsage: FunctionComponent = () => {
128
128
  />
129
129
  {svgIconsEnabled && (
130
130
  <>
131
- <JSAvatar
131
+ <Avatar
132
132
  active={active}
133
133
  activeAppearance={activeAppearance}
134
134
  size={imageSize === undefinedText ? undefined : imageSize}
@@ -138,7 +138,7 @@ export const StandardUsage: FunctionComponent = () => {
138
138
  avatarColor={avatarColor}
139
139
  badge={{ status: 'outOfOffice', outOfOffice }}
140
140
  />
141
- <JSAvatar
141
+ <Avatar
142
142
  accessibilityHint="A picture representing a user"
143
143
  active={active}
144
144
  activeAppearance={activeAppearance}
@@ -1,5 +1,5 @@
1
1
  import React, { useState, useMemo } from 'react';
2
- import { JSAvatar, AvatarSize } from '@fluentui-react-native/experimental-avatar';
2
+ import { Avatar, AvatarSize } from '@fluentui-react-native/avatar';
3
3
  import { Switch, View, Text, TextInput, Platform } from 'react-native';
4
4
  import { steveBallmerPhotoUrl } from './../PersonaCoin/styles';
5
5
  import { commonTestStyles as commonStyles } from '../Common/styles';
@@ -38,7 +38,7 @@ export const CustomizeUsage: React.FunctionComponent = () => {
38
38
  ringBackgroundColor,
39
39
  ringThickness: parseInt(ringThickness),
40
40
  };
41
- return JSAvatar.customize(tokens);
41
+ return Avatar.customize(tokens);
42
42
  }, [
43
43
  avatarColor,
44
44
  textColor,
@@ -190,7 +190,7 @@ export const CustomizeUsage: React.FunctionComponent = () => {
190
190
  </View>
191
191
  <View style={{ marginLeft: 20 }}>
192
192
  <Text>Avatar customized with props</Text>
193
- <JSAvatar
193
+ <Avatar
194
194
  active="active"
195
195
  activeAppearance="ring"
196
196
  avatarColor={avatarColor}
@@ -1,10 +1,10 @@
1
- import { JSAvatar } from '@fluentui-react-native/experimental-avatar';
1
+ import { Avatar } from '@fluentui-react-native/avatar';
2
2
  import * as React from 'react';
3
3
  import { View } from 'react-native';
4
4
  import {
5
- JSAVATAR_ACCESSIBILITY_LABEL,
6
- JSAVATAR_ACCESSIBILITY_HINT,
7
- JSAVATAR_ACCESSIBILITY_ROLE,
5
+ AVATAR_ACCESSIBILITY_LABEL,
6
+ AVATAR_ACCESSIBILITY_HINT,
7
+ AVATAR_ACCESSIBILITY_ROLE,
8
8
  AVATAR_TEST_COMPONENT,
9
9
  AVATAR_SECONDARY_TEST_COMPONENT,
10
10
  } from './consts';
@@ -12,13 +12,13 @@ import {
12
12
  export const E2EAvatarTest: React.FunctionComponent = () => {
13
13
  return (
14
14
  <View>
15
- <JSAvatar
15
+ <Avatar
16
16
  testID={AVATAR_TEST_COMPONENT}
17
- accessibilityHint={JSAVATAR_ACCESSIBILITY_HINT}
18
- accessibilityLabel={JSAVATAR_ACCESSIBILITY_LABEL}
19
- accessibilityRole={JSAVATAR_ACCESSIBILITY_ROLE}
17
+ accessibilityHint={AVATAR_ACCESSIBILITY_HINT}
18
+ accessibilityLabel={AVATAR_ACCESSIBILITY_LABEL}
19
+ accessibilityRole={AVATAR_ACCESSIBILITY_ROLE}
20
20
  />
21
- <JSAvatar testID={AVATAR_SECONDARY_TEST_COMPONENT} name="Richard" badge={{ status: 'available' }} />
21
+ <Avatar testID={AVATAR_SECONDARY_TEST_COMPONENT} name="Richard" badge={{ status: 'available' }} />
22
22
  </View>
23
23
  );
24
24
  };
@@ -0,0 +1,136 @@
1
+ import * as React from 'react';
2
+ import { NativeAvatar, Size } from '@fluentui-react-native/experimental-avatar/';
3
+ import { Text } from '@fluentui/react-native';
4
+ import { Stack } from '@fluentui-react-native/stack';
5
+ import { NATIVE_AVATAR_TESTPAGE } from './consts';
6
+ import { Test, TestSection, PlatformStatus } from '../Test';
7
+ import { testImageSource, rainbowGradientSource } from './testImageSources';
8
+ import { commonTestStyles as commonStyles } from '../Common/styles';
9
+ import { Switch, View } from 'react-native';
10
+
11
+ export const BasicAvatar: React.FunctionComponent = () => {
12
+ const [showImage, setShowImage] = React.useState(true);
13
+ const [showPresence, setShowPresence] = React.useState(false);
14
+ const [showRing, setShowRing] = React.useState(false);
15
+
16
+ return (
17
+ <View style={commonStyles.root}>
18
+ {/* settings */}
19
+ <View style={commonStyles.settings}>
20
+ <View style={commonStyles.switch}>
21
+ <Text>Show image</Text>
22
+ <Switch value={showImage} onValueChange={setShowImage} />
23
+ </View>
24
+ <View style={commonStyles.switch}>
25
+ <Text>Show presence</Text>
26
+ <Switch value={showPresence} onValueChange={setShowPresence} />
27
+ </View>
28
+ <View style={commonStyles.switch}>
29
+ <Text>Show Ring</Text>
30
+ <Switch value={showRing} onValueChange={setShowRing} />
31
+ </View>
32
+ </View>
33
+ {/* component under test */}
34
+ <NativeAvatar
35
+ primaryText="Kat Larrson"
36
+ secondaryText="Kat.Larrson@example.com"
37
+ imageSource={showImage ? testImageSource : undefined}
38
+ presence={showPresence ? 'available' : null}
39
+ isRingVisible={showRing}
40
+ size={'xxLarge'}
41
+ />
42
+ </View>
43
+ );
44
+ };
45
+
46
+ export const CustomizeColors: React.FunctionComponent = () => {
47
+ const [showCustomRingColor, setShowCustomRingColor] = React.useState(false);
48
+ const [showCustomForeground, setShowCustomForeground] = React.useState(false);
49
+ const [showCustomBackground, setShowCustomBackground] = React.useState(false);
50
+ const [showCustomBorderImage, setShowCustomBorderImage] = React.useState(false);
51
+ const [showRingGap, setShowRingGap] = React.useState(false);
52
+
53
+ return (
54
+ <View style={commonStyles.root}>
55
+ {/* settings */}
56
+ <View style={commonStyles.settings}>
57
+ <View style={commonStyles.switch}>
58
+ <Text>Custom foreground</Text>
59
+ <Switch value={showCustomForeground} onValueChange={setShowCustomForeground} />
60
+ </View>
61
+ <View style={commonStyles.switch}>
62
+ <Text>Custom background</Text>
63
+ <Switch value={showCustomBackground} onValueChange={setShowCustomBackground} />
64
+ </View>
65
+ <View style={commonStyles.switch}>
66
+ <Text>Custom ring color</Text>
67
+ <Switch value={showCustomRingColor} onValueChange={setShowCustomRingColor} />
68
+ </View>
69
+ <View style={commonStyles.switch}>
70
+ <Text>Custom Border Image</Text>
71
+ <Switch value={showCustomBorderImage} onValueChange={setShowCustomBorderImage} />
72
+ </View>
73
+ <View style={commonStyles.switch}>
74
+ <Text>Show Ring Gap</Text>
75
+ <Switch value={showRingGap} onValueChange={setShowRingGap} />
76
+ </View>
77
+ </View>
78
+ {/* component under test */}
79
+ <NativeAvatar
80
+ primaryText="Kat Larrson"
81
+ secondaryText="Kat.Larrson@example.com"
82
+ ringColor={showCustomRingColor ? 'red' : null}
83
+ foregroundColor={showCustomForeground ? 'green' : null}
84
+ backgroundColor={showCustomBackground ? 'blue' : null}
85
+ customBorderImageSource={showCustomBorderImage ? rainbowGradientSource : null}
86
+ isRingVisible={true}
87
+ hasRingInnerGap={showRingGap}
88
+ size={'xxLarge'}
89
+ />
90
+ </View>
91
+ );
92
+ };
93
+
94
+ const AvatarSizeRamp: React.FunctionComponent = () => {
95
+ const allSizes: Size[] = ['xSmall', 'small', 'medium', 'large', 'xLarge', 'xxLarge'];
96
+
97
+ return (
98
+ <Stack style={{ flexDirection: 'row' }}>
99
+ {allSizes.map((size, index) => (
100
+ <NativeAvatar key={index} primaryText="Kat Larrson" secondaryText="Kat.Larrson@example.com" size={size} />
101
+ ))}
102
+ </Stack>
103
+ );
104
+ };
105
+
106
+ const avatarSections: TestSection[] = [
107
+ {
108
+ name: 'Basic Avatar',
109
+ testID: NATIVE_AVATAR_TESTPAGE,
110
+ component: BasicAvatar,
111
+ },
112
+ {
113
+ name: 'Custom Colors',
114
+ testID: NATIVE_AVATAR_TESTPAGE,
115
+ component: CustomizeColors,
116
+ },
117
+ {
118
+ name: 'Size Ramp',
119
+ component: AvatarSizeRamp,
120
+ },
121
+ ];
122
+
123
+ export const NativeAvatarTest: React.FunctionComponent = () => {
124
+ const status: PlatformStatus = {
125
+ win32Status: 'Backlog',
126
+ uwpStatus: 'Backlog',
127
+ iosStatus: 'Beta',
128
+ macosStatus: 'Experimental',
129
+ androidStatus: 'Backlog',
130
+ };
131
+
132
+ const description =
133
+ 'AvatarView is a visual representation of a user, entity, or group. If an image is supplied, it is cropped to a circle of the requested size. If an image is not supplied, initials are extracted from the given name and email address provided and displayed on a colorful background.';
134
+
135
+ return <Test name="Avatar Test" description={description} sections={avatarSections} status={status} />;
136
+ };
@@ -1,11 +1,12 @@
1
1
  export const HOMEPAGE_AVATAR_BUTTON = 'Homepage_Avatar_Button';
2
- export const AVATAR_TESTPAGE = 'Avatar_TestPage';
3
- export const JSAVATAR_TESTPAGE = 'Avatar_Win32_TestPage';
2
+ export const HOMEPAGE_NATIVE_AVATAR_BUTTON = 'Homepage_Native_Avatar_Button';
3
+ export const NATIVE_AVATAR_TESTPAGE = 'NativeAvatar_TestPage';
4
+ export const AVATAR_TESTPAGE = 'Avatar_Win32_TestPage';
4
5
 
5
- export const JSAVATAR_ACCESSIBILITY_LABEL = 'E2E Avatar Accessibility label';
6
- export const JSAVATAR_ACCESSIBILITY_LABEL_BY_NAME = 'Richard, available';
7
- export const JSAVATAR_ACCESSIBILITY_HINT = 'E2E Avatar Accessibility hint';
8
- export const JSAVATAR_ACCESSIBILITY_ROLE = 'link';
6
+ export const AVATAR_ACCESSIBILITY_LABEL = 'E2E Avatar Accessibility label';
7
+ export const AVATAR_ACCESSIBILITY_LABEL_BY_NAME = 'Richard, available';
8
+ export const AVATAR_ACCESSIBILITY_HINT = 'E2E Avatar Accessibility hint';
9
+ export const AVATAR_ACCESSIBILITY_ROLE = 'link';
9
10
 
10
11
  export const AVATAR_TEST_COMPONENT = 'AVATAR_TEST_COMPONENT';
11
12
  export const AVATAR_SECONDARY_TEST_COMPONENT = 'AVATAR_SECONDARY_TEST_COMPONENT';
@@ -1,3 +1,3 @@
1
+ export * from './NativeAvatarTest';
1
2
  export * from './AvatarTest';
2
- export * from './JSAvatarTest';
3
3
  export * from './consts';
@@ -1,5 +1,5 @@
1
1
  import { TestDescription } from './TestComponents';
2
- import { JSAvatarTest, HOMEPAGE_AVATAR_BUTTON } from './TestComponents/Avatar';
2
+ import { AvatarTest, HOMEPAGE_AVATAR_BUTTON } from './TestComponents/Avatar';
3
3
  import { BadgeTest, HOMEPAGE_BADGE } from './TestComponents/Badge';
4
4
  import { ButtonTest, HOMEPAGE_BUTTON_BUTTON } from './TestComponents/Button';
5
5
  import { CalloutTest, HOMEPAGE_CALLOUT_BUTTON } from './TestComponents/Callout';
@@ -31,7 +31,7 @@ export const tests: TestDescription[] = [
31
31
  },
32
32
  {
33
33
  name: 'Avatar Test',
34
- component: JSAvatarTest,
34
+ component: AvatarTest,
35
35
  testPage: HOMEPAGE_AVATAR_BUTTON,
36
36
  },
37
37
  {
@@ -1,5 +1,5 @@
1
1
  import { TestDescription } from './TestComponents';
2
- import { AvatarTest, HOMEPAGE_AVATAR_BUTTON } from './TestComponents/Avatar';
2
+ import { AvatarTest, NativeAvatarTest, HOMEPAGE_AVATAR_BUTTON, HOMEPAGE_NATIVE_AVATAR_BUTTON } from './TestComponents/Avatar';
3
3
  import { BadgeTest, HOMEPAGE_BADGE } from './TestComponents/Badge';
4
4
  import { ButtonTest, HOMEPAGE_BUTTON_BUTTON } from './TestComponents/Button';
5
5
  import { CheckboxTest, HOMEPAGE_CHECKBOX_BUTTON } from './TestComponents/Checkbox';
@@ -32,6 +32,11 @@ export const tests: TestDescription[] = [
32
32
  component: AvatarTest,
33
33
  testPage: HOMEPAGE_AVATAR_BUTTON,
34
34
  },
35
+ {
36
+ name: 'NativeAvatar Test',
37
+ component: NativeAvatarTest,
38
+ testPage: HOMEPAGE_NATIVE_AVATAR_BUTTON,
39
+ },
35
40
  {
36
41
  name: 'Badge Test',
37
42
  component: BadgeTest,
@@ -1,5 +1,5 @@
1
1
  import { TestDescription } from './TestComponents';
2
- import { AvatarTest, HOMEPAGE_AVATAR_BUTTON } from './TestComponents/Avatar';
2
+ import { AvatarTest, NativeAvatarTest, HOMEPAGE_AVATAR_BUTTON, HOMEPAGE_NATIVE_AVATAR_BUTTON } from './TestComponents/Avatar';
3
3
  import { BadgeTest, HOMEPAGE_BADGE } from './TestComponents/Badge';
4
4
  import { ButtonTest, HOMEPAGE_BUTTON_BUTTON } from './TestComponents/Button';
5
5
  import { CalloutTest, HOMEPAGE_CALLOUT_BUTTON } from './TestComponents/Callout';
@@ -39,6 +39,11 @@ export const tests: TestDescription[] = [
39
39
  component: AvatarTest,
40
40
  testPage: HOMEPAGE_AVATAR_BUTTON,
41
41
  },
42
+ {
43
+ name: 'NativeAvatar Test',
44
+ component: NativeAvatarTest,
45
+ testPage: HOMEPAGE_NATIVE_AVATAR_BUTTON,
46
+ },
42
47
  {
43
48
  name: 'Badge Test',
44
49
  component: BadgeTest,
@@ -1,5 +1,5 @@
1
1
  import { TestDescription } from './TestComponents';
2
- import { AvatarTest, HOMEPAGE_AVATAR_BUTTON } from './TestComponents/Avatar';
2
+ import { NativeAvatarTest, HOMEPAGE_NATIVE_AVATAR_BUTTON } from './TestComponents/Avatar';
3
3
  import { BadgeTest, HOMEPAGE_BADGE } from './TestComponents/Badge';
4
4
  import { ButtonTest, HOMEPAGE_BUTTON_BUTTON } from './TestComponents/Button';
5
5
  import { CheckboxTest, HOMEPAGE_CHECKBOX_BUTTON } from './TestComponents/Checkbox';
@@ -37,8 +37,8 @@ export const tests: TestDescription[] = [
37
37
  },
38
38
  {
39
39
  name: 'Avatar Test',
40
- component: AvatarTest,
41
- testPage: HOMEPAGE_AVATAR_BUTTON,
40
+ component: NativeAvatarTest,
41
+ testPage: HOMEPAGE_NATIVE_AVATAR_BUTTON,
42
42
  },
43
43
  {
44
44
  name: 'Badge Test',
@@ -1,5 +1,5 @@
1
1
  import { TestDescription } from './TestComponents';
2
- import { JSAvatarTest, HOMEPAGE_AVATAR_BUTTON } from './TestComponents/Avatar';
2
+ import { AvatarTest, HOMEPAGE_AVATAR_BUTTON } from './TestComponents/Avatar';
3
3
  import { BadgeTest, HOMEPAGE_BADGE } from './TestComponents/Badge';
4
4
  import { ButtonTest, HOMEPAGE_BUTTON_BUTTON } from './TestComponents/Button';
5
5
  import { CheckboxTest, HOMEPAGE_CHECKBOX_BUTTON } from './TestComponents/Checkbox';
@@ -23,7 +23,7 @@ export const tests: TestDescription[] = [
23
23
  },
24
24
  {
25
25
  name: 'Avatar Test',
26
- component: JSAvatarTest,
26
+ component: AvatarTest,
27
27
  testPage: HOMEPAGE_AVATAR_BUTTON,
28
28
  },
29
29
  {
@@ -1,4 +1,4 @@
1
- import { JSAvatarTest, HOMEPAGE_AVATAR_BUTTON } from './TestComponents/Avatar';
1
+ import { AvatarTest, HOMEPAGE_AVATAR_BUTTON } from './TestComponents/Avatar';
2
2
  import { BadgeTest, HOMEPAGE_BADGE } from './TestComponents/Badge';
3
3
  import { ButtonTest, HOMEPAGE_BUTTON_BUTTON } from './TestComponents/Button';
4
4
  import { CalloutTest, HOMEPAGE_CALLOUT_BUTTON } from './TestComponents/Callout';
@@ -37,7 +37,7 @@ export const tests: TestDescription[] = [
37
37
  },
38
38
  {
39
39
  name: 'Avatar Test',
40
- component: JSAvatarTest,
40
+ component: AvatarTest,
41
41
  testPage: HOMEPAGE_AVATAR_BUTTON,
42
42
  },
43
43
  {
@@ -1,4 +1,4 @@
1
- import { JSAvatarTest, HOMEPAGE_AVATAR_BUTTON } from './TestComponents/Avatar';
1
+ import { AvatarTest, HOMEPAGE_AVATAR_BUTTON } from './TestComponents/Avatar';
2
2
  import { ButtonTest, HOMEPAGE_BUTTON_BUTTON } from './TestComponents/Button';
3
3
  import { BadgeTest, HOMEPAGE_BADGE } from './TestComponents/Badge';
4
4
  import { CalloutTest, HOMEPAGE_CALLOUT_BUTTON } from './TestComponents/Callout';
@@ -25,7 +25,7 @@ export const tests = [
25
25
  },
26
26
  {
27
27
  name: 'Avatar Test',
28
- component: JSAvatarTest,
28
+ component: AvatarTest,
29
29
  testPage: HOMEPAGE_AVATAR_BUTTON,
30
30
  },
31
31
  {
@@ -1,3 +0,0 @@
1
- import * as React from 'react';
2
- export declare const JSAvatarTest: React.FunctionComponent;
3
- //# sourceMappingURL=JSAvatarTest.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"JSAvatarTest.d.ts","sourceRoot":"","sources":["../../../../src/FluentTester/TestComponents/Avatar/JSAvatarTest.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAuB/B,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,iBAahC,CAAC"}
@@ -1,33 +0,0 @@
1
- import * as React from 'react';
2
- import { JSAVATAR_TESTPAGE } from './consts';
3
- import { Test } from '../Test';
4
- import { StandardUsage } from './BasicAvatar';
5
- import { CustomizeUsage } from './CustomizedAvatar';
6
- import { E2EAvatarTest } from './E2EAvatarTest';
7
- var avatarSections = [
8
- {
9
- name: 'Standard Usage',
10
- testID: JSAVATAR_TESTPAGE,
11
- component: StandardUsage,
12
- },
13
- {
14
- name: 'Customize Usage',
15
- component: CustomizeUsage,
16
- },
17
- {
18
- name: 'Avatar E2E',
19
- component: E2EAvatarTest,
20
- },
21
- ];
22
- export var JSAvatarTest = function () {
23
- var status = {
24
- win32Status: 'Experimental',
25
- uwpStatus: 'Backlog',
26
- iosStatus: 'Beta',
27
- macosStatus: 'Experimental',
28
- androidStatus: 'Backlog',
29
- };
30
- var description = 'AvatarView is a visual representation of a user, entity, or group. If an image is supplied, it is cropped to a circle of the requested size. If an image is not supplied, initials are extracted from the given name and email address provided and displayed on a colorful background.';
31
- return React.createElement(Test, { name: "Avatar Test", description: description, sections: avatarSections, status: status });
32
- };
33
- //# sourceMappingURL=JSAvatarTest.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"JSAvatarTest.js","sourceRoot":"","sources":["../../../../src/FluentTester/TestComponents/Avatar/JSAvatarTest.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,EAAE,IAAI,EAA+B,MAAM,SAAS,CAAC;AAC5D,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAC9C,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,IAAM,cAAc,GAAkB;IACpC;QACE,IAAI,EAAE,gBAAgB;QACtB,MAAM,EAAE,iBAAiB;QACzB,SAAS,EAAE,aAAa;KACzB;IACD;QACE,IAAI,EAAE,iBAAiB;QACvB,SAAS,EAAE,cAAc;KAC1B;IACD;QACE,IAAI,EAAE,YAAY;QAClB,SAAS,EAAE,aAAa;KACzB;CACF,CAAC;AAEF,MAAM,CAAC,IAAM,YAAY,GAA4B;IACnD,IAAM,MAAM,GAAmB;QAC7B,WAAW,EAAE,cAAc;QAC3B,SAAS,EAAE,SAAS;QACpB,SAAS,EAAE,MAAM;QACjB,WAAW,EAAE,cAAc;QAC3B,aAAa,EAAE,SAAS;KACzB,CAAC;IAEF,IAAM,WAAW,GACf,yRAAyR,CAAC;IAE5R,OAAO,oBAAC,IAAI,IAAC,IAAI,EAAC,aAAa,EAAC,WAAW,EAAE,WAAW,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,GAAI,CAAC;AACzG,CAAC,CAAC"}
@@ -1,3 +0,0 @@
1
- import * as React from 'react';
2
- export declare const JSAvatarTest: React.FunctionComponent;
3
- //# sourceMappingURL=JSAvatarTest.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"JSAvatarTest.d.ts","sourceRoot":"","sources":["../../../../src/FluentTester/TestComponents/Avatar/JSAvatarTest.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAuB/B,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,iBAahC,CAAC"}
@@ -1,38 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.JSAvatarTest = void 0;
4
- var tslib_1 = require("tslib");
5
- var React = (0, tslib_1.__importStar)(require("react"));
6
- var consts_1 = require("./consts");
7
- var Test_1 = require("../Test");
8
- var BasicAvatar_1 = require("./BasicAvatar");
9
- var CustomizedAvatar_1 = require("./CustomizedAvatar");
10
- var E2EAvatarTest_1 = require("./E2EAvatarTest");
11
- var avatarSections = [
12
- {
13
- name: 'Standard Usage',
14
- testID: consts_1.JSAVATAR_TESTPAGE,
15
- component: BasicAvatar_1.StandardUsage,
16
- },
17
- {
18
- name: 'Customize Usage',
19
- component: CustomizedAvatar_1.CustomizeUsage,
20
- },
21
- {
22
- name: 'Avatar E2E',
23
- component: E2EAvatarTest_1.E2EAvatarTest,
24
- },
25
- ];
26
- var JSAvatarTest = function () {
27
- var status = {
28
- win32Status: 'Experimental',
29
- uwpStatus: 'Backlog',
30
- iosStatus: 'Beta',
31
- macosStatus: 'Experimental',
32
- androidStatus: 'Backlog',
33
- };
34
- var description = 'AvatarView is a visual representation of a user, entity, or group. If an image is supplied, it is cropped to a circle of the requested size. If an image is not supplied, initials are extracted from the given name and email address provided and displayed on a colorful background.';
35
- return React.createElement(Test_1.Test, { name: "Avatar Test", description: description, sections: avatarSections, status: status });
36
- };
37
- exports.JSAvatarTest = JSAvatarTest;
38
- //# sourceMappingURL=JSAvatarTest.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"JSAvatarTest.js","sourceRoot":"","sources":["../../../../src/FluentTester/TestComponents/Avatar/JSAvatarTest.tsx"],"names":[],"mappings":";;;;AAAA,wDAA+B;AAC/B,mCAA6C;AAC7C,gCAA4D;AAC5D,6CAA8C;AAC9C,uDAAoD;AACpD,iDAAgD;AAEhD,IAAM,cAAc,GAAkB;IACpC;QACE,IAAI,EAAE,gBAAgB;QACtB,MAAM,EAAE,0BAAiB;QACzB,SAAS,EAAE,2BAAa;KACzB;IACD;QACE,IAAI,EAAE,iBAAiB;QACvB,SAAS,EAAE,iCAAc;KAC1B;IACD;QACE,IAAI,EAAE,YAAY;QAClB,SAAS,EAAE,6BAAa;KACzB;CACF,CAAC;AAEK,IAAM,YAAY,GAA4B;IACnD,IAAM,MAAM,GAAmB;QAC7B,WAAW,EAAE,cAAc;QAC3B,SAAS,EAAE,SAAS;QACpB,SAAS,EAAE,MAAM;QACjB,WAAW,EAAE,cAAc;QAC3B,aAAa,EAAE,SAAS;KACzB,CAAC;IAEF,IAAM,WAAW,GACf,yRAAyR,CAAC;IAE5R,OAAO,oBAAC,WAAI,IAAC,IAAI,EAAC,aAAa,EAAC,WAAW,EAAE,WAAW,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,GAAI,CAAC;AACzG,CAAC,CAAC;AAbW,QAAA,YAAY,gBAavB"}
@@ -1,37 +0,0 @@
1
- import * as React from 'react';
2
- import { JSAVATAR_TESTPAGE } from './consts';
3
- import { Test, TestSection, PlatformStatus } from '../Test';
4
- import { StandardUsage } from './BasicAvatar';
5
- import { CustomizeUsage } from './CustomizedAvatar';
6
- import { E2EAvatarTest } from './E2EAvatarTest';
7
-
8
- const avatarSections: TestSection[] = [
9
- {
10
- name: 'Standard Usage',
11
- testID: JSAVATAR_TESTPAGE,
12
- component: StandardUsage,
13
- },
14
- {
15
- name: 'Customize Usage',
16
- component: CustomizeUsage,
17
- },
18
- {
19
- name: 'Avatar E2E',
20
- component: E2EAvatarTest,
21
- },
22
- ];
23
-
24
- export const JSAvatarTest: React.FunctionComponent = () => {
25
- const status: PlatformStatus = {
26
- win32Status: 'Experimental',
27
- uwpStatus: 'Backlog',
28
- iosStatus: 'Beta',
29
- macosStatus: 'Experimental',
30
- androidStatus: 'Backlog',
31
- };
32
-
33
- const description =
34
- 'AvatarView is a visual representation of a user, entity, or group. If an image is supplied, it is cropped to a circle of the requested size. If an image is not supplied, initials are extracted from the given name and email address provided and displayed on a colorful background.';
35
-
36
- return <Test name="Avatar Test" description={description} sections={avatarSections} status={status} />;
37
- };