@momo-kits/avatar 0.0.13 → 0.0.23
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/Avatar.js +1 -4
- package/Avatar.web.js +23 -0
- package/package.json +1 -1
package/Avatar.js
CHANGED
|
@@ -585,10 +585,7 @@ Avatar.propTypes = {
|
|
|
585
585
|
name: PropTypes.string,
|
|
586
586
|
resizeMode: PropTypes.string,
|
|
587
587
|
quality: PropTypes.oneOf(['low', 'medium', 'high']),
|
|
588
|
-
size: PropTypes.
|
|
589
|
-
PropTypes.shape({
|
|
590
|
-
width: PropTypes.number, height: PropTypes.number, borderRadius: PropTypes.number
|
|
591
|
-
})]),
|
|
588
|
+
size: PropTypes.any,
|
|
592
589
|
source: PropTypes.oneOfType([PropTypes.shape({ uri: PropTypes.string }), PropTypes.number, PropTypes.string]),
|
|
593
590
|
subIcon: PropTypes.oneOf(['momo', 'online', 'key', 'none']),
|
|
594
591
|
subIconSource: PropTypes.oneOfType([PropTypes.shape({ uri: PropTypes.string }), PropTypes.number, PropTypes.string]),
|
package/Avatar.web.js
CHANGED
|
@@ -17,6 +17,29 @@ export const AvatarQuality = {
|
|
|
17
17
|
high: 'high',
|
|
18
18
|
};
|
|
19
19
|
|
|
20
|
+
const COLORS = [
|
|
21
|
+
'#3683f3',
|
|
22
|
+
'#ea63af',
|
|
23
|
+
'#f94889',
|
|
24
|
+
'#82b6da',
|
|
25
|
+
'#2fc093',
|
|
26
|
+
'#7b4a41',
|
|
27
|
+
'#ff97bc',
|
|
28
|
+
'#4130d7',
|
|
29
|
+
'#c3c3c3',
|
|
30
|
+
'#f7ae2f',
|
|
31
|
+
'#b04595',
|
|
32
|
+
'#57b748',
|
|
33
|
+
'#ff8900',
|
|
34
|
+
'#7841bf',
|
|
35
|
+
'#be3f3e',
|
|
36
|
+
'#c51515',
|
|
37
|
+
'#8e6472',
|
|
38
|
+
'#fed27d',
|
|
39
|
+
'#ff6f5d',
|
|
40
|
+
'#05b8ae',
|
|
41
|
+
];
|
|
42
|
+
|
|
20
43
|
export const AvatarSize = {
|
|
21
44
|
tiny: 'tiny',
|
|
22
45
|
small: 'small',
|