@fluentui-react-native/tester 0.113.1 → 0.114.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 +54 -33
- package/CHANGELOG.md +11 -2
- package/lib/fluent-tester/src/TestComponents/Avatar/AvatarTest.d.ts.map +1 -1
- package/lib/fluent-tester/src/TestComponents/Avatar/AvatarTest.js +18 -12
- package/lib/fluent-tester/src/TestComponents/Avatar/AvatarTest.js.map +1 -1
- package/lib/fluent-tester/src/TestComponents/Avatar/BasicAvatar.android.d.ts +3 -0
- package/lib/fluent-tester/src/TestComponents/Avatar/BasicAvatar.android.d.ts.map +1 -0
- package/lib/fluent-tester/src/TestComponents/Avatar/BasicAvatar.android.js +36 -0
- package/lib/fluent-tester/src/TestComponents/Avatar/BasicAvatar.android.js.map +1 -0
- package/lib/fluent-tester/src/TestComponents/Common/styles.d.ts +8 -0
- package/lib/fluent-tester/src/TestComponents/Common/styles.d.ts.map +1 -1
- package/lib/fluent-tester/src/TestComponents/Common/styles.js +8 -0
- package/lib/fluent-tester/src/TestComponents/Common/styles.js.map +1 -1
- package/lib-commonjs/fluent-tester/src/TestComponents/Avatar/AvatarTest.d.ts.map +1 -1
- package/lib-commonjs/fluent-tester/src/TestComponents/Avatar/AvatarTest.js +17 -12
- package/lib-commonjs/fluent-tester/src/TestComponents/Avatar/AvatarTest.js.map +1 -1
- package/lib-commonjs/fluent-tester/src/TestComponents/Avatar/BasicAvatar.android.d.ts +3 -0
- package/lib-commonjs/fluent-tester/src/TestComponents/Avatar/BasicAvatar.android.d.ts.map +1 -0
- package/lib-commonjs/fluent-tester/src/TestComponents/Avatar/BasicAvatar.android.js +41 -0
- package/lib-commonjs/fluent-tester/src/TestComponents/Avatar/BasicAvatar.android.js.map +1 -0
- package/lib-commonjs/fluent-tester/src/TestComponents/Common/styles.d.ts +8 -0
- package/lib-commonjs/fluent-tester/src/TestComponents/Common/styles.d.ts.map +1 -1
- package/lib-commonjs/fluent-tester/src/TestComponents/Common/styles.js +8 -0
- package/lib-commonjs/fluent-tester/src/TestComponents/Common/styles.js.map +1 -1
- package/package.json +2 -2
- package/src/TestComponents/Avatar/AvatarTest.tsx +15 -9
- package/src/TestComponents/Avatar/BasicAvatar.android.tsx +112 -0
- package/src/TestComponents/Common/styles.ts +8 -1
package/CHANGELOG.json
CHANGED
|
@@ -2,7 +2,28 @@
|
|
|
2
2
|
"name": "@fluentui-react-native/tester",
|
|
3
3
|
"entries": [
|
|
4
4
|
{
|
|
5
|
-
"date": "Tue, 06 Dec 2022
|
|
5
|
+
"date": "Tue, 06 Dec 2022 21:28:23 GMT",
|
|
6
|
+
"tag": "@fluentui-react-native/tester_v0.114.0",
|
|
7
|
+
"version": "0.114.0",
|
|
8
|
+
"comments": {
|
|
9
|
+
"minor": [
|
|
10
|
+
{
|
|
11
|
+
"author": "email not defined",
|
|
12
|
+
"package": "@fluentui-react-native/tester",
|
|
13
|
+
"commit": "194db935512b14a024c78b97466f6bf5cd94074b",
|
|
14
|
+
"comment": "Updated tester styles"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"author": "beachball",
|
|
18
|
+
"package": "@fluentui-react-native/tester",
|
|
19
|
+
"comment": "Bump @fluentui-react-native/avatar to v1.5.0",
|
|
20
|
+
"commit": "8cb5ca9b91ac526cb16d3ffad0a3f963871fdb6b"
|
|
21
|
+
}
|
|
22
|
+
]
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"date": "Tue, 06 Dec 2022 16:59:54 GMT",
|
|
6
27
|
"tag": "@fluentui-react-native/tester_v0.113.1",
|
|
7
28
|
"version": "0.113.1",
|
|
8
29
|
"comments": {
|
|
@@ -11,193 +32,193 @@
|
|
|
11
32
|
"author": "beachball",
|
|
12
33
|
"package": "@fluentui-react-native/tester",
|
|
13
34
|
"comment": "Bump @fluentui-react-native/android-theme to v0.15.0",
|
|
14
|
-
"commit": "
|
|
35
|
+
"commit": "194db935512b14a024c78b97466f6bf5cd94074b"
|
|
15
36
|
},
|
|
16
37
|
{
|
|
17
38
|
"author": "beachball",
|
|
18
39
|
"package": "@fluentui-react-native/tester",
|
|
19
40
|
"comment": "Bump @fluentui-react-native/apple-theme to v0.17.1",
|
|
20
|
-
"commit": "
|
|
41
|
+
"commit": "194db935512b14a024c78b97466f6bf5cd94074b"
|
|
21
42
|
},
|
|
22
43
|
{
|
|
23
44
|
"author": "beachball",
|
|
24
45
|
"package": "@fluentui-react-native/tester",
|
|
25
46
|
"comment": "Bump @fluentui-react-native/avatar to v1.4.1",
|
|
26
|
-
"commit": "
|
|
47
|
+
"commit": "194db935512b14a024c78b97466f6bf5cd94074b"
|
|
27
48
|
},
|
|
28
49
|
{
|
|
29
50
|
"author": "beachball",
|
|
30
51
|
"package": "@fluentui-react-native/tester",
|
|
31
52
|
"comment": "Bump @fluentui-react-native/badge to v0.4.1",
|
|
32
|
-
"commit": "
|
|
53
|
+
"commit": "194db935512b14a024c78b97466f6bf5cd94074b"
|
|
33
54
|
},
|
|
34
55
|
{
|
|
35
56
|
"author": "beachball",
|
|
36
57
|
"package": "@fluentui-react-native/tester",
|
|
37
58
|
"comment": "Bump @fluentui-react-native/button to v0.32.6",
|
|
38
|
-
"commit": "
|
|
59
|
+
"commit": "194db935512b14a024c78b97466f6bf5cd94074b"
|
|
39
60
|
},
|
|
40
61
|
{
|
|
41
62
|
"author": "beachball",
|
|
42
63
|
"package": "@fluentui-react-native/tester",
|
|
43
64
|
"comment": "Bump @fluentui-react-native/default-theme to v0.16.15",
|
|
44
|
-
"commit": "
|
|
65
|
+
"commit": "194db935512b14a024c78b97466f6bf5cd94074b"
|
|
45
66
|
},
|
|
46
67
|
{
|
|
47
68
|
"author": "beachball",
|
|
48
69
|
"package": "@fluentui-react-native/tester",
|
|
49
70
|
"comment": "Bump @fluentui-react-native/dropdown to v0.7.1",
|
|
50
|
-
"commit": "
|
|
71
|
+
"commit": "194db935512b14a024c78b97466f6bf5cd94074b"
|
|
51
72
|
},
|
|
52
73
|
{
|
|
53
74
|
"author": "beachball",
|
|
54
75
|
"package": "@fluentui-react-native/tester",
|
|
55
76
|
"comment": "Bump @fluentui-react-native/experimental-activity-indicator to v0.7.1",
|
|
56
|
-
"commit": "
|
|
77
|
+
"commit": "194db935512b14a024c78b97466f6bf5cd94074b"
|
|
57
78
|
},
|
|
58
79
|
{
|
|
59
80
|
"author": "beachball",
|
|
60
81
|
"package": "@fluentui-react-native/tester",
|
|
61
82
|
"comment": "Bump @fluentui-react-native/experimental-avatar to v0.16.28",
|
|
62
|
-
"commit": "
|
|
83
|
+
"commit": "194db935512b14a024c78b97466f6bf5cd94074b"
|
|
63
84
|
},
|
|
64
85
|
{
|
|
65
86
|
"author": "beachball",
|
|
66
87
|
"package": "@fluentui-react-native/tester",
|
|
67
88
|
"comment": "Bump @fluentui-react-native/experimental-button to v0.16.64",
|
|
68
|
-
"commit": "
|
|
89
|
+
"commit": "194db935512b14a024c78b97466f6bf5cd94074b"
|
|
69
90
|
},
|
|
70
91
|
{
|
|
71
92
|
"author": "beachball",
|
|
72
93
|
"package": "@fluentui-react-native/tester",
|
|
73
94
|
"comment": "Bump @fluentui-react-native/experimental-checkbox to v0.13.10",
|
|
74
|
-
"commit": "
|
|
95
|
+
"commit": "194db935512b14a024c78b97466f6bf5cd94074b"
|
|
75
96
|
},
|
|
76
97
|
{
|
|
77
98
|
"author": "beachball",
|
|
78
99
|
"package": "@fluentui-react-native/tester",
|
|
79
100
|
"comment": "Bump @fluentui-react-native/experimental-expander to v0.5.1",
|
|
80
|
-
"commit": "
|
|
101
|
+
"commit": "194db935512b14a024c78b97466f6bf5cd94074b"
|
|
81
102
|
},
|
|
82
103
|
{
|
|
83
104
|
"author": "beachball",
|
|
84
105
|
"package": "@fluentui-react-native/tester",
|
|
85
106
|
"comment": "Bump @fluentui-react-native/experimental-icon to v0.1.1",
|
|
86
|
-
"commit": "
|
|
107
|
+
"commit": "194db935512b14a024c78b97466f6bf5cd94074b"
|
|
87
108
|
},
|
|
88
109
|
{
|
|
89
110
|
"author": "beachball",
|
|
90
111
|
"package": "@fluentui-react-native/tester",
|
|
91
112
|
"comment": "Bump @fluentui-react-native/experimental-link to v0.2.6",
|
|
92
|
-
"commit": "
|
|
113
|
+
"commit": "194db935512b14a024c78b97466f6bf5cd94074b"
|
|
93
114
|
},
|
|
94
115
|
{
|
|
95
116
|
"author": "beachball",
|
|
96
117
|
"package": "@fluentui-react-native/tester",
|
|
97
118
|
"comment": "Bump @fluentui-react-native/experimental-menu-button to v0.6.1",
|
|
98
|
-
"commit": "
|
|
119
|
+
"commit": "194db935512b14a024c78b97466f6bf5cd94074b"
|
|
99
120
|
},
|
|
100
121
|
{
|
|
101
122
|
"author": "beachball",
|
|
102
123
|
"package": "@fluentui-react-native/tester",
|
|
103
124
|
"comment": "Bump @fluentui-react-native/experimental-radio-group to v0.8.5",
|
|
104
|
-
"commit": "
|
|
125
|
+
"commit": "194db935512b14a024c78b97466f6bf5cd94074b"
|
|
105
126
|
},
|
|
106
127
|
{
|
|
107
128
|
"author": "beachball",
|
|
108
129
|
"package": "@fluentui-react-native/tester",
|
|
109
130
|
"comment": "Bump @fluentui-react-native/experimental-shadow to v0.2.48",
|
|
110
|
-
"commit": "
|
|
131
|
+
"commit": "194db935512b14a024c78b97466f6bf5cd94074b"
|
|
111
132
|
},
|
|
112
133
|
{
|
|
113
134
|
"author": "beachball",
|
|
114
135
|
"package": "@fluentui-react-native/tester",
|
|
115
136
|
"comment": "Bump @fluentui-react-native/experimental-shimmer to v0.8.1",
|
|
116
|
-
"commit": "
|
|
137
|
+
"commit": "194db935512b14a024c78b97466f6bf5cd94074b"
|
|
117
138
|
},
|
|
118
139
|
{
|
|
119
140
|
"author": "beachball",
|
|
120
141
|
"package": "@fluentui-react-native/tester",
|
|
121
142
|
"comment": "Bump @fluentui-react-native/experimental-tabs to v0.8.9",
|
|
122
|
-
"commit": "
|
|
143
|
+
"commit": "194db935512b14a024c78b97466f6bf5cd94074b"
|
|
123
144
|
},
|
|
124
145
|
{
|
|
125
146
|
"author": "beachball",
|
|
126
147
|
"package": "@fluentui-react-native/tester",
|
|
127
148
|
"comment": "Bump @fluentui-react-native/experimental-text to v0.11.28",
|
|
128
|
-
"commit": "
|
|
149
|
+
"commit": "194db935512b14a024c78b97466f6bf5cd94074b"
|
|
129
150
|
},
|
|
130
151
|
{
|
|
131
152
|
"author": "beachball",
|
|
132
153
|
"package": "@fluentui-react-native/tester",
|
|
133
154
|
"comment": "Bump @fluentui-react-native/framework to v0.8.24",
|
|
134
|
-
"commit": "
|
|
155
|
+
"commit": "194db935512b14a024c78b97466f6bf5cd94074b"
|
|
135
156
|
},
|
|
136
157
|
{
|
|
137
158
|
"author": "beachball",
|
|
138
159
|
"package": "@fluentui-react-native/tester",
|
|
139
160
|
"comment": "Bump @fluentui-react-native/icon to v0.16.1",
|
|
140
|
-
"commit": "
|
|
161
|
+
"commit": "194db935512b14a024c78b97466f6bf5cd94074b"
|
|
141
162
|
},
|
|
142
163
|
{
|
|
143
164
|
"author": "beachball",
|
|
144
165
|
"package": "@fluentui-react-native/tester",
|
|
145
166
|
"comment": "Bump @fluentui-react-native/interactive-hooks to v0.21.5",
|
|
146
|
-
"commit": "
|
|
167
|
+
"commit": "194db935512b14a024c78b97466f6bf5cd94074b"
|
|
147
168
|
},
|
|
148
169
|
{
|
|
149
170
|
"author": "beachball",
|
|
150
171
|
"package": "@fluentui-react-native/tester",
|
|
151
172
|
"comment": "Bump @fluentui-react-native/menu to v1.1.1",
|
|
152
|
-
"commit": "
|
|
173
|
+
"commit": "194db935512b14a024c78b97466f6bf5cd94074b"
|
|
153
174
|
},
|
|
154
175
|
{
|
|
155
176
|
"author": "beachball",
|
|
156
177
|
"package": "@fluentui-react-native/tester",
|
|
157
178
|
"comment": "Bump @fluentui-react-native/notification to v0.20.1",
|
|
158
|
-
"commit": "
|
|
179
|
+
"commit": "194db935512b14a024c78b97466f6bf5cd94074b"
|
|
159
180
|
},
|
|
160
181
|
{
|
|
161
182
|
"author": "beachball",
|
|
162
183
|
"package": "@fluentui-react-native/tester",
|
|
163
184
|
"comment": "Bump @fluentui-react-native/stack to v0.7.30",
|
|
164
|
-
"commit": "
|
|
185
|
+
"commit": "194db935512b14a024c78b97466f6bf5cd94074b"
|
|
165
186
|
},
|
|
166
187
|
{
|
|
167
188
|
"author": "beachball",
|
|
168
189
|
"package": "@fluentui-react-native/tester",
|
|
169
190
|
"comment": "Bump @fluentui-react-native/switch to v0.7.9",
|
|
170
|
-
"commit": "
|
|
191
|
+
"commit": "194db935512b14a024c78b97466f6bf5cd94074b"
|
|
171
192
|
},
|
|
172
193
|
{
|
|
173
194
|
"author": "beachball",
|
|
174
195
|
"package": "@fluentui-react-native/tester",
|
|
175
196
|
"comment": "Bump @fluentui-react-native/text to v0.18.1",
|
|
176
|
-
"commit": "
|
|
197
|
+
"commit": "194db935512b14a024c78b97466f6bf5cd94074b"
|
|
177
198
|
},
|
|
178
199
|
{
|
|
179
200
|
"author": "beachball",
|
|
180
201
|
"package": "@fluentui-react-native/tester",
|
|
181
202
|
"comment": "Bump @fluentui-react-native/theme-tokens to v0.22.0",
|
|
182
|
-
"commit": "
|
|
203
|
+
"commit": "194db935512b14a024c78b97466f6bf5cd94074b"
|
|
183
204
|
},
|
|
184
205
|
{
|
|
185
206
|
"author": "beachball",
|
|
186
207
|
"package": "@fluentui-react-native/tester",
|
|
187
208
|
"comment": "Bump @fluentui-react-native/win32-theme to v0.24.2",
|
|
188
|
-
"commit": "
|
|
209
|
+
"commit": "194db935512b14a024c78b97466f6bf5cd94074b"
|
|
189
210
|
},
|
|
190
211
|
{
|
|
191
212
|
"author": "beachball",
|
|
192
213
|
"package": "@fluentui-react-native/tester",
|
|
193
214
|
"comment": "Bump @fluentui/react-native to v0.33.10",
|
|
194
|
-
"commit": "
|
|
215
|
+
"commit": "194db935512b14a024c78b97466f6bf5cd94074b"
|
|
195
216
|
},
|
|
196
217
|
{
|
|
197
218
|
"author": "beachball",
|
|
198
219
|
"package": "@fluentui-react-native/tester",
|
|
199
220
|
"comment": "Bump @fluentui-react-native/focus-zone to v0.11.11",
|
|
200
|
-
"commit": "
|
|
221
|
+
"commit": "194db935512b14a024c78b97466f6bf5cd94074b"
|
|
201
222
|
}
|
|
202
223
|
]
|
|
203
224
|
}
|
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,21 @@
|
|
|
1
1
|
# Change Log - @fluentui-react-native/tester
|
|
2
2
|
|
|
3
|
-
This log was last generated on Tue, 06 Dec 2022
|
|
3
|
+
This log was last generated on Tue, 06 Dec 2022 21:28:23 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
+
## 0.114.0
|
|
8
|
+
|
|
9
|
+
Tue, 06 Dec 2022 21:28:23 GMT
|
|
10
|
+
|
|
11
|
+
### Minor changes
|
|
12
|
+
|
|
13
|
+
- Updated tester styles (email not defined)
|
|
14
|
+
- Bump @fluentui-react-native/avatar to v1.5.0
|
|
15
|
+
|
|
7
16
|
## 0.113.1
|
|
8
17
|
|
|
9
|
-
Tue, 06 Dec 2022 16:
|
|
18
|
+
Tue, 06 Dec 2022 16:59:54 GMT
|
|
10
19
|
|
|
11
20
|
### Patches
|
|
12
21
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AvatarTest.d.ts","sourceRoot":"","sources":["../../../../../src/TestComponents/Avatar/AvatarTest.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"AvatarTest.d.ts","sourceRoot":"","sources":["../../../../../src/TestComponents/Avatar/AvatarTest.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AA6B/B,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,iBAe9B,CAAC"}
|
|
@@ -1,31 +1,37 @@
|
|
|
1
|
+
import { __spreadArray } from "tslib";
|
|
1
2
|
import * as React from 'react';
|
|
2
3
|
import { AVATAR_TESTPAGE } from './consts';
|
|
3
4
|
import { Test } from '../Test';
|
|
4
5
|
import { StandardUsage } from './BasicAvatar';
|
|
5
6
|
import { CustomizeUsage } from './CustomizedAvatar';
|
|
6
7
|
import { E2EAvatarTest } from './E2EAvatarTest';
|
|
7
|
-
|
|
8
|
+
import { Platform } from 'react-native';
|
|
9
|
+
var avatarSections = __spreadArray([
|
|
8
10
|
{
|
|
9
11
|
name: 'Standard Usage',
|
|
10
12
|
testID: AVATAR_TESTPAGE,
|
|
11
13
|
component: StandardUsage,
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
14
|
+
}
|
|
15
|
+
], Platform.select({
|
|
16
|
+
android: [null],
|
|
17
|
+
default: [
|
|
18
|
+
{
|
|
19
|
+
name: 'Customize Usage',
|
|
20
|
+
component: CustomizeUsage,
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
name: 'Avatar E2E',
|
|
24
|
+
component: E2EAvatarTest,
|
|
25
|
+
},
|
|
26
|
+
],
|
|
27
|
+
}), true);
|
|
22
28
|
export var AvatarTest = function () {
|
|
23
29
|
var status = {
|
|
24
30
|
win32Status: 'Experimental',
|
|
25
31
|
uwpStatus: 'Backlog',
|
|
26
32
|
iosStatus: 'Beta',
|
|
27
33
|
macosStatus: 'Experimental',
|
|
28
|
-
androidStatus: '
|
|
34
|
+
androidStatus: 'Experimental',
|
|
29
35
|
};
|
|
30
36
|
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
37
|
var spec = 'https://github.com/microsoft/fluentui-react-native/blob/main/packages/components/Avatar/SPEC.md';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AvatarTest.js","sourceRoot":"","sources":["../../../../../src/TestComponents/Avatar/AvatarTest.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAC3C,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;
|
|
1
|
+
{"version":3,"file":"AvatarTest.js","sourceRoot":"","sources":["../../../../../src/TestComponents/Avatar/AvatarTest.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAC3C,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;AAChD,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAExC,IAAM,cAAc;IAClB;QACE,IAAI,EAAE,gBAAgB;QACtB,MAAM,EAAE,eAAe;QACvB,SAAS,EAAE,aAAa;KACzB;GACE,QAAQ,CAAC,MAAM,CAAC;IACjB,OAAO,EAAE,CAAC,IAAI,CAAC;IACf,OAAO,EAAE;QACP;YACE,IAAI,EAAE,iBAAiB;YACvB,SAAS,EAAE,cAAc;SAC1B;QACD;YACE,IAAI,EAAE,YAAY;YAClB,SAAS,EAAE,aAAa;SACzB;KACF;CACF,CAAC,OACH,CAAC;AAEF,MAAM,CAAC,IAAM,UAAU,GAA4B;IACjD,IAAM,MAAM,GAAmB;QAC7B,WAAW,EAAE,cAAc;QAC3B,SAAS,EAAE,SAAS;QACpB,SAAS,EAAE,MAAM;QACjB,WAAW,EAAE,cAAc;QAC3B,aAAa,EAAE,cAAc;KAC9B,CAAC;IAEF,IAAM,WAAW,GACf,yRAAyR,CAAC;IAE5R,IAAM,IAAI,GAAG,iGAAiG,CAAC;IAE/G,OAAO,oBAAC,IAAI,IAAC,IAAI,EAAC,aAAa,EAAC,WAAW,EAAE,WAAW,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,GAAI,CAAC;AACrH,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BasicAvatar.android.d.ts","sourceRoot":"","sources":["../../../../../src/TestComponents/Avatar/BasicAvatar.android.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAMjD,eAAO,MAAM,aAAa,EAAE,iBAyG3B,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Avatar } from '@fluentui-react-native/avatar';
|
|
3
|
+
import { View } from 'react-native';
|
|
4
|
+
import { steveBallmerPhotoUrl } from './../PersonaCoin/styles';
|
|
5
|
+
import { mobileStyles } from '../Common/styles';
|
|
6
|
+
export var StandardUsage = function () {
|
|
7
|
+
return (React.createElement(View, { style: { paddingBottom: 40 } },
|
|
8
|
+
React.createElement(View, { style: mobileStyles.testVariants },
|
|
9
|
+
React.createElement(Avatar, { badge: { status: 'available' }, avatarColor: 'brand', size: 40 }),
|
|
10
|
+
React.createElement(Avatar, { size: 56, avatarColor: 'brand' }),
|
|
11
|
+
React.createElement(Avatar, { active: "active", activeAppearance: "ring", size: 56, avatarColor: 'brand' })),
|
|
12
|
+
React.createElement(View, { style: mobileStyles.testVariants },
|
|
13
|
+
React.createElement(Avatar, { size: 56, badge: { status: 'available' }, avatarColor: 'brandInverted' }),
|
|
14
|
+
React.createElement(Avatar, { size: 56, avatarColor: 'brandInverted' }),
|
|
15
|
+
React.createElement(Avatar, { active: "active", activeAppearance: "ring", size: 56, avatarColor: 'brandInverted' })),
|
|
16
|
+
React.createElement(View, { style: mobileStyles.testVariants },
|
|
17
|
+
React.createElement(Avatar, { size: 56, badge: { status: 'available' } }),
|
|
18
|
+
React.createElement(Avatar, { accessibilityLabel: "Fall-back Icon", accessibilityHint: "A picture representing a user", size: 56 }),
|
|
19
|
+
React.createElement(Avatar, { accessibilityLabel: "Fall-back Icon", accessibilityHint: "A picture representing a user", size: 56, activeAppearance: "ring", active: "active" })),
|
|
20
|
+
React.createElement(View, { style: mobileStyles.testVariants },
|
|
21
|
+
React.createElement(Avatar, { size: 56, badge: { status: 'available' }, avatarColor: 'accent' }),
|
|
22
|
+
React.createElement(Avatar, { accessibilityLabel: "Fall-back Icon", accessibilityHint: "A picture representing a user", size: 56, avatarColor: 'accent' }),
|
|
23
|
+
React.createElement(Avatar, { accessibilityLabel: "Fall-back Icon", accessibilityHint: "A picture representing a user", size: 56, activeAppearance: "ring", active: "active", avatarColor: 'accent' })),
|
|
24
|
+
React.createElement(View, { style: mobileStyles.testVariants },
|
|
25
|
+
React.createElement(Avatar, { size: 56, badge: { status: 'outOfOffice' }, name: "* Richard Faynman *" }),
|
|
26
|
+
React.createElement(Avatar, { size: 56, name: "* Annie Markus *", avatarColor: 'colorful' }),
|
|
27
|
+
React.createElement(Avatar, { active: "active", activeAppearance: "ring", size: 56, name: "* Keshav Madhav *", avatarColor: 'colorful' })),
|
|
28
|
+
React.createElement(View, { style: mobileStyles.testVariants },
|
|
29
|
+
React.createElement(Avatar, { size: 56, badge: { status: 'outOfOffice' }, name: "* Richard Faynman *", imageUrl: steveBallmerPhotoUrl }),
|
|
30
|
+
React.createElement(Avatar, { size: 56, imageUrl: steveBallmerPhotoUrl, avatarColor: 'colorful' }),
|
|
31
|
+
React.createElement(Avatar, { active: "active", activeAppearance: "ring", size: 56, name: "* Richard Faynman *", imageUrl: steveBallmerPhotoUrl })),
|
|
32
|
+
React.createElement(View, { style: mobileStyles.testVariants },
|
|
33
|
+
React.createElement(Avatar, { size: 56, initials: "20", avatarColor: 'colorful' }),
|
|
34
|
+
React.createElement(Avatar, { size: 56, shape: 'square', avatarColor: 'colorful', name: "*Annie Martha*" }))));
|
|
35
|
+
};
|
|
36
|
+
//# sourceMappingURL=BasicAvatar.android.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BasicAvatar.android.js","sourceRoot":"","sources":["../../../../../src/TestComponents/Avatar/BasicAvatar.android.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AACjD,OAAO,EAAE,MAAM,EAAE,MAAM,+BAA+B,CAAC;AACvD,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACpC,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAEhD,MAAM,CAAC,IAAM,aAAa,GAAsB;IAC9C,OAAO,CACL,oBAAC,IAAI,IAAC,KAAK,EAAE,EAAE,aAAa,EAAE,EAAE,EAAE;QAChC,oBAAC,IAAI,IAAC,KAAK,EAAE,YAAY,CAAC,YAAY;YAIpC,oBAAC,MAAM,IAAC,KAAK,EAAE,EAAE,MAAM,EAAE,WAAW,EAAE,EAAE,WAAW,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE,GAAI;YAG1E,oBAAC,MAAM,IAAC,IAAI,EAAE,EAAE,EAAE,WAAW,EAAE,OAAO,GAAI;YAG1C,oBAAC,MAAM,IAAC,MAAM,EAAC,QAAQ,EAAC,gBAAgB,EAAC,MAAM,EAAC,IAAI,EAAE,EAAE,EAAE,WAAW,EAAE,OAAO,GAAI,CAC7E;QAEP,oBAAC,IAAI,IAAC,KAAK,EAAE,YAAY,CAAC,YAAY;YAIpC,oBAAC,MAAM,IAAC,IAAI,EAAE,EAAE,EAAE,KAAK,EAAE,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: {
|
|
|
124
124
|
flexDirection: "column";
|
|
125
125
|
justifyContent: "space-between";
|
|
126
126
|
};
|
|
127
|
+
testVariants: {
|
|
128
|
+
flexDirection: "row";
|
|
129
|
+
marginHorizontal: number;
|
|
130
|
+
paddingTop: number;
|
|
131
|
+
paddingBottom: number;
|
|
132
|
+
flex: number;
|
|
133
|
+
justifyContent: "space-evenly";
|
|
134
|
+
};
|
|
127
135
|
testList: {
|
|
128
136
|
width: string;
|
|
129
137
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../src/TestComponents/Common/styles.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAE3D,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2D3B,CAAC;AAEH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiE7B,CAAC;AAEH,eAAO,MAAM,UAAU,EAAE,WAAW,CAAC,OAAO,CAM3C,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,WAAW,CAAC,OAAO,CAIpD,CAAC;AAEF,eAAO,MAAM,YAAY
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../src/TestComponents/Common/styles.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAE3D,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2D3B,CAAC;AAEH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiE7B,CAAC;AAEH,eAAO,MAAM,UAAU,EAAE,WAAW,CAAC,OAAO,CAM3C,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,WAAW,CAAC,OAAO,CAIpD,CAAC;AAEF,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;CAyBvB,CAAC;AAEH,eAAO,MAAM,wBAAwB;;;IAAsC,CAAC"}
|
|
@@ -132,6 +132,14 @@ export var mobileStyles = StyleSheet.create({
|
|
|
132
132
|
flexDirection: 'column',
|
|
133
133
|
justifyContent: 'space-between',
|
|
134
134
|
},
|
|
135
|
+
testVariants: {
|
|
136
|
+
flexDirection: 'row',
|
|
137
|
+
marginHorizontal: 10,
|
|
138
|
+
paddingTop: 10,
|
|
139
|
+
paddingBottom: 5,
|
|
140
|
+
flex: 1,
|
|
141
|
+
justifyContent: 'space-evenly',
|
|
142
|
+
},
|
|
135
143
|
testList: {
|
|
136
144
|
width: '100%',
|
|
137
145
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../../src/TestComponents/Common/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAG1C,MAAM,CAAC,IAAM,gBAAgB,GAAG,UAAU,CAAC,MAAM,CAAC;IAChD,IAAI,EAAE;QACJ,SAAS,EAAE,EAAE;QACb,WAAW,EAAE,EAAE;QACf,aAAa,EAAE,QAAQ;QACvB,UAAU,EAAE,YAAY;KACzB;IACD,IAAI,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE;IACjB,MAAM,EAAE;QACN,cAAc,EAAE,CAAC;QACjB,QAAQ,EAAE,EAAE;KACb;IACD,OAAO,EAAE;QACP,QAAQ,EAAE,EAAE;QACZ,UAAU,EAAE,MAAM;QAClB,KAAK,EAAE,SAAS;QAChB,SAAS,EAAE,EAAE;KACd;IACD,cAAc,EAAE;QACd,MAAM,EAAE,GAAG;QACX,aAAa,EAAE,KAAK;QACpB,cAAc,EAAE,cAAc;KAC/B;IACD,QAAQ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Q;QACvB,UAAU,EAAE,SAAS;KACtB;IAED,eAAe,EAAE;QACf,aAAa,EAAE,QAAQ;QACvB,UAAU,EAAE,SAAS;QACrB,eAAe;QACf,cAAc;KACf;IAED,mBAAmB,EAAE;QACnB,MAAM,EAAE,GAAG;QACX,KAAK,EAAE,GAAG;QACV,UAAU,EAAE,CAAC;QACb,QAAQ,EAAE,CAAC;QACX,aAAa,EAAE,QAAQ;KACxB;IAED,YAAY,EAAE;QACZ,KAAK,EAAE,MAAM;QACb,YAAY,EAAE,CAAC;QACf,cAAc,EAAE,YAAY;KAC7B;IAED,iBAAiB,EAAE,EAAE,gBAAgB,EAAE,CAAC,EAAE;IAE1C,WAAW,EAAE;QACX,QAAQ,EAAE,CAAC;KACZ;IAED,MAAM,EAAE;QACN,SAAS,EAAE,QAAQ;QACnB,QAAQ,EAAE,EAAE;KACb;CACF,CAAC,CAAC;AAEH,MAAM,CAAC,IAAM,UAAU,GAAyB;IAC9C,WAAW,EAAE,CAAC;IACd,WAAW,EAAE,SAAS;IACtB,eAAe,EAAE,CAAC;IAClB,iBAAiB,EAAE,EAAE;IACrB,MAAM,EAAE,CAAC;CACV,CAAC;AAEF,MAAM,CAAC,IAAM,mBAAmB,GAAyB;IACvD,MAAM,EAAE,GAAG;IACX,aAAa,EAAE,KAAK;IACpB,cAAc,EAAE,cAAc;CAC/B,CAAC;AAEF,MAAM,CAAC,IAAM,YAAY,GAAG,UAAU,CAAC,MAAM,CAAC;IAC5C,MAAM,EAAE;QACN,aAAa,EAAE,QAAQ;QACvB,cAAc,EAAE,eAAe;KAChC;
|
|
1
|
+
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../../src/TestComponents/Common/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAG1C,MAAM,CAAC,IAAM,gBAAgB,GAAG,UAAU,CAAC,MAAM,CAAC;IAChD,IAAI,EAAE;QACJ,SAAS,EAAE,EAAE;QACb,WAAW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AE,cAAc;CAC/B,CAAC;AAEF,MAAM,CAAC,IAAM,YAAY,GAAG,UAAU,CAAC,MAAM,CAAC;IAC5C,MAAM,EAAE;QACN,aAAa,EAAE,QAAQ;QACvB,cAAc,EAAE,eAAe;KAChC;IACD,YAAY,EAAE;QACZ,aAAa,EAAE,KAAK;QACpB,gBAAgB,EAAE,EAAE;QACpB,UAAU,EAAE,EAAE;QACd,aAAa,EAAE,CAAC;QAChB,IAAI,EAAE,CAAC;QACP,cAAc,EAAE,cAAc;KAC/B;IACD,QAAQ,EAAE;QACR,KAAK,EAAE,MAAM;KACd;IACD,YAAY,EAAE;QACZ,KAAK,EAAE,MAAM;QACb,MAAM,EAAE,MAAM;QACd,QAAQ,EAAE,EAAE;QACZ,eAAe,EAAE,CAAC;KACnB;IACD,WAAW,EAAE;QACX,KAAK,EAAE,MAAM;KACd;CACF,CAAC,CAAC;AAEH,MAAM,CAAC,IAAM,wBAAwB,GAAG,CAAC,UAAU,EAAE,gBAAgB,CAAC,IAAI,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AvatarTest.d.ts","sourceRoot":"","sources":["../../../../../src/TestComponents/Avatar/AvatarTest.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"AvatarTest.d.ts","sourceRoot":"","sources":["../../../../../src/TestComponents/Avatar/AvatarTest.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AA6B/B,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,iBAe9B,CAAC"}
|
|
@@ -8,28 +8,33 @@ var Test_1 = require("../Test");
|
|
|
8
8
|
var BasicAvatar_1 = require("./BasicAvatar");
|
|
9
9
|
var CustomizedAvatar_1 = require("./CustomizedAvatar");
|
|
10
10
|
var E2EAvatarTest_1 = require("./E2EAvatarTest");
|
|
11
|
-
var
|
|
11
|
+
var react_native_1 = require("react-native");
|
|
12
|
+
var avatarSections = (0, tslib_1.__spreadArray)([
|
|
12
13
|
{
|
|
13
14
|
name: 'Standard Usage',
|
|
14
15
|
testID: consts_1.AVATAR_TESTPAGE,
|
|
15
16
|
component: BasicAvatar_1.StandardUsage,
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
17
|
+
}
|
|
18
|
+
], react_native_1.Platform.select({
|
|
19
|
+
android: [null],
|
|
20
|
+
default: [
|
|
21
|
+
{
|
|
22
|
+
name: 'Customize Usage',
|
|
23
|
+
component: CustomizedAvatar_1.CustomizeUsage,
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
name: 'Avatar E2E',
|
|
27
|
+
component: E2EAvatarTest_1.E2EAvatarTest,
|
|
28
|
+
},
|
|
29
|
+
],
|
|
30
|
+
}), true);
|
|
26
31
|
var AvatarTest = function () {
|
|
27
32
|
var status = {
|
|
28
33
|
win32Status: 'Experimental',
|
|
29
34
|
uwpStatus: 'Backlog',
|
|
30
35
|
iosStatus: 'Beta',
|
|
31
36
|
macosStatus: 'Experimental',
|
|
32
|
-
androidStatus: '
|
|
37
|
+
androidStatus: 'Experimental',
|
|
33
38
|
};
|
|
34
39
|
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
40
|
var spec = 'https://github.com/microsoft/fluentui-react-native/blob/main/packages/components/Avatar/SPEC.md';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AvatarTest.js","sourceRoot":"","sources":["../../../../../src/TestComponents/Avatar/AvatarTest.tsx"],"names":[],"mappings":";;;;AAAA,wDAA+B;AAC/B,mCAA2C;AAC3C,gCAA4D;AAC5D,6CAA8C;AAC9C,uDAAoD;AACpD,iDAAgD;
|
|
1
|
+
{"version":3,"file":"AvatarTest.js","sourceRoot":"","sources":["../../../../../src/TestComponents/Avatar/AvatarTest.tsx"],"names":[],"mappings":";;;;AAAA,wDAA+B;AAC/B,mCAA2C;AAC3C,gCAA4D;AAC5D,6CAA8C;AAC9C,uDAAoD;AACpD,iDAAgD;AAChD,6CAAwC;AAExC,IAAM,cAAc;IAClB;QACE,IAAI,EAAE,gBAAgB;QACtB,MAAM,EAAE,wBAAe;QACvB,SAAS,EAAE,2BAAa;KACzB;GACE,uBAAQ,CAAC,MAAM,CAAC;IACjB,OAAO,EAAE,CAAC,IAAI,CAAC;IACf,OAAO,EAAE;QACP;YACE,IAAI,EAAE,iBAAiB;YACvB,SAAS,EAAE,iCAAc;SAC1B;QACD;YACE,IAAI,EAAE,YAAY;YAClB,SAAS,EAAE,6BAAa;SACzB;KACF;CACF,CAAC,OACH,CAAC;AAEK,IAAM,UAAU,GAA4B;IACjD,IAAM,MAAM,GAAmB;QAC7B,WAAW,EAAE,cAAc;QAC3B,SAAS,EAAE,SAAS;QACpB,SAAS,EAAE,MAAM;QACjB,WAAW,EAAE,cAAc;QAC3B,aAAa,EAAE,cAAc;KAC9B,CAAC;IAEF,IAAM,WAAW,GACf,yRAAyR,CAAC;IAE5R,IAAM,IAAI,GAAG,iGAAiG,CAAC;IAE/G,OAAO,oBAAC,WAAI,IAAC,IAAI,EAAC,aAAa,EAAC,WAAW,EAAE,WAAW,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,GAAI,CAAC;AACrH,CAAC,CAAC;AAfW,QAAA,UAAU,cAerB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BasicAvatar.android.d.ts","sourceRoot":"","sources":["../../../../../src/TestComponents/Avatar/BasicAvatar.android.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAMjD,eAAO,MAAM,aAAa,EAAE,iBAyG3B,CAAC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StandardUsage = void 0;
|
|
4
|
+
var tslib_1 = require("tslib");
|
|
5
|
+
var react_1 = (0, tslib_1.__importDefault)(require("react"));
|
|
6
|
+
var avatar_1 = require("@fluentui-react-native/avatar");
|
|
7
|
+
var react_native_1 = require("react-native");
|
|
8
|
+
var styles_1 = require("./../PersonaCoin/styles");
|
|
9
|
+
var styles_2 = require("../Common/styles");
|
|
10
|
+
var StandardUsage = function () {
|
|
11
|
+
return (react_1.default.createElement(react_native_1.View, { style: { paddingBottom: 40 } },
|
|
12
|
+
react_1.default.createElement(react_native_1.View, { style: styles_2.mobileStyles.testVariants },
|
|
13
|
+
react_1.default.createElement(avatar_1.Avatar, { badge: { status: 'available' }, avatarColor: 'brand', size: 40 }),
|
|
14
|
+
react_1.default.createElement(avatar_1.Avatar, { size: 56, avatarColor: 'brand' }),
|
|
15
|
+
react_1.default.createElement(avatar_1.Avatar, { active: "active", activeAppearance: "ring", size: 56, avatarColor: 'brand' })),
|
|
16
|
+
react_1.default.createElement(react_native_1.View, { style: styles_2.mobileStyles.testVariants },
|
|
17
|
+
react_1.default.createElement(avatar_1.Avatar, { size: 56, badge: { status: 'available' }, avatarColor: 'brandInverted' }),
|
|
18
|
+
react_1.default.createElement(avatar_1.Avatar, { size: 56, avatarColor: 'brandInverted' }),
|
|
19
|
+
react_1.default.createElement(avatar_1.Avatar, { active: "active", activeAppearance: "ring", size: 56, avatarColor: 'brandInverted' })),
|
|
20
|
+
react_1.default.createElement(react_native_1.View, { style: styles_2.mobileStyles.testVariants },
|
|
21
|
+
react_1.default.createElement(avatar_1.Avatar, { size: 56, badge: { status: 'available' } }),
|
|
22
|
+
react_1.default.createElement(avatar_1.Avatar, { accessibilityLabel: "Fall-back Icon", accessibilityHint: "A picture representing a user", size: 56 }),
|
|
23
|
+
react_1.default.createElement(avatar_1.Avatar, { accessibilityLabel: "Fall-back Icon", accessibilityHint: "A picture representing a user", size: 56, activeAppearance: "ring", active: "active" })),
|
|
24
|
+
react_1.default.createElement(react_native_1.View, { style: styles_2.mobileStyles.testVariants },
|
|
25
|
+
react_1.default.createElement(avatar_1.Avatar, { size: 56, badge: { status: 'available' }, avatarColor: 'accent' }),
|
|
26
|
+
react_1.default.createElement(avatar_1.Avatar, { accessibilityLabel: "Fall-back Icon", accessibilityHint: "A picture representing a user", size: 56, avatarColor: 'accent' }),
|
|
27
|
+
react_1.default.createElement(avatar_1.Avatar, { accessibilityLabel: "Fall-back Icon", accessibilityHint: "A picture representing a user", size: 56, activeAppearance: "ring", active: "active", avatarColor: 'accent' })),
|
|
28
|
+
react_1.default.createElement(react_native_1.View, { style: styles_2.mobileStyles.testVariants },
|
|
29
|
+
react_1.default.createElement(avatar_1.Avatar, { size: 56, badge: { status: 'outOfOffice' }, name: "* Richard Faynman *" }),
|
|
30
|
+
react_1.default.createElement(avatar_1.Avatar, { size: 56, name: "* Annie Markus *", avatarColor: 'colorful' }),
|
|
31
|
+
react_1.default.createElement(avatar_1.Avatar, { active: "active", activeAppearance: "ring", size: 56, name: "* Keshav Madhav *", avatarColor: 'colorful' })),
|
|
32
|
+
react_1.default.createElement(react_native_1.View, { style: styles_2.mobileStyles.testVariants },
|
|
33
|
+
react_1.default.createElement(avatar_1.Avatar, { size: 56, badge: { status: 'outOfOffice' }, name: "* Richard Faynman *", imageUrl: styles_1.steveBallmerPhotoUrl }),
|
|
34
|
+
react_1.default.createElement(avatar_1.Avatar, { size: 56, imageUrl: styles_1.steveBallmerPhotoUrl, avatarColor: 'colorful' }),
|
|
35
|
+
react_1.default.createElement(avatar_1.Avatar, { active: "active", activeAppearance: "ring", size: 56, name: "* Richard Faynman *", imageUrl: styles_1.steveBallmerPhotoUrl })),
|
|
36
|
+
react_1.default.createElement(react_native_1.View, { style: styles_2.mobileStyles.testVariants },
|
|
37
|
+
react_1.default.createElement(avatar_1.Avatar, { size: 56, initials: "20", avatarColor: 'colorful' }),
|
|
38
|
+
react_1.default.createElement(avatar_1.Avatar, { size: 56, shape: 'square', avatarColor: 'colorful', name: "*Annie Martha*" }))));
|
|
39
|
+
};
|
|
40
|
+
exports.StandardUsage = StandardUsage;
|
|
41
|
+
//# sourceMappingURL=BasicAvatar.android.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BasicAvatar.android.js","sourceRoot":"","sources":["../../../../../src/TestComponents/Avatar/BasicAvatar.android.tsx"],"names":[],"mappings":";;;;AAAA,6DAAiD;AACjD,wDAAuD;AACvD,6CAAoC;AACpC,kDAA+D;AAC/D,2CAAgD;AAEzC,IAAM,aAAa,GAAsB;IAC9C,OAAO,CACL,8BAAC,mBAAI,IAAC,KAAK,EAAE,EAAE,aAAa,EAAE,EAAE,EAAE;QAChC,8BAAC,mBAAI,IAAC,KAAK,EAAE,qBAAY,CAAC,YAAY;YAIpC,8BAAC,eAAM,IAAC,KAAK,EAAE,EAAE,MAAM,EAAE,WAAW,EAAE,EAAE,WAAW,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE,GAAI;YAG1E,8BAAC,eAAM,IAAC,IAAI,EAAE,EAAE,EAAE,WAAW,EAAE,OAAO,GAAI;YAG1C,8BAAC,eAAM,IAAC,MAAM,EAAC,QAAQ,EAAC,gBAAgB,EAAC,MAAM,EAAC,IAAI,EAAE,EAAE,EAAE,WAAW,EAAE,OAAO,GAAI,CAC7E;QAEP,8BAAC,mBAAI,IAAC,KAAK,EAAE,qBAAY,CAAC,YAAY;YAIpC,8BAAC,eAAM,IAAC,IAAI,EAAE,EAAE,EAAE,KAAK,EAAE,EAAE,MAAM,EAAE,WAAW,EAAE,EAAE,WAAW,EAAE,eAAe,GAAI;YAGlF,8BAAC,eAAM,IAAC,IAAI,EAAE,EAAE,EAAE,WAAW,EAAE,eAAe,GAAI;YAGlD,8BAAC,eAAM,IAAC,MAAM,EAAC,QAAQ,EAAC,gBAAg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AE,IAAI,EAAC,kBAAkB,EAAC,WAAW,EAAE,UAAU,GAAI;YAGrE,8BAAC,eAAM,IAAC,MAAM,EAAC,QAAQ,EAAC,gBAAgB,EAAC,MAAM,EAAC,IAAI,EAAE,EAAE,EAAE,IAAI,EAAC,mBAAmB,EAAC,WAAW,EAAE,UAAU,GAAI,CACzG;QAEP,8BAAC,mBAAI,IAAC,KAAK,EAAE,qBAAY,CAAC,YAAY;YAIpC,8BAAC,eAAM,IAAC,IAAI,EAAE,EAAE,EAAE,KAAK,EAAE,EAAE,MAAM,EAAE,aAAa,EAAE,EAAE,IAAI,EAAC,qBAAqB,EAAC,QAAQ,EAAE,6BAAoB,GAAI;YAGjH,8BAAC,eAAM,IAAC,IAAI,EAAE,EAAE,EAAE,QAAQ,EAAE,6BAAoB,EAAE,WAAW,EAAE,UAAU,GAAI;YAG7E,8BAAC,eAAM,IAAC,MAAM,EAAC,QAAQ,EAAC,gBAAgB,EAAC,MAAM,EAAC,IAAI,EAAE,EAAE,EAAE,IAAI,EAAC,qBAAqB,EAAC,QAAQ,EAAE,6BAAoB,GAAI,CAClH;QAEP,8BAAC,mBAAI,IAAC,KAAK,EAAE,qBAAY,CAAC,YAAY;YAGpC,8BAAC,eAAM,IAAC,IAAI,EAAE,EAAE,EAAE,QAAQ,EAAC,IAAI,EAAC,WAAW,EAAE,UAAU,GAAI;YAI3D,8BAAC,eAAM,IAAC,IAAI,EAAE,EAAE,EAAE,KAAK,EAAE,QAAQ,EAAE,WAAW,EAAE,UAAU,EAAE,IAAI,EAAC,gBAAgB,GAAG,CAC/E,CACF,CACR,CAAC;AACJ,CAAC,CAAC;AAzGW,QAAA,aAAa,iBAyGxB"}
|
|
@@ -124,6 +124,14 @@ export declare const mobileStyles: {
|
|
|
124
124
|
flexDirection: "column";
|
|
125
125
|
justifyContent: "space-between";
|
|
126
126
|
};
|
|
127
|
+
testVariants: {
|
|
128
|
+
flexDirection: "row";
|
|
129
|
+
marginHorizontal: number;
|
|
130
|
+
paddingTop: number;
|
|
131
|
+
paddingBottom: number;
|
|
132
|
+
flex: number;
|
|
133
|
+
justifyContent: "space-evenly";
|
|
134
|
+
};
|
|
127
135
|
testList: {
|
|
128
136
|
width: string;
|
|
129
137
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../src/TestComponents/Common/styles.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAE3D,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2D3B,CAAC;AAEH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiE7B,CAAC;AAEH,eAAO,MAAM,UAAU,EAAE,WAAW,CAAC,OAAO,CAM3C,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,WAAW,CAAC,OAAO,CAIpD,CAAC;AAEF,eAAO,MAAM,YAAY
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../src/TestComponents/Common/styles.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAE3D,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2D3B,CAAC;AAEH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiE7B,CAAC;AAEH,eAAO,MAAM,UAAU,EAAE,WAAW,CAAC,OAAO,CAM3C,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,WAAW,CAAC,OAAO,CAIpD,CAAC;AAEF,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;CAyBvB,CAAC;AAEH,eAAO,MAAM,wBAAwB;;;IAAsC,CAAC"}
|
|
@@ -135,6 +135,14 @@ exports.mobileStyles = react_native_1.StyleSheet.create({
|
|
|
135
135
|
flexDirection: 'column',
|
|
136
136
|
justifyContent: 'space-between',
|
|
137
137
|
},
|
|
138
|
+
testVariants: {
|
|
139
|
+
flexDirection: 'row',
|
|
140
|
+
marginHorizontal: 10,
|
|
141
|
+
paddingTop: 10,
|
|
142
|
+
paddingBottom: 5,
|
|
143
|
+
flex: 1,
|
|
144
|
+
justifyContent: 'space-evenly',
|
|
145
|
+
},
|
|
138
146
|
testList: {
|
|
139
147
|
width: '100%',
|
|
140
148
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../../src/TestComponents/Common/styles.ts"],"names":[],"mappings":";;;AAAA,6CAA0C;AAG7B,QAAA,gBAAgB,GAAG,yBAAU,CAAC,MAAM,CAAC;IAChD,IAAI,EAAE;QACJ,SAAS,EAAE,EAAE;QACb,WAAW,EAAE,EAAE;QACf,aAAa,EAAE,QAAQ;QACvB,UAAU,EAAE,YAAY;KACzB;IACD,IAAI,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE;IACjB,MAAM,EAAE;QACN,cAAc,EAAE,CAAC;QACjB,QAAQ,EAAE,EAAE;KACb;IACD,OAAO,EAAE;QACP,QAAQ,EAAE,EAAE;QACZ,UAAU,EAAE,MAAM;QAClB,KAAK,EAAE,SAAS;QAChB,SAAS,EAAE,EAAE;KACd;IACD,cAAc,EAAE;QACd,MAAM,EAAE,GAAG;QACX,aAAa,EAAE,KAAK;QACpB,cAAc,EAAE,cAAc;KAC/B;IACD,QAAQ,EAAE;QACR,QAAQ,EAAE,CAAC;KACZ;IACD,cAAc,EAAE;QACd,aAAa,EAAE,QAAQ;QACvB,IAAI,EAAE,CAAC;KACR;IACD,gBAAgB,EAAE;QAChB,IAAI,EAAE,CAAC;QACP,aAAa,EAAE,KAAK;KACrB;IACD,O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,UAAU,EAAE,CAAC;QACb,QAAQ,EAAE,CAAC;QACX,aAAa,EAAE,QAAQ;KACxB;IAED,YAAY,EAAE;QACZ,KAAK,EAAE,MAAM;QACb,YAAY,EAAE,CAAC;QACf,cAAc,EAAE,YAAY;KAC7B;IAED,iBAAiB,EAAE,EAAE,gBAAgB,EAAE,CAAC,EAAE;IAE1C,WAAW,EAAE;QACX,QAAQ,EAAE,CAAC;KACZ;IAED,MAAM,EAAE;QACN,SAAS,EAAE,QAAQ;QACnB,QAAQ,EAAE,EAAE;KACb;CACF,CAAC,CAAC;AAEU,QAAA,UAAU,GAAyB;IAC9C,WAAW,EAAE,CAAC;IACd,WAAW,EAAE,SAAS;IACtB,eAAe,EAAE,CAAC;IAClB,iBAAiB,EAAE,EAAE;IACrB,MAAM,EAAE,CAAC;CACV,CAAC;AAEW,QAAA,mBAAmB,GAAyB;IACvD,MAAM,EAAE,GAAG;IACX,aAAa,EAAE,KAAK;IACpB,cAAc,EAAE,cAAc;CAC/B,CAAC;AAEW,QAAA,YAAY,GAAG,yBAAU,CAAC,MAAM,CAAC;IAC5C,MAAM,EAAE;QACN,aAAa,EAAE,QAAQ;QACvB,cAAc,EAAE,eAAe;KAChC;
|
|
1
|
+
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../../src/TestComponents/Common/styles.ts"],"names":[],"mappings":";;;AAAA,6CAA0C;AAG7B,QAAA,gBAAgB,GAAG,yBAAU,CAAC,MAAM,CAAC;IAChD,IAAI,EAAE;QACJ,SAAS,EAAE,EAAE;QACb,WAAW,EAAE,EAAE;QACf,aAAa,EAAE,QAAQ;QACvB,UAAU,EAAE,YAAY;KACzB;IACD,IAAI,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE;IACjB,MAAM,EAAE;QACN,cAAc,EAAE,CAAC;QACjB,QAAQ,EAAE,EAAE;KACb;IACD,OAAO,EAAE;QACP,QAAQ,EAAE,EAAE;QACZ,UAAU,EAAE,MAAM;QAClB,KAAK,EAAE,SAAS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AC/B;IACD,QAAQ,EAAE;QACR,KAAK,EAAE,MAAM;KACd;IACD,YAAY,EAAE;QACZ,KAAK,EAAE,MAAM;QACb,MAAM,EAAE,MAAM;QACd,QAAQ,EAAE,EAAE;QACZ,eAAe,EAAE,CAAC;KACnB;IACD,WAAW,EAAE;QACX,KAAK,EAAE,MAAM;KACd;CACF,CAAC,CAAC;AAEU,QAAA,wBAAwB,GAAG,CAAC,kBAAU,EAAE,wBAAgB,CAAC,IAAI,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluentui-react-native/tester",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.114.0",
|
|
4
4
|
"description": "A test app to test FluentUI React Native Components during development",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Microsoft <fluentuinativeowners@microsoft.com>",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@fluentui-react-native/android-theme": ">=0.15.0 <1.0.0",
|
|
37
37
|
"@fluentui-react-native/apple-theme": ">=0.17.1 <1.0.0",
|
|
38
|
-
"@fluentui-react-native/avatar": "^1.
|
|
38
|
+
"@fluentui-react-native/avatar": "^1.5.0",
|
|
39
39
|
"@fluentui-react-native/badge": ">=0.4.1 <1.0.0",
|
|
40
40
|
"@fluentui-react-native/button": ">=0.32.6 <1.0.0",
|
|
41
41
|
"@fluentui-react-native/default-theme": ">=0.16.15 <1.0.0",
|
|
@@ -4,6 +4,7 @@ import { Test, TestSection, PlatformStatus } from '../Test';
|
|
|
4
4
|
import { StandardUsage } from './BasicAvatar';
|
|
5
5
|
import { CustomizeUsage } from './CustomizedAvatar';
|
|
6
6
|
import { E2EAvatarTest } from './E2EAvatarTest';
|
|
7
|
+
import { Platform } from 'react-native';
|
|
7
8
|
|
|
8
9
|
const avatarSections: TestSection[] = [
|
|
9
10
|
{
|
|
@@ -11,14 +12,19 @@ const avatarSections: TestSection[] = [
|
|
|
11
12
|
testID: AVATAR_TESTPAGE,
|
|
12
13
|
component: StandardUsage,
|
|
13
14
|
},
|
|
14
|
-
{
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
15
|
+
...Platform.select({
|
|
16
|
+
android: [null],
|
|
17
|
+
default: [
|
|
18
|
+
{
|
|
19
|
+
name: 'Customize Usage',
|
|
20
|
+
component: CustomizeUsage,
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
name: 'Avatar E2E',
|
|
24
|
+
component: E2EAvatarTest,
|
|
25
|
+
},
|
|
26
|
+
],
|
|
27
|
+
}),
|
|
22
28
|
];
|
|
23
29
|
|
|
24
30
|
export const AvatarTest: React.FunctionComponent = () => {
|
|
@@ -27,7 +33,7 @@ export const AvatarTest: React.FunctionComponent = () => {
|
|
|
27
33
|
uwpStatus: 'Backlog',
|
|
28
34
|
iosStatus: 'Beta',
|
|
29
35
|
macosStatus: 'Experimental',
|
|
30
|
-
androidStatus: '
|
|
36
|
+
androidStatus: 'Experimental',
|
|
31
37
|
};
|
|
32
38
|
|
|
33
39
|
const description =
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import React, { FunctionComponent } from 'react';
|
|
2
|
+
import { Avatar } from '@fluentui-react-native/avatar';
|
|
3
|
+
import { View } from 'react-native';
|
|
4
|
+
import { steveBallmerPhotoUrl } from './../PersonaCoin/styles';
|
|
5
|
+
import { mobileStyles } from '../Common/styles';
|
|
6
|
+
|
|
7
|
+
export const StandardUsage: FunctionComponent = () => {
|
|
8
|
+
return (
|
|
9
|
+
<View style={{ paddingBottom: 40 }}>
|
|
10
|
+
<View style={mobileStyles.testVariants}>
|
|
11
|
+
{/* Variation - Standard */}
|
|
12
|
+
|
|
13
|
+
{/* With badge. */}
|
|
14
|
+
<Avatar badge={{ status: 'available' }} avatarColor={'brand'} size={40} />
|
|
15
|
+
|
|
16
|
+
{/* Variation - No Ring and badge. */}
|
|
17
|
+
<Avatar size={56} avatarColor={'brand'} />
|
|
18
|
+
|
|
19
|
+
{/* Variation - With Ring.*/}
|
|
20
|
+
<Avatar active="active" activeAppearance="ring" size={56} avatarColor={'brand'} />
|
|
21
|
+
</View>
|
|
22
|
+
|
|
23
|
+
<View style={mobileStyles.testVariants}>
|
|
24
|
+
{/* Variation - Standard Inverted */}
|
|
25
|
+
|
|
26
|
+
{/* With badge only.*/}
|
|
27
|
+
<Avatar size={56} badge={{ status: 'available' }} avatarColor={'brandInverted'} />
|
|
28
|
+
|
|
29
|
+
{/* No ring and badge.*/}
|
|
30
|
+
<Avatar size={56} avatarColor={'brandInverted'} />
|
|
31
|
+
|
|
32
|
+
{/* With ring.*/}
|
|
33
|
+
<Avatar active="active" activeAppearance="ring" size={56} avatarColor={'brandInverted'} />
|
|
34
|
+
</View>
|
|
35
|
+
|
|
36
|
+
<View style={mobileStyles.testVariants}>
|
|
37
|
+
{/*Variation - Anonymous*/}
|
|
38
|
+
|
|
39
|
+
{/* With Badge.*/}
|
|
40
|
+
<Avatar size={56} badge={{ status: 'available' }} />
|
|
41
|
+
|
|
42
|
+
{/* No ring and badge.*/}
|
|
43
|
+
<Avatar accessibilityLabel="Fall-back Icon" accessibilityHint="A picture representing a user" size={56} />
|
|
44
|
+
|
|
45
|
+
{/* With ring. */}
|
|
46
|
+
<Avatar
|
|
47
|
+
accessibilityLabel="Fall-back Icon"
|
|
48
|
+
accessibilityHint="A picture representing a user"
|
|
49
|
+
size={56}
|
|
50
|
+
activeAppearance="ring"
|
|
51
|
+
active="active"
|
|
52
|
+
/>
|
|
53
|
+
</View>
|
|
54
|
+
|
|
55
|
+
<View style={mobileStyles.testVariants}>
|
|
56
|
+
{/* Variation - Anonymous accent.*/}
|
|
57
|
+
|
|
58
|
+
{/* With badge.*/}
|
|
59
|
+
<Avatar size={56} badge={{ status: 'available' }} avatarColor={'accent'} />
|
|
60
|
+
|
|
61
|
+
{/* No ring and badge.*/}
|
|
62
|
+
<Avatar accessibilityLabel="Fall-back Icon" accessibilityHint="A picture representing a user" size={56} avatarColor={'accent'} />
|
|
63
|
+
|
|
64
|
+
{/* With ring. */}
|
|
65
|
+
<Avatar
|
|
66
|
+
accessibilityLabel="Fall-back Icon"
|
|
67
|
+
accessibilityHint="A picture representing a user"
|
|
68
|
+
size={56}
|
|
69
|
+
activeAppearance="ring"
|
|
70
|
+
active="active"
|
|
71
|
+
avatarColor={'accent'}
|
|
72
|
+
/>
|
|
73
|
+
</View>
|
|
74
|
+
|
|
75
|
+
<View style={mobileStyles.testVariants}>
|
|
76
|
+
{/* Variation - Initials.*/}
|
|
77
|
+
|
|
78
|
+
{/* With badge.*/}
|
|
79
|
+
<Avatar size={56} badge={{ status: 'outOfOffice' }} name="* Richard Faynman *" />
|
|
80
|
+
|
|
81
|
+
{/* No ring and badge.*/}
|
|
82
|
+
<Avatar size={56} name="* Annie Markus *" avatarColor={'colorful'} />
|
|
83
|
+
|
|
84
|
+
{/* With ring. */}
|
|
85
|
+
<Avatar active="active" activeAppearance="ring" size={56} name="* Keshav Madhav *" avatarColor={'colorful'} />
|
|
86
|
+
</View>
|
|
87
|
+
|
|
88
|
+
<View style={mobileStyles.testVariants}>
|
|
89
|
+
{/* Variation - Image. */}
|
|
90
|
+
|
|
91
|
+
{/* With badge.*/}
|
|
92
|
+
<Avatar size={56} badge={{ status: 'outOfOffice' }} name="* Richard Faynman *" imageUrl={steveBallmerPhotoUrl} />
|
|
93
|
+
|
|
94
|
+
{/* No ring and badge.*/}
|
|
95
|
+
<Avatar size={56} imageUrl={steveBallmerPhotoUrl} avatarColor={'colorful'} />
|
|
96
|
+
|
|
97
|
+
{/* With ring.*/}
|
|
98
|
+
<Avatar active="active" activeAppearance="ring" size={56} name="* Richard Faynman *" imageUrl={steveBallmerPhotoUrl} />
|
|
99
|
+
</View>
|
|
100
|
+
|
|
101
|
+
<View style={mobileStyles.testVariants}>
|
|
102
|
+
{/* Variation - Overflow .*/}
|
|
103
|
+
|
|
104
|
+
<Avatar size={56} initials="20" avatarColor={'colorful'} />
|
|
105
|
+
|
|
106
|
+
{/* Variation - Group avatar*/}
|
|
107
|
+
|
|
108
|
+
<Avatar size={56} shape={'square'} avatarColor={'colorful'} name="*Annie Martha*" />
|
|
109
|
+
</View>
|
|
110
|
+
</View>
|
|
111
|
+
);
|
|
112
|
+
};
|
|
@@ -148,7 +148,14 @@ export const mobileStyles = StyleSheet.create({
|
|
|
148
148
|
flexDirection: 'column',
|
|
149
149
|
justifyContent: 'space-between',
|
|
150
150
|
},
|
|
151
|
-
|
|
151
|
+
testVariants: {
|
|
152
|
+
flexDirection: 'row',
|
|
153
|
+
marginHorizontal: 10,
|
|
154
|
+
paddingTop: 10,
|
|
155
|
+
paddingBottom: 5,
|
|
156
|
+
flex: 1,
|
|
157
|
+
justifyContent: 'space-evenly',
|
|
158
|
+
},
|
|
152
159
|
testList: {
|
|
153
160
|
width: '100%',
|
|
154
161
|
},
|