@fluentui-react-native/tester 0.65.5 → 0.67.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.json +64 -1
- package/CHANGELOG.md +29 -2
- package/lib/E2E/Avatar/pages/AvatarPageObject.js +2 -2
- package/lib/E2E/Avatar/pages/AvatarPageObject.js.map +1 -1
- package/lib/E2E/Avatar/specs/Avatar.spec.win.js +4 -4
- package/lib/E2E/Avatar/specs/Avatar.spec.win.js.map +1 -1
- package/lib/FluentTester/TestComponents/Avatar/AvatarTest.d.ts +0 -2
- package/lib/FluentTester/TestComponents/Avatar/AvatarTest.d.ts.map +1 -1
- package/lib/FluentTester/TestComponents/Avatar/AvatarTest.js +10 -60
- package/lib/FluentTester/TestComponents/Avatar/AvatarTest.js.map +1 -1
- package/lib/FluentTester/TestComponents/Avatar/BasicAvatar.js +6 -6
- package/lib/FluentTester/TestComponents/Avatar/BasicAvatar.js.map +1 -1
- package/lib/FluentTester/TestComponents/Avatar/CustomizedAvatar.js +3 -3
- package/lib/FluentTester/TestComponents/Avatar/CustomizedAvatar.js.map +1 -1
- package/lib/FluentTester/TestComponents/Avatar/E2EAvatarTest.js +4 -4
- package/lib/FluentTester/TestComponents/Avatar/E2EAvatarTest.js.map +1 -1
- package/lib/FluentTester/TestComponents/Avatar/NativeAvatarTest.d.ts +5 -0
- package/lib/FluentTester/TestComponents/Avatar/NativeAvatarTest.d.ts.map +1 -0
- package/lib/FluentTester/TestComponents/Avatar/NativeAvatarTest.js +83 -0
- package/lib/FluentTester/TestComponents/Avatar/NativeAvatarTest.js.map +1 -0
- package/lib/FluentTester/TestComponents/Avatar/consts.d.ts +7 -6
- package/lib/FluentTester/TestComponents/Avatar/consts.d.ts.map +1 -1
- package/lib/FluentTester/TestComponents/Avatar/consts.js +7 -6
- package/lib/FluentTester/TestComponents/Avatar/consts.js.map +1 -1
- package/lib/FluentTester/TestComponents/Avatar/index.d.ts +1 -1
- package/lib/FluentTester/TestComponents/Avatar/index.d.ts.map +1 -1
- package/lib/FluentTester/TestComponents/Avatar/index.js +1 -1
- package/lib/FluentTester/TestComponents/Avatar/index.js.map +1 -1
- package/lib/FluentTester/TestComponents/Notification/NotificationTest.d.ts.map +1 -1
- package/lib/FluentTester/TestComponents/Notification/NotificationTest.js +6 -56
- package/lib/FluentTester/TestComponents/Notification/NotificationTest.js.map +1 -1
- package/lib/FluentTester/testPages.android.js +2 -2
- package/lib/FluentTester/testPages.android.js.map +1 -1
- package/lib/FluentTester/testPages.ios.d.ts.map +1 -1
- package/lib/FluentTester/testPages.ios.js +6 -1
- package/lib/FluentTester/testPages.ios.js.map +1 -1
- package/lib/FluentTester/testPages.js +3 -3
- package/lib/FluentTester/testPages.js.map +1 -1
- package/lib/FluentTester/testPages.macos.d.ts.map +1 -1
- package/lib/FluentTester/testPages.macos.js +6 -1
- package/lib/FluentTester/testPages.macos.js.map +1 -1
- package/lib/FluentTester/testPages.web.js +2 -2
- package/lib/FluentTester/testPages.web.js.map +1 -1
- package/lib/FluentTester/testPages.win32.js +2 -2
- package/lib/FluentTester/testPages.win32.js.map +1 -1
- package/lib/FluentTester/testPages.windows.js +2 -2
- package/lib/FluentTester/testPages.windows.js.map +1 -1
- package/lib-commonjs/E2E/Avatar/pages/AvatarPageObject.js +1 -1
- package/lib-commonjs/E2E/Avatar/pages/AvatarPageObject.js.map +1 -1
- package/lib-commonjs/E2E/Avatar/specs/Avatar.spec.win.js +3 -3
- package/lib-commonjs/E2E/Avatar/specs/Avatar.spec.win.js.map +1 -1
- package/lib-commonjs/FluentTester/TestComponents/Avatar/AvatarTest.d.ts +0 -2
- package/lib-commonjs/FluentTester/TestComponents/Avatar/AvatarTest.d.ts.map +1 -1
- package/lib-commonjs/FluentTester/TestComponents/Avatar/AvatarTest.js +11 -63
- package/lib-commonjs/FluentTester/TestComponents/Avatar/AvatarTest.js.map +1 -1
- package/lib-commonjs/FluentTester/TestComponents/Avatar/BasicAvatar.js +8 -8
- package/lib-commonjs/FluentTester/TestComponents/Avatar/BasicAvatar.js.map +1 -1
- package/lib-commonjs/FluentTester/TestComponents/Avatar/CustomizedAvatar.js +3 -3
- package/lib-commonjs/FluentTester/TestComponents/Avatar/CustomizedAvatar.js.map +1 -1
- package/lib-commonjs/FluentTester/TestComponents/Avatar/E2EAvatarTest.js +3 -3
- package/lib-commonjs/FluentTester/TestComponents/Avatar/E2EAvatarTest.js.map +1 -1
- package/lib-commonjs/FluentTester/TestComponents/Avatar/NativeAvatarTest.d.ts +5 -0
- package/lib-commonjs/FluentTester/TestComponents/Avatar/NativeAvatarTest.d.ts.map +1 -0
- package/lib-commonjs/FluentTester/TestComponents/Avatar/NativeAvatarTest.js +90 -0
- package/lib-commonjs/FluentTester/TestComponents/Avatar/NativeAvatarTest.js.map +1 -0
- package/lib-commonjs/FluentTester/TestComponents/Avatar/consts.d.ts +7 -6
- package/lib-commonjs/FluentTester/TestComponents/Avatar/consts.d.ts.map +1 -1
- package/lib-commonjs/FluentTester/TestComponents/Avatar/consts.js +8 -7
- package/lib-commonjs/FluentTester/TestComponents/Avatar/consts.js.map +1 -1
- package/lib-commonjs/FluentTester/TestComponents/Avatar/index.d.ts +1 -1
- package/lib-commonjs/FluentTester/TestComponents/Avatar/index.d.ts.map +1 -1
- package/lib-commonjs/FluentTester/TestComponents/Avatar/index.js +1 -1
- package/lib-commonjs/FluentTester/TestComponents/Avatar/index.js.map +1 -1
- package/lib-commonjs/FluentTester/TestComponents/Notification/NotificationTest.d.ts.map +1 -1
- package/lib-commonjs/FluentTester/TestComponents/Notification/NotificationTest.js +6 -56
- package/lib-commonjs/FluentTester/TestComponents/Notification/NotificationTest.js.map +1 -1
- package/lib-commonjs/FluentTester/testPages.android.js +1 -1
- package/lib-commonjs/FluentTester/testPages.android.js.map +1 -1
- package/lib-commonjs/FluentTester/testPages.ios.d.ts.map +1 -1
- package/lib-commonjs/FluentTester/testPages.ios.js +5 -0
- package/lib-commonjs/FluentTester/testPages.ios.js.map +1 -1
- package/lib-commonjs/FluentTester/testPages.js +2 -2
- package/lib-commonjs/FluentTester/testPages.js.map +1 -1
- package/lib-commonjs/FluentTester/testPages.macos.d.ts.map +1 -1
- package/lib-commonjs/FluentTester/testPages.macos.js +5 -0
- package/lib-commonjs/FluentTester/testPages.macos.js.map +1 -1
- package/lib-commonjs/FluentTester/testPages.web.js +1 -1
- package/lib-commonjs/FluentTester/testPages.web.js.map +1 -1
- package/lib-commonjs/FluentTester/testPages.win32.js +1 -1
- package/lib-commonjs/FluentTester/testPages.win32.js.map +1 -1
- package/lib-commonjs/FluentTester/testPages.windows.js +1 -1
- package/lib-commonjs/FluentTester/testPages.windows.js.map +1 -1
- package/package.json +5 -3
- package/src/E2E/Avatar/pages/AvatarPageObject.ts +2 -2
- package/src/E2E/Avatar/specs/Avatar.spec.win.ts +6 -6
- package/src/FluentTester/TestComponents/Avatar/AvatarTest.tsx +10 -109
- package/src/FluentTester/TestComponents/Avatar/BasicAvatar.tsx +7 -7
- package/src/FluentTester/TestComponents/Avatar/CustomizedAvatar.tsx +3 -3
- package/src/FluentTester/TestComponents/Avatar/E2EAvatarTest.tsx +9 -9
- package/src/FluentTester/TestComponents/Avatar/NativeAvatarTest.tsx +136 -0
- package/src/FluentTester/TestComponents/Avatar/consts.ts +7 -6
- package/src/FluentTester/TestComponents/Avatar/index.ts +1 -1
- package/src/FluentTester/TestComponents/Notification/NotificationTest.tsx +21 -77
- package/src/FluentTester/testPages.android.ts +2 -2
- package/src/FluentTester/testPages.ios.ts +6 -1
- package/src/FluentTester/testPages.macos.ts +6 -1
- package/src/FluentTester/testPages.ts +3 -3
- package/src/FluentTester/testPages.web.ts +2 -2
- package/src/FluentTester/testPages.win32.ts +2 -2
- package/src/FluentTester/testPages.windows.ts +2 -2
- package/lib/FluentTester/TestComponents/Avatar/JSAvatarTest.d.ts +0 -3
- package/lib/FluentTester/TestComponents/Avatar/JSAvatarTest.d.ts.map +0 -1
- package/lib/FluentTester/TestComponents/Avatar/JSAvatarTest.js +0 -33
- package/lib/FluentTester/TestComponents/Avatar/JSAvatarTest.js.map +0 -1
- package/lib-commonjs/FluentTester/TestComponents/Avatar/JSAvatarTest.d.ts +0 -3
- package/lib-commonjs/FluentTester/TestComponents/Avatar/JSAvatarTest.d.ts.map +0 -1
- package/lib-commonjs/FluentTester/TestComponents/Avatar/JSAvatarTest.js +0 -38
- package/lib-commonjs/FluentTester/TestComponents/Avatar/JSAvatarTest.js.map +0 -1
- package/src/FluentTester/TestComponents/Avatar/JSAvatarTest.tsx +0 -37
|
@@ -1,93 +1,37 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { Notification } from '@fluentui-react-native/notification';
|
|
3
3
|
import { Test, TestSection, PlatformStatus } from '../Test';
|
|
4
4
|
|
|
5
|
-
const
|
|
6
|
-
type NotificationVariant = typeof NotificationVariants[number];
|
|
7
|
-
|
|
8
|
-
interface NotificationProps {
|
|
9
|
-
/**
|
|
10
|
-
* Notification variants: 'primary' | 'neutral' |'danger' | 'warning'
|
|
11
|
-
*/
|
|
12
|
-
variant: NotificationVariant;
|
|
13
|
-
startText: string;
|
|
14
|
-
endText: string;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
const Notification = (props: NotificationProps) => {
|
|
18
|
-
const variant = props.variant;
|
|
19
|
-
const startText = props.startText;
|
|
20
|
-
const endText = props.endText;
|
|
21
|
-
|
|
22
|
-
let containerBackgroundColor = 'skyblue';
|
|
23
|
-
let foregroundColor = 'black';
|
|
24
|
-
|
|
25
|
-
switch (variant) {
|
|
26
|
-
case 'primary':
|
|
27
|
-
containerBackgroundColor = 'skyblue';
|
|
28
|
-
break;
|
|
29
|
-
case 'neutral':
|
|
30
|
-
containerBackgroundColor = 'lightgrey';
|
|
31
|
-
break;
|
|
32
|
-
case 'danger':
|
|
33
|
-
containerBackgroundColor = 'pink';
|
|
34
|
-
foregroundColor = 'maroon';
|
|
35
|
-
break;
|
|
36
|
-
case 'warning':
|
|
37
|
-
containerBackgroundColor = 'lightyellow';
|
|
38
|
-
foregroundColor = 'brown';
|
|
39
|
-
break;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
const styles = StyleSheet.create({
|
|
43
|
-
container: {
|
|
44
|
-
borderRadius: 12,
|
|
45
|
-
backgroundColor: containerBackgroundColor,
|
|
46
|
-
|
|
47
|
-
flex: 1,
|
|
48
|
-
flexDirection: 'row',
|
|
49
|
-
justifyContent: 'space-between',
|
|
50
|
-
alignItems: 'center',
|
|
51
|
-
padding: 16,
|
|
52
|
-
},
|
|
53
|
-
start: {
|
|
54
|
-
fontSize: 16,
|
|
55
|
-
color: foregroundColor,
|
|
56
|
-
|
|
57
|
-
flex: 1,
|
|
58
|
-
flexGrow: 1,
|
|
59
|
-
},
|
|
60
|
-
end: {
|
|
61
|
-
fontSize: 16,
|
|
62
|
-
fontWeight: '500',
|
|
63
|
-
color: foregroundColor,
|
|
64
|
-
|
|
65
|
-
marginLeft: 34,
|
|
66
|
-
},
|
|
67
|
-
});
|
|
68
|
-
|
|
5
|
+
const PrimaryTest: React.FunctionComponent = () => {
|
|
69
6
|
return (
|
|
70
|
-
<
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
</View>
|
|
7
|
+
<Notification variant={'primary'} endText="Undo">
|
|
8
|
+
Mail Archived
|
|
9
|
+
</Notification>
|
|
74
10
|
);
|
|
75
11
|
};
|
|
76
12
|
|
|
77
|
-
const PrimaryTest: React.FunctionComponent = () => {
|
|
78
|
-
return <Notification variant={'primary'} startText="Mail Archived" endText="Undo" />;
|
|
79
|
-
};
|
|
80
|
-
|
|
81
13
|
const NeutralTest: React.FunctionComponent = () => {
|
|
82
|
-
return
|
|
14
|
+
return (
|
|
15
|
+
<Notification variant={'neutral'} endText="Sign in">
|
|
16
|
+
Some items require you to sign in to view them
|
|
17
|
+
</Notification>
|
|
18
|
+
);
|
|
83
19
|
};
|
|
84
20
|
|
|
85
21
|
const DangerTest: React.FunctionComponent = () => {
|
|
86
|
-
return
|
|
22
|
+
return (
|
|
23
|
+
<Notification variant={'danger'} endText="Retry">
|
|
24
|
+
There was a problem, and your recent changes may not have saved
|
|
25
|
+
</Notification>
|
|
26
|
+
);
|
|
87
27
|
};
|
|
88
28
|
|
|
89
29
|
const WarningTest: React.FunctionComponent = () => {
|
|
90
|
-
return
|
|
30
|
+
return (
|
|
31
|
+
<Notification variant={'warning'} endText="X">
|
|
32
|
+
Read Only
|
|
33
|
+
</Notification>
|
|
34
|
+
);
|
|
91
35
|
};
|
|
92
36
|
|
|
93
37
|
const notificationSections: TestSection[] = [
|
|
@@ -113,7 +57,7 @@ export const NotificationTest: React.FunctionComponent = () => {
|
|
|
113
57
|
const status: PlatformStatus = {
|
|
114
58
|
win32Status: 'Backlog',
|
|
115
59
|
uwpStatus: 'Backlog',
|
|
116
|
-
iosStatus: '
|
|
60
|
+
iosStatus: 'Experimental',
|
|
117
61
|
macosStatus: 'Backlog',
|
|
118
62
|
androidStatus: 'Backlog',
|
|
119
63
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TestDescription } from './TestComponents';
|
|
2
|
-
import {
|
|
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:
|
|
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 {
|
|
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:
|
|
41
|
-
testPage:
|
|
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 {
|
|
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:
|
|
26
|
+
component: AvatarTest,
|
|
27
27
|
testPage: HOMEPAGE_AVATAR_BUTTON,
|
|
28
28
|
},
|
|
29
29
|
{
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
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:
|
|
40
|
+
component: AvatarTest,
|
|
41
41
|
testPage: HOMEPAGE_AVATAR_BUTTON,
|
|
42
42
|
},
|
|
43
43
|
{
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
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:
|
|
28
|
+
component: AvatarTest,
|
|
29
29
|
testPage: HOMEPAGE_AVATAR_BUTTON,
|
|
30
30
|
},
|
|
31
31
|
{
|
|
@@ -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 +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
|
-
};
|