@fluentui-react-native/experimental-avatar 0.14.25 → 0.14.28
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 +52 -1
- package/CHANGELOG.md +27 -2
- package/jest.config.js +2 -0
- package/lib/JSAvatar.d.ts.map +1 -1
- package/lib/JSAvatar.js +3 -1
- package/lib/JSAvatar.js.map +1 -1
- package/lib/JSAvatar.styling.d.ts.map +1 -1
- package/lib/JSAvatar.styling.js +20 -13
- package/lib/JSAvatar.styling.js.map +1 -1
- package/lib/JSAvatar.types.d.ts +5 -6
- package/lib/JSAvatar.types.d.ts.map +1 -1
- package/lib/JSAvatarTokens.d.ts.map +1 -1
- package/lib/JSAvatarTokens.js +109 -105
- package/lib/JSAvatarTokens.js.map +1 -1
- package/lib/JSAvatarTokens.win32.d.ts +5 -0
- package/lib/JSAvatarTokens.win32.d.ts.map +1 -0
- package/lib/JSAvatarTokens.win32.js +210 -0
- package/lib/JSAvatarTokens.win32.js.map +1 -0
- package/lib/titles.d.ts +2 -0
- package/lib/titles.d.ts.map +1 -0
- package/lib/titles.js +109 -0
- package/lib/titles.js.map +1 -0
- package/lib/useAvatar.d.ts +25 -0
- package/lib/useAvatar.d.ts.map +1 -1
- package/lib/useAvatar.js +47 -2
- package/lib/useAvatar.js.map +1 -1
- package/lib/utils/getInitials.d.ts +15 -0
- package/lib/utils/getInitials.d.ts.map +1 -0
- package/lib/utils/getInitials.js +78 -0
- package/lib/utils/getInitials.js.map +1 -0
- package/lib/utils/getInitials.test.d.ts +2 -0
- package/lib/utils/getInitials.test.d.ts.map +1 -0
- package/lib/utils/getInitials.test.js +116 -0
- package/lib/utils/getInitials.test.js.map +1 -0
- package/lib/utils/index.d.ts +2 -0
- package/lib/utils/index.d.ts.map +1 -0
- package/lib/utils/index.js +2 -0
- package/lib/utils/index.js.map +1 -0
- package/lib-commonjs/JSAvatar.d.ts.map +1 -1
- package/lib-commonjs/JSAvatar.js +3 -1
- package/lib-commonjs/JSAvatar.js.map +1 -1
- package/lib-commonjs/JSAvatar.styling.d.ts.map +1 -1
- package/lib-commonjs/JSAvatar.styling.js +19 -12
- package/lib-commonjs/JSAvatar.styling.js.map +1 -1
- package/lib-commonjs/JSAvatar.types.d.ts +5 -6
- package/lib-commonjs/JSAvatar.types.d.ts.map +1 -1
- package/lib-commonjs/JSAvatarTokens.d.ts.map +1 -1
- package/lib-commonjs/JSAvatarTokens.js +109 -105
- package/lib-commonjs/JSAvatarTokens.js.map +1 -1
- package/lib-commonjs/JSAvatarTokens.win32.d.ts +5 -0
- package/lib-commonjs/JSAvatarTokens.win32.d.ts.map +1 -0
- package/lib-commonjs/JSAvatarTokens.win32.js +214 -0
- package/lib-commonjs/JSAvatarTokens.win32.js.map +1 -0
- package/lib-commonjs/titles.d.ts +2 -0
- package/lib-commonjs/titles.d.ts.map +1 -0
- package/lib-commonjs/titles.js +112 -0
- package/lib-commonjs/titles.js.map +1 -0
- package/lib-commonjs/useAvatar.d.ts +25 -0
- package/lib-commonjs/useAvatar.d.ts.map +1 -1
- package/lib-commonjs/useAvatar.js +51 -3
- package/lib-commonjs/useAvatar.js.map +1 -1
- package/lib-commonjs/utils/getInitials.d.ts +15 -0
- package/lib-commonjs/utils/getInitials.d.ts.map +1 -0
- package/lib-commonjs/utils/getInitials.js +82 -0
- package/lib-commonjs/utils/getInitials.js.map +1 -0
- package/lib-commonjs/utils/getInitials.test.d.ts +2 -0
- package/lib-commonjs/utils/getInitials.test.d.ts.map +1 -0
- package/lib-commonjs/utils/getInitials.test.js +118 -0
- package/lib-commonjs/utils/getInitials.test.js.map +1 -0
- package/lib-commonjs/utils/index.d.ts +2 -0
- package/lib-commonjs/utils/index.d.ts.map +1 -0
- package/lib-commonjs/utils/index.js +6 -0
- package/lib-commonjs/utils/index.js.map +1 -0
- package/package.json +5 -4
- package/src/.eslintrc.js +3 -0
- package/src/JSAvatar.styling.ts +25 -10
- package/src/JSAvatar.tsx +12 -1
- package/src/JSAvatar.types.ts +5 -6
- package/src/JSAvatarTokens.ts +110 -105
- package/src/JSAvatarTokens.win32.ts +213 -0
- package/src/__tests__/JSAvatar.test.jsx +156 -0
- package/src/__tests__/__snapshots__/JSAvatar.test.jsx.snap +92 -0
- package/src/titles.ts +108 -0
- package/src/useAvatar.ts +51 -1
- package/src/utils/getInitials.test.ts +154 -0
- package/src/utils/getInitials.ts +92 -0
- package/src/utils/index.ts +1 -0
- package/tsconfig.json +2 -1
|
@@ -9,8 +9,16 @@ var defaultJSAvatarTokens = function (t) {
|
|
|
9
9
|
color: theme_tokens_1.globalTokens.color.white,
|
|
10
10
|
backgroundColor: theme_tokens_1.globalTokens.color.cornflower.primary,
|
|
11
11
|
avatarOpacity: 1,
|
|
12
|
+
fontFamily: t.typography.families.primary,
|
|
13
|
+
fontWeight: theme_tokens_1.globalTokens.font.weight.semibold,
|
|
14
|
+
fontSize: theme_tokens_1.globalTokens.font.size[200],
|
|
12
15
|
width: 24,
|
|
13
16
|
height: 24,
|
|
17
|
+
iconSize: 16,
|
|
18
|
+
iconColor: theme_tokens_1.globalTokens.color.white,
|
|
19
|
+
ringColor: t.colors.transparentStroke,
|
|
20
|
+
borderColor: theme_tokens_1.globalTokens.color.white,
|
|
21
|
+
borderWidth: t.host.appearance === 'highContrast' ? 1 : 0,
|
|
14
22
|
circular: {
|
|
15
23
|
borderRadius: theme_tokens_1.globalTokens.corner.radius.circle,
|
|
16
24
|
},
|
|
@@ -25,186 +33,182 @@ var defaultJSAvatarTokens = function (t) {
|
|
|
25
33
|
height: 20,
|
|
26
34
|
badgeSize: 'smallest',
|
|
27
35
|
iconSize: 16,
|
|
28
|
-
|
|
36
|
+
fontSize: theme_tokens_1.globalTokens.font.size[100],
|
|
37
|
+
square: {
|
|
38
|
+
borderRadius: theme_tokens_1.globalTokens.corner.radius.small,
|
|
39
|
+
},
|
|
29
40
|
},
|
|
30
41
|
size24: {
|
|
31
42
|
width: 24,
|
|
32
43
|
height: 24,
|
|
33
44
|
badgeSize: 'smallest',
|
|
34
45
|
iconSize: 16,
|
|
35
|
-
|
|
46
|
+
fontSize: theme_tokens_1.globalTokens.font.size[100],
|
|
47
|
+
square: {
|
|
48
|
+
borderRadius: theme_tokens_1.globalTokens.corner.radius.small,
|
|
49
|
+
},
|
|
36
50
|
},
|
|
37
51
|
size28: {
|
|
38
52
|
width: 28,
|
|
39
53
|
height: 28,
|
|
40
54
|
badgeSize: 'smaller',
|
|
41
55
|
iconSize: 20,
|
|
42
|
-
|
|
56
|
+
fontWeight: theme_tokens_1.globalTokens.font.weight.semibold,
|
|
57
|
+
fontSize: theme_tokens_1.globalTokens.font.size[100],
|
|
43
58
|
},
|
|
44
59
|
size32: {
|
|
45
60
|
width: 32,
|
|
46
61
|
height: 32,
|
|
47
62
|
badgeSize: 'smaller',
|
|
48
63
|
iconSize: 20,
|
|
49
|
-
|
|
64
|
+
fontSize: theme_tokens_1.globalTokens.font.size[100],
|
|
50
65
|
},
|
|
51
66
|
size36: {
|
|
52
67
|
width: 36,
|
|
53
68
|
height: 36,
|
|
54
69
|
badgeSize: 'smaller',
|
|
55
70
|
iconSize: 20,
|
|
56
|
-
initialsSize: 20,
|
|
57
71
|
},
|
|
58
72
|
size40: {
|
|
59
73
|
width: 40,
|
|
60
74
|
height: 40,
|
|
61
75
|
badgeSize: 'small',
|
|
62
76
|
iconSize: 20,
|
|
63
|
-
initialsSize: 20,
|
|
64
77
|
},
|
|
65
78
|
size48: {
|
|
66
79
|
width: 48,
|
|
67
80
|
height: 48,
|
|
68
81
|
badgeSize: 'small',
|
|
69
82
|
iconSize: 24,
|
|
70
|
-
initialsSize: 24,
|
|
71
83
|
},
|
|
72
84
|
size56: {
|
|
73
85
|
width: 56,
|
|
74
86
|
height: 56,
|
|
75
87
|
badgeSize: 'medium',
|
|
76
88
|
iconSize: 28,
|
|
77
|
-
|
|
89
|
+
fontSize: theme_tokens_1.globalTokens.font.size[400],
|
|
90
|
+
square: {
|
|
91
|
+
borderRadius: theme_tokens_1.globalTokens.corner.radius.large,
|
|
92
|
+
},
|
|
78
93
|
},
|
|
79
94
|
size64: {
|
|
80
95
|
width: 64,
|
|
81
96
|
height: 64,
|
|
82
97
|
badgeSize: 'large',
|
|
83
98
|
iconSize: 32,
|
|
84
|
-
|
|
99
|
+
fontSize: theme_tokens_1.globalTokens.font.size[500],
|
|
100
|
+
square: {
|
|
101
|
+
borderRadius: theme_tokens_1.globalTokens.corner.radius.large,
|
|
102
|
+
},
|
|
85
103
|
},
|
|
86
104
|
size72: {
|
|
87
105
|
width: 72,
|
|
88
106
|
height: 72,
|
|
89
107
|
badgeSize: 'large',
|
|
90
108
|
iconSize: 32,
|
|
91
|
-
|
|
109
|
+
fontSize: theme_tokens_1.globalTokens.font.size[500],
|
|
110
|
+
square: {
|
|
111
|
+
borderRadius: theme_tokens_1.globalTokens.corner.radius.large,
|
|
112
|
+
},
|
|
92
113
|
},
|
|
93
114
|
size96: {
|
|
94
115
|
width: 96,
|
|
95
116
|
height: 96,
|
|
96
117
|
badgeSize: 'largest',
|
|
97
118
|
iconSize: 48,
|
|
98
|
-
|
|
119
|
+
fontWeight: theme_tokens_1.globalTokens.font.weight.regular,
|
|
120
|
+
fontSize: theme_tokens_1.globalTokens.font.size[700],
|
|
121
|
+
square: {
|
|
122
|
+
borderRadius: theme_tokens_1.globalTokens.corner.radius.extraLarge,
|
|
123
|
+
},
|
|
99
124
|
},
|
|
100
125
|
size120: {
|
|
101
126
|
width: 120,
|
|
102
127
|
height: 120,
|
|
103
128
|
badgeSize: 'largest',
|
|
104
129
|
iconSize: 48,
|
|
105
|
-
|
|
130
|
+
fontWeight: theme_tokens_1.globalTokens.font.weight.regular,
|
|
131
|
+
fontSize: theme_tokens_1.globalTokens.font.size[900],
|
|
132
|
+
square: {
|
|
133
|
+
borderRadius: theme_tokens_1.globalTokens.corner.radius.extraLarge,
|
|
134
|
+
},
|
|
106
135
|
},
|
|
107
136
|
neutral: {
|
|
108
137
|
backgroundColor: t.colors.neutralBackground6,
|
|
109
138
|
color: t.colors.neutralForeground3,
|
|
110
|
-
|
|
139
|
+
iconColor: t.colors.neutralForeground3,
|
|
140
|
+
ringColor: t.colors.transparentStroke,
|
|
111
141
|
},
|
|
112
142
|
brand: {
|
|
113
143
|
backgroundColor: t.colors.brandBackgroundStatic,
|
|
114
144
|
color: t.colors.neutralForegroundOnBrand,
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
backgroundColor: theme_tokens_1.globalTokens.color.seafoam.primary,
|
|
149
|
-
},
|
|
150
|
-
darkGreen: {
|
|
151
|
-
backgroundColor: theme_tokens_1.globalTokens.color.darkGreen.primary,
|
|
152
|
-
},
|
|
153
|
-
lightTeal: {
|
|
154
|
-
backgroundColor: theme_tokens_1.globalTokens.color.lightTeal.primary,
|
|
155
|
-
},
|
|
156
|
-
teal: {
|
|
157
|
-
backgroundColor: theme_tokens_1.globalTokens.color.teal.primary,
|
|
158
|
-
},
|
|
159
|
-
steel: {
|
|
160
|
-
backgroundColor: theme_tokens_1.globalTokens.color.steel.primary,
|
|
161
|
-
},
|
|
162
|
-
blue: {
|
|
163
|
-
backgroundColor: theme_tokens_1.globalTokens.color.blue.primary,
|
|
164
|
-
},
|
|
165
|
-
royalBlue: {
|
|
166
|
-
backgroundColor: theme_tokens_1.globalTokens.color.royalBlue.primary,
|
|
167
|
-
},
|
|
168
|
-
cornflower: {
|
|
169
|
-
backgroundColor: theme_tokens_1.globalTokens.color.cornflower.primary,
|
|
170
|
-
},
|
|
171
|
-
navy: {
|
|
172
|
-
backgroundColor: theme_tokens_1.globalTokens.color.navy.primary,
|
|
173
|
-
},
|
|
174
|
-
lavender: {
|
|
175
|
-
backgroundColor: theme_tokens_1.globalTokens.color.lavender.primary,
|
|
176
|
-
},
|
|
177
|
-
purple: {
|
|
178
|
-
backgroundColor: theme_tokens_1.globalTokens.color.purple.primary,
|
|
179
|
-
},
|
|
180
|
-
grape: {
|
|
181
|
-
backgroundColor: theme_tokens_1.globalTokens.color.grape.primary,
|
|
182
|
-
},
|
|
183
|
-
lilac: {
|
|
184
|
-
backgroundColor: theme_tokens_1.globalTokens.color.lilac.primary,
|
|
185
|
-
},
|
|
186
|
-
pink: {
|
|
187
|
-
backgroundColor: theme_tokens_1.globalTokens.color.pink.primary,
|
|
188
|
-
},
|
|
189
|
-
magenta: {
|
|
190
|
-
backgroundColor: theme_tokens_1.globalTokens.color.magenta.primary,
|
|
191
|
-
},
|
|
192
|
-
plum: {
|
|
193
|
-
backgroundColor: theme_tokens_1.globalTokens.color.plum.primary,
|
|
194
|
-
},
|
|
195
|
-
beige: {
|
|
196
|
-
backgroundColor: theme_tokens_1.globalTokens.color.beige.primary,
|
|
197
|
-
},
|
|
198
|
-
mink: {
|
|
199
|
-
backgroundColor: theme_tokens_1.globalTokens.color.mink.primary,
|
|
200
|
-
},
|
|
201
|
-
platinum: {
|
|
202
|
-
backgroundColor: theme_tokens_1.globalTokens.color.platinum.primary,
|
|
203
|
-
},
|
|
204
|
-
anchor: {
|
|
205
|
-
backgroundColor: theme_tokens_1.globalTokens.color.anchor.primary,
|
|
206
|
-
},
|
|
145
|
+
iconColor: t.colors.neutralForegroundOnBrand,
|
|
146
|
+
ringColor: t.colors.transparentStroke,
|
|
147
|
+
},
|
|
148
|
+
darkRed: getColorProps('darkRed', t),
|
|
149
|
+
cranberry: getColorProps('cranberry', t),
|
|
150
|
+
red: getColorProps('red', t),
|
|
151
|
+
pumpkin: getColorProps('pumpkin', t),
|
|
152
|
+
peach: getColorProps('peach', t),
|
|
153
|
+
marigold: getColorProps('marigold', t),
|
|
154
|
+
gold: getColorProps('gold', t),
|
|
155
|
+
brass: getColorProps('brass', t),
|
|
156
|
+
brown: getColorProps('brown', t),
|
|
157
|
+
forest: getColorProps('forest', t),
|
|
158
|
+
seafoam: getColorProps('seafoam', t),
|
|
159
|
+
darkGreen: getColorProps('darkGreen', t),
|
|
160
|
+
lightTeal: getColorProps('lightTeal', t),
|
|
161
|
+
teal: getColorProps('teal', t),
|
|
162
|
+
steel: getColorProps('steel', t),
|
|
163
|
+
blue: getColorProps('blue', t),
|
|
164
|
+
royalBlue: getColorProps('royalBlue', t),
|
|
165
|
+
cornflower: getColorProps('cornflower', t),
|
|
166
|
+
navy: getColorProps('navy', t),
|
|
167
|
+
lavender: getColorProps('lavender', t),
|
|
168
|
+
purple: getColorProps('purple', t),
|
|
169
|
+
grape: getColorProps('grape', t),
|
|
170
|
+
lilac: getColorProps('lilac', t),
|
|
171
|
+
pink: getColorProps('pink', t),
|
|
172
|
+
magenta: getColorProps('magenta', t),
|
|
173
|
+
plum: getColorProps('plum', t),
|
|
174
|
+
beige: getColorProps('beige', t),
|
|
175
|
+
mink: getColorProps('mink', t),
|
|
176
|
+
platinum: getColorProps('platinum', t),
|
|
177
|
+
anchor: getColorProps('anchor', t),
|
|
207
178
|
});
|
|
208
179
|
};
|
|
209
180
|
exports.defaultJSAvatarTokens = defaultJSAvatarTokens;
|
|
181
|
+
/**
|
|
182
|
+
* A function which returns object of props depending on color and theme.
|
|
183
|
+
* @param color
|
|
184
|
+
* @param theme
|
|
185
|
+
* @returns object of props - backgroundColor, color and ringColor
|
|
186
|
+
*/
|
|
187
|
+
function getColorProps(color, theme) {
|
|
188
|
+
var themeAppearance = theme.host.appearance;
|
|
189
|
+
switch (themeAppearance) {
|
|
190
|
+
case 'light':
|
|
191
|
+
default:
|
|
192
|
+
return {
|
|
193
|
+
backgroundColor: theme_tokens_1.globalTokens.color[color].tint40,
|
|
194
|
+
color: theme_tokens_1.globalTokens.color[color].shade30,
|
|
195
|
+
iconColor: theme_tokens_1.globalTokens.color[color].shade30,
|
|
196
|
+
ringColor: theme_tokens_1.globalTokens.color[color].primary,
|
|
197
|
+
};
|
|
198
|
+
case 'dark':
|
|
199
|
+
return {
|
|
200
|
+
backgroundColor: theme_tokens_1.globalTokens.color[color].shade30,
|
|
201
|
+
color: theme_tokens_1.globalTokens.color[color].tint40,
|
|
202
|
+
iconColor: theme_tokens_1.globalTokens.color[color].tint40,
|
|
203
|
+
ringColor: theme_tokens_1.globalTokens.color[color].tint30,
|
|
204
|
+
};
|
|
205
|
+
case 'highContrast':
|
|
206
|
+
return {
|
|
207
|
+
backgroundColor: theme.colors.neutralBackground6,
|
|
208
|
+
color: theme.colors.neutralForeground3,
|
|
209
|
+
iconColor: theme.colors.neutralForeground3,
|
|
210
|
+
ringColor: theme.colors.transparentStroke,
|
|
211
|
+
};
|
|
212
|
+
}
|
|
213
|
+
}
|
|
210
214
|
//# sourceMappingURL=JSAvatarTokens.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"JSAvatarTokens.js","sourceRoot":"","sources":["../src/JSAvatarTokens.ts"],"names":[],"mappings":";;;AAGA,oEAAmE;AAE5D,IAAM,qBAAqB,GAAyC,UAAC,CAAQ;IAClF,OAAA,CAAC;QACC,uBAAuB,EAAE,KAAK;QAC9B,qBAAqB,EAAE,KAAK;QAC5B,KAAK,EAAE,2BAAY,CAAC,KAAK,CAAC,KAAK;QAC/B,eAAe,EAAE,2BAAY,CAAC,KAAK,CAAC,UAAU,CAAC,OAAO;QACtD,aAAa,EAAE,CAAC;QAChB,KAAK,EAAE,EAAE;QACT,MAAM,EAAE,EAAE;QACV,QAAQ,EAAE;YACR,YAAY,EAAE,2BAAY,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM;SAChD;QACD,MAAM,EAAE;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-react-native/framework';
|
|
2
|
+
import { TokenSettings } from '@fluentui-react-native/use-styling';
|
|
3
|
+
import { JSAvatarTokens } from '.';
|
|
4
|
+
export declare const defaultJSAvatarTokens: TokenSettings<JSAvatarTokens, Theme>;
|
|
5
|
+
//# sourceMappingURL=JSAvatarTokens.win32.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"JSAvatarTokens.win32.d.ts","sourceRoot":"","sources":["../src/JSAvatarTokens.win32.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,kCAAkC,CAAC;AACzD,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACnE,OAAO,EAAE,cAAc,EAAE,MAAM,GAAG,CAAC;AAGnC,eAAO,MAAM,qBAAqB,EAAE,aAAa,CAAC,cAAc,EAAE,KAAK,CA2KjD,CAAC"}
|
|
@@ -0,0 +1,214 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.defaultJSAvatarTokens = void 0;
|
|
4
|
+
var theme_tokens_1 = require("@fluentui-react-native/theme-tokens");
|
|
5
|
+
var defaultJSAvatarTokens = function (t) {
|
|
6
|
+
return ({
|
|
7
|
+
horizontalIconAlignment: 'end',
|
|
8
|
+
verticalIconAlignment: 'end',
|
|
9
|
+
color: theme_tokens_1.globalTokens.color.white,
|
|
10
|
+
backgroundColor: theme_tokens_1.globalTokens.color.cornflower.primary,
|
|
11
|
+
avatarOpacity: 1,
|
|
12
|
+
fontFamily: t.typography.families.primary,
|
|
13
|
+
fontWeight: theme_tokens_1.globalTokens.font.weight.semibold,
|
|
14
|
+
fontSize: theme_tokens_1.globalTokens.font.size[200],
|
|
15
|
+
width: 24,
|
|
16
|
+
height: 24,
|
|
17
|
+
iconSize: 16,
|
|
18
|
+
iconColor: theme_tokens_1.globalTokens.color.white,
|
|
19
|
+
ringColor: t.colors.transparentStroke,
|
|
20
|
+
borderColor: theme_tokens_1.globalTokens.color.white,
|
|
21
|
+
borderWidth: t.name === 'HighContrast' ? 1 : 0,
|
|
22
|
+
circular: {
|
|
23
|
+
borderRadius: theme_tokens_1.globalTokens.corner.radius.circle,
|
|
24
|
+
},
|
|
25
|
+
square: {
|
|
26
|
+
borderRadius: theme_tokens_1.globalTokens.corner.radius.medium,
|
|
27
|
+
},
|
|
28
|
+
inactive: {
|
|
29
|
+
avatarOpacity: 0.8,
|
|
30
|
+
},
|
|
31
|
+
size20: {
|
|
32
|
+
width: 20,
|
|
33
|
+
height: 20,
|
|
34
|
+
badgeSize: 'smallest',
|
|
35
|
+
iconSize: 16,
|
|
36
|
+
fontSize: theme_tokens_1.globalTokens.font.size[100],
|
|
37
|
+
square: {
|
|
38
|
+
borderRadius: theme_tokens_1.globalTokens.corner.radius.small,
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
size24: {
|
|
42
|
+
width: 24,
|
|
43
|
+
height: 24,
|
|
44
|
+
badgeSize: 'smallest',
|
|
45
|
+
iconSize: 16,
|
|
46
|
+
fontSize: theme_tokens_1.globalTokens.font.size[100],
|
|
47
|
+
square: {
|
|
48
|
+
borderRadius: theme_tokens_1.globalTokens.corner.radius.small,
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
size28: {
|
|
52
|
+
width: 28,
|
|
53
|
+
height: 28,
|
|
54
|
+
badgeSize: 'smaller',
|
|
55
|
+
iconSize: 20,
|
|
56
|
+
fontWeight: theme_tokens_1.globalTokens.font.weight.semibold,
|
|
57
|
+
fontSize: theme_tokens_1.globalTokens.font.size[100],
|
|
58
|
+
},
|
|
59
|
+
size32: {
|
|
60
|
+
width: 32,
|
|
61
|
+
height: 32,
|
|
62
|
+
badgeSize: 'smaller',
|
|
63
|
+
iconSize: 20,
|
|
64
|
+
fontSize: theme_tokens_1.globalTokens.font.size[100],
|
|
65
|
+
},
|
|
66
|
+
size36: {
|
|
67
|
+
width: 36,
|
|
68
|
+
height: 36,
|
|
69
|
+
badgeSize: 'smaller',
|
|
70
|
+
iconSize: 20,
|
|
71
|
+
},
|
|
72
|
+
size40: {
|
|
73
|
+
width: 40,
|
|
74
|
+
height: 40,
|
|
75
|
+
badgeSize: 'small',
|
|
76
|
+
iconSize: 20,
|
|
77
|
+
},
|
|
78
|
+
size48: {
|
|
79
|
+
width: 48,
|
|
80
|
+
height: 48,
|
|
81
|
+
badgeSize: 'small',
|
|
82
|
+
iconSize: 24,
|
|
83
|
+
},
|
|
84
|
+
size56: {
|
|
85
|
+
width: 56,
|
|
86
|
+
height: 56,
|
|
87
|
+
badgeSize: 'medium',
|
|
88
|
+
iconSize: 28,
|
|
89
|
+
fontSize: theme_tokens_1.globalTokens.font.size[400],
|
|
90
|
+
square: {
|
|
91
|
+
borderRadius: theme_tokens_1.globalTokens.corner.radius.large,
|
|
92
|
+
},
|
|
93
|
+
},
|
|
94
|
+
size64: {
|
|
95
|
+
width: 64,
|
|
96
|
+
height: 64,
|
|
97
|
+
badgeSize: 'large',
|
|
98
|
+
iconSize: 32,
|
|
99
|
+
fontSize: theme_tokens_1.globalTokens.font.size[500],
|
|
100
|
+
square: {
|
|
101
|
+
borderRadius: theme_tokens_1.globalTokens.corner.radius.large,
|
|
102
|
+
},
|
|
103
|
+
},
|
|
104
|
+
size72: {
|
|
105
|
+
width: 72,
|
|
106
|
+
height: 72,
|
|
107
|
+
badgeSize: 'large',
|
|
108
|
+
iconSize: 32,
|
|
109
|
+
fontSize: theme_tokens_1.globalTokens.font.size[500],
|
|
110
|
+
square: {
|
|
111
|
+
borderRadius: theme_tokens_1.globalTokens.corner.radius.large,
|
|
112
|
+
},
|
|
113
|
+
},
|
|
114
|
+
size96: {
|
|
115
|
+
width: 96,
|
|
116
|
+
height: 96,
|
|
117
|
+
badgeSize: 'largest',
|
|
118
|
+
iconSize: 48,
|
|
119
|
+
fontWeight: theme_tokens_1.globalTokens.font.weight.regular,
|
|
120
|
+
fontSize: theme_tokens_1.globalTokens.font.size[700],
|
|
121
|
+
square: {
|
|
122
|
+
borderRadius: theme_tokens_1.globalTokens.corner.radius.extraLarge,
|
|
123
|
+
},
|
|
124
|
+
},
|
|
125
|
+
size120: {
|
|
126
|
+
width: 120,
|
|
127
|
+
height: 120,
|
|
128
|
+
badgeSize: 'largest',
|
|
129
|
+
iconSize: 48,
|
|
130
|
+
fontWeight: theme_tokens_1.globalTokens.font.weight.regular,
|
|
131
|
+
fontSize: theme_tokens_1.globalTokens.font.size[900],
|
|
132
|
+
square: {
|
|
133
|
+
borderRadius: theme_tokens_1.globalTokens.corner.radius.extraLarge,
|
|
134
|
+
},
|
|
135
|
+
},
|
|
136
|
+
neutral: {
|
|
137
|
+
backgroundColor: t.colors.neutralBackground6,
|
|
138
|
+
color: t.colors.neutralForeground3,
|
|
139
|
+
ringColor: t.colors.transparentStroke,
|
|
140
|
+
},
|
|
141
|
+
brand: {
|
|
142
|
+
backgroundColor: t.colors.brandBackgroundStatic,
|
|
143
|
+
color: t.colors.neutralForegroundOnBrand,
|
|
144
|
+
ringColor: t.colors.transparentStroke,
|
|
145
|
+
},
|
|
146
|
+
darkRed: getColorProps('darkRed', t),
|
|
147
|
+
cranberry: getColorProps('cranberry', t),
|
|
148
|
+
red: getColorProps('red', t),
|
|
149
|
+
pumpkin: getColorProps('pumpkin', t),
|
|
150
|
+
peach: getColorProps('peach', t),
|
|
151
|
+
marigold: getColorProps('marigold', t),
|
|
152
|
+
gold: getColorProps('gold', t),
|
|
153
|
+
brass: getColorProps('brass', t),
|
|
154
|
+
brown: getColorProps('brown', t),
|
|
155
|
+
forest: getColorProps('forest', t),
|
|
156
|
+
seafoam: getColorProps('seafoam', t),
|
|
157
|
+
darkGreen: getColorProps('darkGreen', t),
|
|
158
|
+
lightTeal: getColorProps('lightTeal', t),
|
|
159
|
+
teal: getColorProps('teal', t),
|
|
160
|
+
steel: getColorProps('steel', t),
|
|
161
|
+
blue: getColorProps('blue', t),
|
|
162
|
+
royalBlue: getColorProps('royalBlue', t),
|
|
163
|
+
cornflower: getColorProps('cornflower', t),
|
|
164
|
+
navy: getColorProps('navy', t),
|
|
165
|
+
lavender: getColorProps('lavender', t),
|
|
166
|
+
purple: getColorProps('purple', t),
|
|
167
|
+
grape: getColorProps('grape', t),
|
|
168
|
+
lilac: getColorProps('lilac', t),
|
|
169
|
+
pink: getColorProps('pink', t),
|
|
170
|
+
magenta: getColorProps('magenta', t),
|
|
171
|
+
plum: getColorProps('plum', t),
|
|
172
|
+
beige: getColorProps('beige', t),
|
|
173
|
+
mink: getColorProps('mink', t),
|
|
174
|
+
platinum: getColorProps('platinum', t),
|
|
175
|
+
anchor: getColorProps('anchor', t),
|
|
176
|
+
});
|
|
177
|
+
};
|
|
178
|
+
exports.defaultJSAvatarTokens = defaultJSAvatarTokens;
|
|
179
|
+
/**
|
|
180
|
+
* A function which returns object of props depending on color and theme.
|
|
181
|
+
* @param color
|
|
182
|
+
* @param theme
|
|
183
|
+
* @returns object of props - backgroundColor, color and ringColor
|
|
184
|
+
*/
|
|
185
|
+
function getColorProps(color, theme) {
|
|
186
|
+
var themeAppearance = theme.name;
|
|
187
|
+
switch (themeAppearance) {
|
|
188
|
+
case 'White':
|
|
189
|
+
case 'Colorful':
|
|
190
|
+
default:
|
|
191
|
+
return {
|
|
192
|
+
backgroundColor: theme_tokens_1.globalTokens.color[color].tint40,
|
|
193
|
+
color: theme_tokens_1.globalTokens.color[color].shade30,
|
|
194
|
+
iconColor: theme_tokens_1.globalTokens.color[color].shade30,
|
|
195
|
+
ringColor: theme_tokens_1.globalTokens.color[color].primary,
|
|
196
|
+
};
|
|
197
|
+
case 'DarkGray':
|
|
198
|
+
case 'Black':
|
|
199
|
+
return {
|
|
200
|
+
backgroundColor: theme_tokens_1.globalTokens.color[color].shade30,
|
|
201
|
+
color: theme_tokens_1.globalTokens.color[color].tint40,
|
|
202
|
+
iconColor: theme_tokens_1.globalTokens.color[color].tint40,
|
|
203
|
+
ringColor: theme_tokens_1.globalTokens.color[color].tint30,
|
|
204
|
+
};
|
|
205
|
+
case 'HighContrast':
|
|
206
|
+
return {
|
|
207
|
+
backgroundColor: theme.colors.neutralBackground6,
|
|
208
|
+
color: theme.colors.neutralForeground3,
|
|
209
|
+
iconColor: theme.colors.neutralForeground3,
|
|
210
|
+
ringColor: theme.colors.transparentStroke,
|
|
211
|
+
};
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
//# sourceMappingURL=JSAvatarTokens.win32.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"JSAvatarTokens.win32.js","sourceRoot":"","sources":["../src/JSAvatarTokens.win32.ts"],"names":[],"mappings":";;;AAGA,oEAAmE;AAE5D,IAAM,qBAAqB,GAAyC,UAAC,CAAQ;IAClF,OAAA,CAAC;QACC,uBAAuB,EAAE,KAAK;QAC9B,qBAAqB,EAAE,KAAK;QAC5B,KAAK,EAAE,2BAAY,CAAC,KAAK,CAAC,KAAK;QAC/B,eAAe,EAAE,2BAAY,CAAC,KAAK,CAAC,UAAU,CAAC,OAAO;QACtD,aAAa,EAAE,CAAC;QAChB,UAAU,EAAE,CAAC,CAAC,UAAU,CAAC,QAAQ,CAAC,OAAO;QACzC,UAAU,EAAE,2BAAY,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ;QAC7C,QAAQ,EAAE,2BAAY,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC;QACrC,KAAK,EAAE,EAAE;QACT,MAAM,EAAE,EAAE;QACV,QAAQ,EAAE,EAAE;QACZ,SAAS,EAAE,2BAAY,CAAC,KAAK,CAAC,KAAK;QACnC,SAAS,EAAE,CAAC,CAAC,MAAM,CAAC,iBAAiB;QACrC,WAAW,EAAE,2BAAY,CAAC,KAAK,CAAC,KAAK;QACrC,WAAW,EAAE,CAAC,CAAC,IAAI,KAAK,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAC9C,QAAQ,EAAE;YACR,YAAY,EAAE,2BAAY,CAAC,MAAM,CA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