@fluentui-react-native/experimental-avatar 0.14.21 → 0.14.22
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 +16 -1
- package/CHANGELOG.md +10 -2
- package/lib/JSAvatar.d.ts.map +1 -1
- package/lib/JSAvatar.helpers.d.ts +0 -5
- package/lib/JSAvatar.helpers.d.ts.map +1 -1
- package/lib/JSAvatar.helpers.js +0 -28
- package/lib/JSAvatar.helpers.js.map +1 -1
- package/lib/JSAvatar.js +2 -0
- package/lib/JSAvatar.js.map +1 -1
- package/lib/JSAvatar.styling.d.ts.map +1 -1
- package/lib/JSAvatar.styling.js +14 -34
- package/lib/JSAvatar.styling.js.map +1 -1
- package/lib/JSAvatar.types.d.ts +63 -17
- package/lib/JSAvatar.types.d.ts.map +1 -1
- package/lib/JSAvatar.types.js +35 -0
- package/lib/JSAvatar.types.js.map +1 -1
- package/lib/JSAvatarTokens.d.ts.map +1 -1
- package/lib/JSAvatarTokens.js +103 -5
- package/lib/JSAvatarTokens.js.map +1 -1
- package/lib-commonjs/JSAvatar.d.ts.map +1 -1
- package/lib-commonjs/JSAvatar.helpers.d.ts +0 -5
- package/lib-commonjs/JSAvatar.helpers.d.ts.map +1 -1
- package/lib-commonjs/JSAvatar.helpers.js +1 -30
- package/lib-commonjs/JSAvatar.helpers.js.map +1 -1
- package/lib-commonjs/JSAvatar.js +2 -0
- package/lib-commonjs/JSAvatar.js.map +1 -1
- package/lib-commonjs/JSAvatar.styling.d.ts.map +1 -1
- package/lib-commonjs/JSAvatar.styling.js +12 -32
- package/lib-commonjs/JSAvatar.styling.js.map +1 -1
- package/lib-commonjs/JSAvatar.types.d.ts +63 -17
- package/lib-commonjs/JSAvatar.types.d.ts.map +1 -1
- package/lib-commonjs/JSAvatar.types.js +36 -1
- package/lib-commonjs/JSAvatar.types.js.map +1 -1
- package/lib-commonjs/JSAvatarTokens.d.ts.map +1 -1
- package/lib-commonjs/JSAvatarTokens.js +103 -5
- package/lib-commonjs/JSAvatarTokens.js.map +1 -1
- package/package.json +1 -1
- package/src/JSAvatar.helpers.ts +0 -31
- package/src/JSAvatar.styling.ts +15 -35
- package/src/JSAvatar.tsx +2 -0
- package/src/JSAvatar.types.ts +98 -39
- package/src/JSAvatarTokens.ts +103 -5
package/src/JSAvatar.styling.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { JSAvatarName, JSAvatarTokens, AvatarSlotProps, JSAvatarProps } from './JSAvatar.types';
|
|
1
|
+
import { JSAvatarName, JSAvatarTokens, AvatarSlotProps, JSAvatarProps, AvatarColors, AvatarSizes } from './JSAvatar.types';
|
|
2
2
|
import { Theme, UseStylingOptions, buildProps } from '@fluentui-react-native/framework';
|
|
3
3
|
import { defaultJSAvatarTokens } from './JSAvatarTokens';
|
|
4
4
|
import { ViewStyle } from 'react-native';
|
|
5
|
-
import {
|
|
5
|
+
import { getRingConfig } from './JSAvatar.helpers';
|
|
6
6
|
import { borderStyles } from '@fluentui-react-native/tokens';
|
|
7
7
|
|
|
8
8
|
const nameMap: { [key: string]: string } = {
|
|
@@ -11,23 +11,7 @@ const nameMap: { [key: string]: string } = {
|
|
|
11
11
|
end: 'flex-end',
|
|
12
12
|
};
|
|
13
13
|
|
|
14
|
-
export const avatarStates: (keyof JSAvatarTokens)[] = [
|
|
15
|
-
'circular',
|
|
16
|
-
'square',
|
|
17
|
-
'inactive',
|
|
18
|
-
'size20',
|
|
19
|
-
'size24',
|
|
20
|
-
'size28',
|
|
21
|
-
'size32',
|
|
22
|
-
'size36',
|
|
23
|
-
'size40',
|
|
24
|
-
'size48',
|
|
25
|
-
'size56',
|
|
26
|
-
'size64',
|
|
27
|
-
'size72',
|
|
28
|
-
'size96',
|
|
29
|
-
'size120',
|
|
30
|
-
];
|
|
14
|
+
export const avatarStates: (keyof JSAvatarTokens)[] = [...AvatarColors, ...AvatarSizes, 'circular', 'square', 'inactive'];
|
|
31
15
|
|
|
32
16
|
export const stylingSettings: UseStylingOptions<JSAvatarProps, AvatarSlotProps, JSAvatarTokens> = {
|
|
33
17
|
tokens: [defaultJSAvatarTokens, JSAvatarName],
|
|
@@ -35,17 +19,17 @@ export const stylingSettings: UseStylingOptions<JSAvatarProps, AvatarSlotProps,
|
|
|
35
19
|
slotProps: {
|
|
36
20
|
root: buildProps(
|
|
37
21
|
(tokens: JSAvatarTokens) => {
|
|
38
|
-
const { horizontalIconAlignment, verticalIconAlignment } = tokens;
|
|
22
|
+
const { horizontalIconAlignment, verticalIconAlignment, width, height, avatarOpacity } = tokens;
|
|
39
23
|
return {
|
|
40
24
|
style: {
|
|
41
25
|
flexDirection: 'row',
|
|
42
|
-
width:
|
|
43
|
-
height:
|
|
26
|
+
width: width,
|
|
27
|
+
height: height,
|
|
44
28
|
justifyContent: nameMap[horizontalIconAlignment || 'end'] as ViewStyle['justifyContent'],
|
|
45
29
|
alignItems: nameMap[verticalIconAlignment || 'end'] as ViewStyle['alignItems'],
|
|
46
30
|
horizontalIconAlignment,
|
|
47
31
|
verticalIconAlignment,
|
|
48
|
-
opacity:
|
|
32
|
+
opacity: avatarOpacity,
|
|
49
33
|
},
|
|
50
34
|
};
|
|
51
35
|
},
|
|
@@ -56,18 +40,16 @@ export const stylingSettings: UseStylingOptions<JSAvatarProps, AvatarSlotProps,
|
|
|
56
40
|
return {
|
|
57
41
|
style: {
|
|
58
42
|
fontSize: tokens.initialsSize,
|
|
43
|
+
color: tokens.color,
|
|
59
44
|
},
|
|
60
45
|
};
|
|
61
46
|
},
|
|
62
|
-
['initialsSize'],
|
|
47
|
+
['initialsSize', 'color'],
|
|
63
48
|
),
|
|
64
49
|
initialsBackground: buildProps(
|
|
65
50
|
(tokens: JSAvatarTokens, theme: Theme) => {
|
|
66
|
-
const { backgroundColor
|
|
67
|
-
|
|
68
|
-
if (coinColorFluent) {
|
|
69
|
-
effectiveBackgroundColor = convertCoinColorFluent(coinColorFluent);
|
|
70
|
-
}
|
|
51
|
+
const { backgroundColor } = tokens;
|
|
52
|
+
|
|
71
53
|
return {
|
|
72
54
|
style: {
|
|
73
55
|
...borderStyles.from(tokens, theme),
|
|
@@ -77,11 +59,11 @@ export const stylingSettings: UseStylingOptions<JSAvatarProps, AvatarSlotProps,
|
|
|
77
59
|
alignSelf: 'stretch',
|
|
78
60
|
justifyContent: 'center',
|
|
79
61
|
alignItems: 'center',
|
|
80
|
-
backgroundColor:
|
|
62
|
+
backgroundColor: backgroundColor,
|
|
81
63
|
},
|
|
82
64
|
};
|
|
83
65
|
},
|
|
84
|
-
['
|
|
66
|
+
['backgroundColor', 'width', 'height', ...borderStyles.keys],
|
|
85
67
|
),
|
|
86
68
|
image: buildProps(
|
|
87
69
|
(tokens: JSAvatarTokens) => {
|
|
@@ -110,12 +92,10 @@ export const stylingSettings: UseStylingOptions<JSAvatarProps, AvatarSlotProps,
|
|
|
110
92
|
ring: buildProps(
|
|
111
93
|
(tokens: JSAvatarTokens, theme: Theme) => {
|
|
112
94
|
const ringConfig = getRingConfig(tokens.width);
|
|
113
|
-
|
|
114
|
-
const ringColor = tokens.ringColor;
|
|
115
95
|
return {
|
|
116
96
|
style: {
|
|
117
97
|
borderStyle: 'solid',
|
|
118
|
-
borderColor: ringColor,
|
|
98
|
+
borderColor: tokens.ringColor,
|
|
119
99
|
borderWidth: ringConfig.stroke,
|
|
120
100
|
width: ringConfig.size,
|
|
121
101
|
height: ringConfig.size,
|
|
@@ -126,7 +106,7 @@ export const stylingSettings: UseStylingOptions<JSAvatarProps, AvatarSlotProps,
|
|
|
126
106
|
},
|
|
127
107
|
};
|
|
128
108
|
},
|
|
129
|
-
['width', 'height', ...borderStyles.keys],
|
|
109
|
+
['width', 'height', 'ringColor', ...borderStyles.keys],
|
|
130
110
|
),
|
|
131
111
|
badge: buildProps(
|
|
132
112
|
(tokens: JSAvatarTokens) => {
|
package/src/JSAvatar.tsx
CHANGED
|
@@ -22,6 +22,8 @@ export const avatarLookup = (layer: string, state: JSAvatarState, userProps: JSA
|
|
|
22
22
|
userProps[layer] ||
|
|
23
23
|
layer === userProps['shape'] ||
|
|
24
24
|
(!userProps['shape'] && layer === 'circular') ||
|
|
25
|
+
layer === userProps['avatarColor'] ||
|
|
26
|
+
(!userProps['avatarColor'] && layer === 'brand') ||
|
|
25
27
|
layer === userProps['size'] ||
|
|
26
28
|
(!userProps['size'] && layer === 'size56') ||
|
|
27
29
|
(userProps.active === 'inactive' && layer === 'inactive')
|
package/src/JSAvatar.types.ts
CHANGED
|
@@ -19,36 +19,51 @@ export const AvatarSizes = [
|
|
|
19
19
|
'size96',
|
|
20
20
|
'size120',
|
|
21
21
|
] as const;
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Sets color of the avatar when there is no picture. Uses fluent color names
|
|
25
|
+
*/
|
|
26
|
+
export const AvatarColors = [
|
|
27
|
+
'darkRed',
|
|
28
|
+
'cranberry',
|
|
29
|
+
'red',
|
|
30
|
+
'pumpkin',
|
|
31
|
+
'peach',
|
|
32
|
+
'marigold',
|
|
33
|
+
'gold',
|
|
34
|
+
'brass',
|
|
35
|
+
'brown',
|
|
36
|
+
'forest',
|
|
37
|
+
'seafoam',
|
|
38
|
+
'darkGreen',
|
|
39
|
+
'lightTeal',
|
|
40
|
+
'teal',
|
|
41
|
+
'steel',
|
|
42
|
+
'blue',
|
|
43
|
+
'royalBlue',
|
|
44
|
+
'cornflower',
|
|
45
|
+
'navy',
|
|
46
|
+
'lavender',
|
|
47
|
+
'purple',
|
|
48
|
+
'grape',
|
|
49
|
+
'lilac',
|
|
50
|
+
'pink',
|
|
51
|
+
'magenta',
|
|
52
|
+
'plum',
|
|
53
|
+
'beige',
|
|
54
|
+
'mink',
|
|
55
|
+
'platinum',
|
|
56
|
+
'anchor',
|
|
57
|
+
] as const;
|
|
22
58
|
export type AvatarSize = typeof AvatarSizes[number];
|
|
59
|
+
export type AvatarNamedColor = typeof AvatarColors[number];
|
|
23
60
|
|
|
24
61
|
export type AvatarShape = 'circular' | 'square';
|
|
25
62
|
export type AvatarActive = 'active' | 'inactive' | 'unset';
|
|
26
63
|
export type AvatarActiveAppearance = 'ring' | 'shadow' | 'glow' | 'ring-shadow' | 'ring-glow';
|
|
64
|
+
export type AvatarColor = 'neutral' | 'brand' | 'colorful' | AvatarNamedColor;
|
|
65
|
+
export type IconAlignment = 'start' | 'center' | 'end';
|
|
27
66
|
|
|
28
|
-
/**
|
|
29
|
-
* Sets color of the avatar when there is no picture. Uses fluent color names
|
|
30
|
-
*/
|
|
31
|
-
export type AvatarColor =
|
|
32
|
-
| 'cornflower'
|
|
33
|
-
| 'blue'
|
|
34
|
-
| 'royalBlue'
|
|
35
|
-
| 'teal'
|
|
36
|
-
| 'forest'
|
|
37
|
-
| 'darkGreen'
|
|
38
|
-
| 'berry'
|
|
39
|
-
| 'hotPink'
|
|
40
|
-
| 'grape'
|
|
41
|
-
| 'purple'
|
|
42
|
-
| 'pumpkin'
|
|
43
|
-
| 'red'
|
|
44
|
-
| 'burgundy'
|
|
45
|
-
| 'orchid'
|
|
46
|
-
| 'brass'
|
|
47
|
-
| 'darkRed'
|
|
48
|
-
| 'beige'
|
|
49
|
-
| 'platinum'
|
|
50
|
-
| 'steel'
|
|
51
|
-
| 'brown';
|
|
52
67
|
export interface RingConfig {
|
|
53
68
|
accent?: boolean;
|
|
54
69
|
transparent?: boolean;
|
|
@@ -59,9 +74,18 @@ export interface RingConfig {
|
|
|
59
74
|
}
|
|
60
75
|
|
|
61
76
|
export interface AvatarConfigurableProps {
|
|
77
|
+
/**
|
|
78
|
+
* The color when displaying either an icon or initials.
|
|
79
|
+
* * neutral (default): gray
|
|
80
|
+
* * brand: color from the brand palette
|
|
81
|
+
* * colorful: picks a color from a set of pre-defined colors, based on a hash of the name (or idForColor if provided)
|
|
82
|
+
* * [AvatarNamedColor]: a specific color from the theme
|
|
83
|
+
*
|
|
84
|
+
* @defaultvalue neutral
|
|
85
|
+
*/
|
|
86
|
+
avatarColor?: AvatarColor;
|
|
62
87
|
size?: AvatarSize;
|
|
63
88
|
ring?: RingConfig;
|
|
64
|
-
coinColorFluent?: AvatarColor;
|
|
65
89
|
}
|
|
66
90
|
|
|
67
91
|
export interface JSAvatarProps extends IViewProps, AvatarConfigurableProps {
|
|
@@ -69,6 +93,13 @@ export interface JSAvatarProps extends IViewProps, AvatarConfigurableProps {
|
|
|
69
93
|
activeAppearance?: AvatarActiveAppearance;
|
|
70
94
|
badge?: PresenceBadgeProps;
|
|
71
95
|
icon?: IconSourcesType;
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* Specify a string to be used instead of the name, to determine which color to use when color="colorful".
|
|
99
|
+
* Use this when a name is not available, but there is another unique identifier that can be used instead.
|
|
100
|
+
*/
|
|
101
|
+
idForColor?: string | undefined;
|
|
102
|
+
|
|
72
103
|
image?: ImageProps;
|
|
73
104
|
initials?: string;
|
|
74
105
|
name?: string;
|
|
@@ -76,22 +107,8 @@ export interface JSAvatarProps extends IViewProps, AvatarConfigurableProps {
|
|
|
76
107
|
src?: string;
|
|
77
108
|
}
|
|
78
109
|
|
|
79
|
-
export interface AvatarSlotProps {
|
|
80
|
-
root: ViewProps;
|
|
81
|
-
image: ImageProps;
|
|
82
|
-
initials: TextProps;
|
|
83
|
-
initialsBackground: ViewProps;
|
|
84
|
-
icon: IconProps;
|
|
85
|
-
ring: ViewProps;
|
|
86
|
-
badge: BadgeProps;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
export type IconAlignment = 'start' | 'center' | 'end';
|
|
90
|
-
|
|
91
110
|
export interface JSAvatarTokens extends IBackgroundColorTokens, IForegroundColorTokens, AvatarConfigurableProps, IBorderTokens {
|
|
92
111
|
iconSize?: number;
|
|
93
|
-
iconStrokeWidth?: number;
|
|
94
|
-
iconStrokeColor?: string;
|
|
95
112
|
initialsSize?: number;
|
|
96
113
|
height?: number;
|
|
97
114
|
horizontalIconAlignment?: IconAlignment;
|
|
@@ -115,6 +132,48 @@ export interface JSAvatarTokens extends IBackgroundColorTokens, IForegroundColor
|
|
|
115
132
|
size120?: JSAvatarTokens;
|
|
116
133
|
width?: number;
|
|
117
134
|
badgeSize?: BadgeSize;
|
|
135
|
+
neutral?: JSAvatarTokens;
|
|
136
|
+
brand?: JSAvatarTokens;
|
|
137
|
+
darkRed?: JSAvatarTokens;
|
|
138
|
+
cranberry?: JSAvatarTokens;
|
|
139
|
+
red?: JSAvatarTokens;
|
|
140
|
+
pumpkin?: JSAvatarTokens;
|
|
141
|
+
peach?: JSAvatarTokens;
|
|
142
|
+
marigold?: JSAvatarTokens;
|
|
143
|
+
gold?: JSAvatarTokens;
|
|
144
|
+
brass?: JSAvatarTokens;
|
|
145
|
+
brown?: JSAvatarTokens;
|
|
146
|
+
forest?: JSAvatarTokens;
|
|
147
|
+
seafoam?: JSAvatarTokens;
|
|
148
|
+
darkGreen?: JSAvatarTokens;
|
|
149
|
+
lightTeal?: JSAvatarTokens;
|
|
150
|
+
teal?: JSAvatarTokens;
|
|
151
|
+
steel?: JSAvatarTokens;
|
|
152
|
+
blue?: JSAvatarTokens;
|
|
153
|
+
royalBlue?: JSAvatarTokens;
|
|
154
|
+
cornflower?: JSAvatarTokens;
|
|
155
|
+
navy?: JSAvatarTokens;
|
|
156
|
+
lavender?: JSAvatarTokens;
|
|
157
|
+
purple?: JSAvatarTokens;
|
|
158
|
+
grape?: JSAvatarTokens;
|
|
159
|
+
lilac?: JSAvatarTokens;
|
|
160
|
+
pink?: JSAvatarTokens;
|
|
161
|
+
magenta?: JSAvatarTokens;
|
|
162
|
+
plum?: JSAvatarTokens;
|
|
163
|
+
beige?: JSAvatarTokens;
|
|
164
|
+
mink?: JSAvatarTokens;
|
|
165
|
+
platinum?: JSAvatarTokens;
|
|
166
|
+
anchor?: JSAvatarTokens;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
export interface AvatarSlotProps {
|
|
170
|
+
root: ViewProps;
|
|
171
|
+
image: ImageProps;
|
|
172
|
+
initials: TextProps;
|
|
173
|
+
initialsBackground: ViewProps;
|
|
174
|
+
icon: IconProps;
|
|
175
|
+
ring: ViewProps;
|
|
176
|
+
badge: BadgeProps;
|
|
118
177
|
}
|
|
119
178
|
|
|
120
179
|
export interface JSAvatarState {
|
package/src/JSAvatarTokens.ts
CHANGED
|
@@ -1,16 +1,14 @@
|
|
|
1
1
|
import { Theme } from '@fluentui-react-native/framework';
|
|
2
2
|
import { TokenSettings } from '@fluentui-react-native/use-styling';
|
|
3
3
|
import { JSAvatarTokens } from '.';
|
|
4
|
-
import { convertCoinColorFluent } from './JSAvatar.helpers';
|
|
5
4
|
import { globalTokens } from '@fluentui-react-native/theme-tokens';
|
|
6
5
|
|
|
7
|
-
export const defaultJSAvatarTokens: TokenSettings<JSAvatarTokens, Theme> = () =>
|
|
6
|
+
export const defaultJSAvatarTokens: TokenSettings<JSAvatarTokens, Theme> = (t: Theme) =>
|
|
8
7
|
({
|
|
9
8
|
horizontalIconAlignment: 'end',
|
|
10
9
|
verticalIconAlignment: 'end',
|
|
11
|
-
color:
|
|
12
|
-
|
|
13
|
-
backgroundColor: convertCoinColorFluent('cornflower'),
|
|
10
|
+
color: globalTokens.color.white,
|
|
11
|
+
backgroundColor: globalTokens.color.cornflower.primary,
|
|
14
12
|
avatarOpacity: 1,
|
|
15
13
|
circular: {
|
|
16
14
|
borderRadius: globalTokens.corner.radius.circle,
|
|
@@ -105,4 +103,104 @@ export const defaultJSAvatarTokens: TokenSettings<JSAvatarTokens, Theme> = () =>
|
|
|
105
103
|
iconSize: 40,
|
|
106
104
|
initialsSize: 48,
|
|
107
105
|
},
|
|
106
|
+
neutral: {
|
|
107
|
+
backgroundColor: t.colors.neutralBackground6,
|
|
108
|
+
color: t.colors.neutralForeground3,
|
|
109
|
+
ringColor: t.colors.defaultBorder,
|
|
110
|
+
},
|
|
111
|
+
brand: {
|
|
112
|
+
backgroundColor: t.colors.brandBackgroundStatic,
|
|
113
|
+
color: t.colors.neutralForegroundOnBrand,
|
|
114
|
+
ringColor: t.colors.brandedBorder,
|
|
115
|
+
},
|
|
116
|
+
darkRed: {
|
|
117
|
+
backgroundColor: globalTokens.color.darkRed.primary,
|
|
118
|
+
},
|
|
119
|
+
cranberry: {
|
|
120
|
+
backgroundColor: globalTokens.color.cranberry.primary,
|
|
121
|
+
},
|
|
122
|
+
red: {
|
|
123
|
+
backgroundColor: globalTokens.color.red.primary,
|
|
124
|
+
},
|
|
125
|
+
pumpkin: {
|
|
126
|
+
backgroundColor: globalTokens.color.pumpkin.primary,
|
|
127
|
+
},
|
|
128
|
+
peach: {
|
|
129
|
+
backgroundColor: globalTokens.color.peach.primary,
|
|
130
|
+
},
|
|
131
|
+
marigold: {
|
|
132
|
+
backgroundColor: globalTokens.color.marigold.primary,
|
|
133
|
+
},
|
|
134
|
+
gold: {
|
|
135
|
+
backgroundColor: globalTokens.color.gold.primary,
|
|
136
|
+
},
|
|
137
|
+
brass: {
|
|
138
|
+
backgroundColor: globalTokens.color.brass.primary,
|
|
139
|
+
},
|
|
140
|
+
brown: {
|
|
141
|
+
backgroundColor: globalTokens.color.brown.primary,
|
|
142
|
+
},
|
|
143
|
+
forest: {
|
|
144
|
+
backgroundColor: globalTokens.color.forest.primary,
|
|
145
|
+
},
|
|
146
|
+
seafoam: {
|
|
147
|
+
backgroundColor: globalTokens.color.seafoam.primary,
|
|
148
|
+
},
|
|
149
|
+
darkGreen: {
|
|
150
|
+
backgroundColor: globalTokens.color.darkGreen.primary,
|
|
151
|
+
},
|
|
152
|
+
lightTeal: {
|
|
153
|
+
backgroundColor: globalTokens.color.lightTeal.primary,
|
|
154
|
+
},
|
|
155
|
+
teal: {
|
|
156
|
+
backgroundColor: globalTokens.color.teal.primary,
|
|
157
|
+
},
|
|
158
|
+
steel: {
|
|
159
|
+
backgroundColor: globalTokens.color.steel.primary,
|
|
160
|
+
},
|
|
161
|
+
blue: {
|
|
162
|
+
backgroundColor: globalTokens.color.blue.primary,
|
|
163
|
+
},
|
|
164
|
+
royalBlue: {
|
|
165
|
+
backgroundColor: globalTokens.color.royalBlue.primary,
|
|
166
|
+
},
|
|
167
|
+
cornflower: {
|
|
168
|
+
backgroundColor: globalTokens.color.cornflower.primary,
|
|
169
|
+
},
|
|
170
|
+
navy: {
|
|
171
|
+
backgroundColor: globalTokens.color.navy.primary,
|
|
172
|
+
},
|
|
173
|
+
lavender: {
|
|
174
|
+
backgroundColor: globalTokens.color.lavender.primary,
|
|
175
|
+
},
|
|
176
|
+
purple: {
|
|
177
|
+
backgroundColor: globalTokens.color.purple.primary,
|
|
178
|
+
},
|
|
179
|
+
grape: {
|
|
180
|
+
backgroundColor: globalTokens.color.grape.primary,
|
|
181
|
+
},
|
|
182
|
+
lilac: {
|
|
183
|
+
backgroundColor: globalTokens.color.lilac.primary,
|
|
184
|
+
},
|
|
185
|
+
pink: {
|
|
186
|
+
backgroundColor: globalTokens.color.pink.primary,
|
|
187
|
+
},
|
|
188
|
+
magenta: {
|
|
189
|
+
backgroundColor: globalTokens.color.magenta.primary,
|
|
190
|
+
},
|
|
191
|
+
plum: {
|
|
192
|
+
backgroundColor: globalTokens.color.plum.primary,
|
|
193
|
+
},
|
|
194
|
+
beige: {
|
|
195
|
+
backgroundColor: globalTokens.color.beige.primary,
|
|
196
|
+
},
|
|
197
|
+
mink: {
|
|
198
|
+
backgroundColor: globalTokens.color.mink.primary,
|
|
199
|
+
},
|
|
200
|
+
platinum: {
|
|
201
|
+
backgroundColor: globalTokens.color.platinum.primary,
|
|
202
|
+
},
|
|
203
|
+
anchor: {
|
|
204
|
+
backgroundColor: globalTokens.color.anchor.primary,
|
|
205
|
+
},
|
|
108
206
|
} as JSAvatarTokens);
|