@fluentui-react-native/experimental-avatar 0.14.28 → 0.14.31

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.
Files changed (44) hide show
  1. package/CHANGELOG.json +106 -1
  2. package/CHANGELOG.md +36 -2
  3. package/SPEC.md +310 -0
  4. package/lib/JSAvatar.js +2 -2
  5. package/lib/JSAvatar.js.map +1 -1
  6. package/lib/JSAvatar.styling.d.ts.map +1 -1
  7. package/lib/JSAvatar.styling.js +17 -15
  8. package/lib/JSAvatar.styling.js.map +1 -1
  9. package/lib/JSAvatar.types.d.ts +21 -13
  10. package/lib/JSAvatar.types.d.ts.map +1 -1
  11. package/lib/JSAvatarTokens.d.ts.map +1 -1
  12. package/lib/JSAvatarTokens.js +13 -26
  13. package/lib/JSAvatarTokens.js.map +1 -1
  14. package/lib/JSAvatarTokens.win32.d.ts.map +1 -1
  15. package/lib/JSAvatarTokens.win32.js +13 -26
  16. package/lib/JSAvatarTokens.win32.js.map +1 -1
  17. package/lib/useAvatar.d.ts.map +1 -1
  18. package/lib/useAvatar.js +0 -1
  19. package/lib/useAvatar.js.map +1 -1
  20. package/lib-commonjs/JSAvatar.js +2 -2
  21. package/lib-commonjs/JSAvatar.js.map +1 -1
  22. package/lib-commonjs/JSAvatar.styling.d.ts.map +1 -1
  23. package/lib-commonjs/JSAvatar.styling.js +17 -15
  24. package/lib-commonjs/JSAvatar.styling.js.map +1 -1
  25. package/lib-commonjs/JSAvatar.types.d.ts +21 -13
  26. package/lib-commonjs/JSAvatar.types.d.ts.map +1 -1
  27. package/lib-commonjs/JSAvatarTokens.d.ts.map +1 -1
  28. package/lib-commonjs/JSAvatarTokens.js +13 -26
  29. package/lib-commonjs/JSAvatarTokens.js.map +1 -1
  30. package/lib-commonjs/JSAvatarTokens.win32.d.ts.map +1 -1
  31. package/lib-commonjs/JSAvatarTokens.win32.js +13 -26
  32. package/lib-commonjs/JSAvatarTokens.win32.js.map +1 -1
  33. package/lib-commonjs/useAvatar.d.ts.map +1 -1
  34. package/lib-commonjs/useAvatar.js +0 -1
  35. package/lib-commonjs/useAvatar.js.map +1 -1
  36. package/package.json +7 -7
  37. package/src/JSAvatar.styling.ts +18 -16
  38. package/src/JSAvatar.tsx +2 -2
  39. package/src/JSAvatar.types.ts +24 -14
  40. package/src/JSAvatarTokens.ts +13 -26
  41. package/src/JSAvatarTokens.win32.ts +13 -26
  42. package/src/__tests__/JSAvatar.test.jsx +5 -3
  43. package/src/__tests__/__snapshots__/JSAvatar.test.jsx.snap +1 -1
  44. package/src/useAvatar.ts +0 -1
package/CHANGELOG.json CHANGED
@@ -2,7 +2,112 @@
2
2
  "name": "@fluentui-react-native/experimental-avatar",
3
3
  "entries": [
4
4
  {
5
- "date": "Thu, 19 May 2022 20:09:08 GMT",
5
+ "date": "Sat, 21 May 2022 17:39:16 GMT",
6
+ "tag": "@fluentui-react-native/experimental-avatar_v0.14.31",
7
+ "version": "0.14.31",
8
+ "comments": {
9
+ "patch": [
10
+ {
11
+ "author": "v.kozova13@gmail.com",
12
+ "package": "@fluentui-react-native/experimental-avatar",
13
+ "commit": "402f3b57a1ed394acde8d43a83699cadd76502c4",
14
+ "comment": "Fixed size customization"
15
+ }
16
+ ]
17
+ }
18
+ },
19
+ {
20
+ "date": "Sat, 21 May 2022 16:18:06 GMT",
21
+ "tag": "@fluentui-react-native/experimental-avatar_v0.14.30",
22
+ "version": "0.14.30",
23
+ "comments": {
24
+ "patch": [
25
+ {
26
+ "author": "v.kozova13@gmail.com",
27
+ "package": "@fluentui-react-native/experimental-avatar",
28
+ "commit": "313cc45fbeb5bfaff0b266194cc48608bf6d2c35",
29
+ "comment": "Added documentation for the Avatar"
30
+ },
31
+ {
32
+ "author": "beachball",
33
+ "package": "@fluentui-react-native/experimental-avatar",
34
+ "comment": "Bump @fluentui-react-native/badge to v0.0.36",
35
+ "commit": "313cc45fbeb5bfaff0b266194cc48608bf6d2c35"
36
+ },
37
+ {
38
+ "author": "beachball",
39
+ "package": "@fluentui-react-native/experimental-avatar",
40
+ "comment": "Bump @fluentui-react-native/framework to v0.7.28",
41
+ "commit": "313cc45fbeb5bfaff0b266194cc48608bf6d2c35"
42
+ },
43
+ {
44
+ "author": "beachball",
45
+ "package": "@fluentui-react-native/experimental-avatar",
46
+ "comment": "Bump @fluentui-react-native/icon to v0.11.23",
47
+ "commit": "313cc45fbeb5bfaff0b266194cc48608bf6d2c35"
48
+ },
49
+ {
50
+ "author": "beachball",
51
+ "package": "@fluentui-react-native/experimental-avatar",
52
+ "comment": "Bump @fluentui-react-native/interactive-hooks to v0.15.8",
53
+ "commit": "313cc45fbeb5bfaff0b266194cc48608bf6d2c35"
54
+ },
55
+ {
56
+ "author": "beachball",
57
+ "package": "@fluentui-react-native/experimental-avatar",
58
+ "comment": "Bump @fluentui-react-native/tokens to v0.12.2",
59
+ "commit": "313cc45fbeb5bfaff0b266194cc48608bf6d2c35"
60
+ }
61
+ ]
62
+ }
63
+ },
64
+ {
65
+ "date": "Sat, 21 May 2022 01:47:58 GMT",
66
+ "tag": "@fluentui-react-native/experimental-avatar_v0.14.29",
67
+ "version": "0.14.29",
68
+ "comments": {
69
+ "patch": [
70
+ {
71
+ "author": "beachball",
72
+ "package": "@fluentui-react-native/experimental-avatar",
73
+ "comment": "Bump @fluentui-react-native/badge to v0.0.35",
74
+ "commit": "36ea0d81629f9326eb8c23912d9949381014dade"
75
+ },
76
+ {
77
+ "author": "beachball",
78
+ "package": "@fluentui-react-native/experimental-avatar",
79
+ "comment": "Bump @fluentui-react-native/framework to v0.7.27",
80
+ "commit": "36ea0d81629f9326eb8c23912d9949381014dade"
81
+ },
82
+ {
83
+ "author": "beachball",
84
+ "package": "@fluentui-react-native/experimental-avatar",
85
+ "comment": "Bump @fluentui-react-native/icon to v0.11.22",
86
+ "commit": "36ea0d81629f9326eb8c23912d9949381014dade"
87
+ },
88
+ {
89
+ "author": "beachball",
90
+ "package": "@fluentui-react-native/experimental-avatar",
91
+ "comment": "Bump @fluentui-react-native/interactive-hooks to v0.15.7",
92
+ "commit": "36ea0d81629f9326eb8c23912d9949381014dade"
93
+ },
94
+ {
95
+ "author": "beachball",
96
+ "package": "@fluentui-react-native/experimental-avatar",
97
+ "comment": "Bump @fluentui-react-native/theme-tokens to v0.16.3",
98
+ "commit": "36ea0d81629f9326eb8c23912d9949381014dade"
99
+ },
100
+ {
101
+ "author": "beachball",
102
+ "package": "@fluentui-react-native/experimental-avatar",
103
+ "comment": "Bump @fluentui-react-native/tokens to v0.12.1",
104
+ "commit": "36ea0d81629f9326eb8c23912d9949381014dade"
105
+ }
106
+ ]
107
+ }
108
+ },
109
+ {
110
+ "date": "Thu, 19 May 2022 20:09:25 GMT",
6
111
  "tag": "@fluentui-react-native/experimental-avatar_v0.14.28",
7
112
  "version": "0.14.28",
8
113
  "comments": {
package/CHANGELOG.md CHANGED
@@ -1,12 +1,46 @@
1
1
  # Change Log - @fluentui-react-native/experimental-avatar
2
2
 
3
- This log was last generated on Thu, 19 May 2022 20:09:08 GMT and should not be manually modified.
3
+ This log was last generated on Sat, 21 May 2022 17:39:16 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## 0.14.31
8
+
9
+ Sat, 21 May 2022 17:39:16 GMT
10
+
11
+ ### Patches
12
+
13
+ - Fixed size customization (v.kozova13@gmail.com)
14
+
15
+ ## 0.14.30
16
+
17
+ Sat, 21 May 2022 16:18:06 GMT
18
+
19
+ ### Patches
20
+
21
+ - Added documentation for the Avatar (v.kozova13@gmail.com)
22
+ - Bump @fluentui-react-native/badge to v0.0.36
23
+ - Bump @fluentui-react-native/framework to v0.7.28
24
+ - Bump @fluentui-react-native/icon to v0.11.23
25
+ - Bump @fluentui-react-native/interactive-hooks to v0.15.8
26
+ - Bump @fluentui-react-native/tokens to v0.12.2
27
+
28
+ ## 0.14.29
29
+
30
+ Sat, 21 May 2022 01:47:58 GMT
31
+
32
+ ### Patches
33
+
34
+ - Bump @fluentui-react-native/badge to v0.0.35
35
+ - Bump @fluentui-react-native/framework to v0.7.27
36
+ - Bump @fluentui-react-native/icon to v0.11.22
37
+ - Bump @fluentui-react-native/interactive-hooks to v0.15.7
38
+ - Bump @fluentui-react-native/theme-tokens to v0.16.3
39
+ - Bump @fluentui-react-native/tokens to v0.12.1
40
+
7
41
  ## 0.14.28
8
42
 
9
- Thu, 19 May 2022 20:09:08 GMT
43
+ Thu, 19 May 2022 20:09:25 GMT
10
44
 
11
45
  ### Patches
12
46
 
package/SPEC.md ADDED
@@ -0,0 +1,310 @@
1
+ # Avatar
2
+
3
+ ## Background
4
+
5
+ The Avatar component represents a person or entity. It displays the person's image, initials, or an icon, and can be either circular or square.
6
+ Previously it was a component PersonaCoin which used an old version of framework. There are more details in MIGRATION.md.
7
+
8
+ ```ts
9
+ import { JSAvatar } from '@fluentui-react-native/experimental-avatar';
10
+ ```
11
+
12
+ ## Sample Code
13
+
14
+ Basic examples:
15
+
16
+ ```jsx
17
+ <JSAvatar />
18
+ <JSAvatar icon={{ svgSource: { uri: 'https://www.example.com/test.svg', viewBox: '0 0 100 100' } }} size={120} />
19
+ <JSAvatar src="../../path-to-image.png" active="active" activeAppearance="ring" size={56} />
20
+ <JSAvatar shape="square" avatarColor="purple" name="Richard Feynman" />
21
+ ```
22
+
23
+ More examples on the [Test pages for the Avatar](../../../apps/fluent-tester/src/FluentTester/TestComponents/Avatar). Instructions on running the tester app can be found [here](../../../apps/fluent-tester/README.md).
24
+
25
+ ## Variants
26
+
27
+ ### Active
28
+
29
+ Optional activity indicator.
30
+ Active prop can be `unset`, `active` and `inactive`. Default is `unset`.
31
+
32
+ - active: the avatar will be decorated according to activeAppearance, e.g. `ring`.
33
+ - inactive: the avatar will be partially transparent (0.8 opacity).
34
+ - unset: normal display
35
+
36
+ ### ActiveAppearance
37
+
38
+ `activeAppearance` can be used when `active` prop set to `active`.
39
+ It adds `ring` as extra visual.
40
+
41
+ ### Badge
42
+
43
+ The `Avatar` component can include presence badge when active prop is undefined or `unset`.
44
+
45
+ ### Color
46
+
47
+ The Avatar supports color variants when displaying initials or an icon:
48
+
49
+ - Neutral - Gray (default).
50
+ - Brand - Brand colors from the theme
51
+ - Colorful - Pick from a list of pre-defined Avatar colors. The color will be assigned based on a hash of the name (to "randomly" assign a person a color). The color name (like darkRed) can also be specified explicitly in case the use case requires a different algorithm to pick the color.
52
+
53
+ ### Icon
54
+
55
+ The `Avatar` component can include an `icon` that appears if there's no image or initials.
56
+
57
+ ### Image
58
+
59
+ The `Avatar` component can include an `image`.
60
+
61
+ ### Initials
62
+
63
+ Initials can be passed using `initials` prop or generated from `name` prop using getInitials method.
64
+ Here are the requirements from Web spec:
65
+
66
+ 1. If only one word is provided, pull the first letter of the word.
67
+ 2. If 2 words provided, pull first letter of both words.
68
+ 3. If 2+ words provided, pull first letter of first word and last word.
69
+ 4. Ignore suffixes (i.e. Jr, III).
70
+ 5. Ignore words in parantheses Ignore special characters i.e. parantheses, dashes If numeric, fall back to Icon If first character is not alphabetic, fall back to icon.
71
+
72
+ But requirements are still being discussed. This area will be updated once we come up with final solition. There are different implementations in different teams.
73
+
74
+ ### Name
75
+
76
+ Name prop is used to generate initials.
77
+
78
+ ### Shape
79
+
80
+ The Avatar supports a circular and square (with rounded corners) shape.
81
+
82
+ ### Sizes
83
+
84
+ `Avatar` supports next sizes: `20, 24, 28, 32, 36, 40, 48, 56, 64, 72, 96, 120`.
85
+ Default size for win32 is 24.
86
+
87
+ ## API
88
+
89
+ ### Slots
90
+
91
+ The `Avatar` component has the following slots:
92
+
93
+ - `root` - The outer container representing the `Avatar` wrapper.
94
+ - `image` - If specified, renders an `image`
95
+ - `initials` - If specified, renders initials when there's no `image`
96
+ - `icon` - If specified, renders an `icon` if there's no `image` or `initials`.
97
+ - `initialsBackground` - It's a wrapper for initials and icon.
98
+ - `ring` - If specified, renders the ring for the `Avatar` when active prop is set to `active`.
99
+ - `badge` - If specified, renders presence badge. Example: `badge={{ status: 'outOfOffice' }}.`.
100
+
101
+ The slots can be modified using the `compose` function on the `Avatar`. For more information on using the `compose` API, please see [this page](../../framework/composition/README.md).
102
+
103
+ ### Props
104
+
105
+ ```ts
106
+ export interface JSAvatarProps extends IViewProps, AvatarConfigurableProps {
107
+ /**
108
+ * Activity indicator
109
+ * * active: the avatar will be decorated according to activeAppearance
110
+ * * inactive: the avatar will be reduced in size and partially transparent
111
+ * * unset: normal display
112
+ *
113
+ * @defaultvalue unset
114
+ */
115
+ active?: AvatarActive;
116
+
117
+ /**
118
+ * The appearance when `active="active"`
119
+ *
120
+ * @defaultvalue ring
121
+ */
122
+ activeAppearance?: AvatarActiveAppearance;
123
+
124
+ /**
125
+ * Badge shows the avatar's presence status.
126
+ * Badge can be shown only if `active` prop is undefined or unset
127
+ */
128
+ badge?: PresenceBadgeProps;
129
+
130
+ /**
131
+ * Icon to be displayed when the avatar doesn't have an image or initials.
132
+ *
133
+ * @defaultvalue `PersonRegular` (the default icon's size depends on the Avatar's size)
134
+ */
135
+ icon?: IconSourcesType;
136
+
137
+ /**
138
+ * Specify a string to be used instead of the name, to determine which color to use when color="colorful".
139
+ * Use this when a name is not available, but there is another unique identifier that can be used instead.
140
+ */
141
+ idForColor?: string;
142
+
143
+ /**
144
+ * The Avatar's image.
145
+ */
146
+ image?: ImageProps;
147
+
148
+ /**
149
+ * The initials are displayed when there is no image (including while the image is loading).
150
+ *
151
+ * It is usually not necessary to specify custom initials; by default they will be derived from the `name` prop, using the `getInitials` function.
152
+ */
153
+ initials?: string;
154
+
155
+ /**
156
+ * The name of the person or entity represented by this Avatar. This should always be provided if it is available.
157
+ *
158
+ * The name will be used to determine the initials displayed when there is no icon, as well as provided to
159
+ * accessibility tools.
160
+ */
161
+ name?: string;
162
+
163
+ /**
164
+ * Size of the avatar in pixels.
165
+ *
166
+ * Size is restricted to a limited set of supported values recommended for most uses (see `AvatarSizeValue`) and
167
+ * based on design guidelines for the Avatar control.
168
+ *
169
+ * @defaultvalue 24
170
+ */
171
+ size?: AvatarSize;
172
+
173
+ /**
174
+ * The avatar can have a circular or square shape.
175
+ * @defaultvalue circular
176
+ */
177
+ shape?: AvatarShape;
178
+
179
+ /**
180
+ * Currently used for image URL, will be deprecated when image prop works
181
+ */
182
+ src?: string;
183
+ }
184
+ ```
185
+
186
+ ### Styling Tokens
187
+
188
+ Tokens can be used to customize the styling of the control by using the `customize` function on the `Avatar`. For more information on using the `customize` API, please see [this page](../../framework/composition/README.md). The `Avatar` has the following tokens:
189
+
190
+ ```ts
191
+ export interface JSAvatarTokens extends IBackgroundColorTokens, IForegroundColorTokens, AvatarConfigurableProps, IBorderTokens, FontTokens {
192
+ /**
193
+ * Avatar ocality which is changed depending on `active` prop.
194
+ */
195
+ avatarOpacity?: number;
196
+
197
+ /**
198
+ * The size of presence badge.
199
+ */
200
+ badgeSize?: BadgeSize;
201
+
202
+ /**
203
+ * The icon color.
204
+ */
205
+ iconColor?: ColorValue;
206
+
207
+ /**
208
+ * The size of the icon.
209
+ */
210
+ iconSize?: number;
211
+
212
+ /**
213
+ * The height of the avatar.
214
+ */
215
+ height?: number;
216
+
217
+ /**
218
+ * Avatar shapes:
219
+ */
220
+ circular?: JSAvatarTokens;
221
+ square?: JSAvatarTokens;
222
+
223
+ /**
224
+ * Token for inactive value of `active` prop
225
+ */
226
+ inactive?: JSAvatarTokens;
227
+
228
+ /**
229
+ * The width of the avatar.
230
+ */
231
+ width?: number;
232
+
233
+ /**
234
+ * Avatar sizes:
235
+ */
236
+ size20?: JSAvatarTokens;
237
+ size24?: JSAvatarTokens;
238
+ size28?: JSAvatarTokens;
239
+ size32?: JSAvatarTokens;
240
+ size36?: JSAvatarTokens;
241
+ size40?: JSAvatarTokens;
242
+ size48?: JSAvatarTokens;
243
+ size56?: JSAvatarTokens;
244
+ size64?: JSAvatarTokens;
245
+ size72?: JSAvatarTokens;
246
+ size96?: JSAvatarTokens;
247
+ size120?: JSAvatarTokens;
248
+
249
+ /**
250
+ * Avatar colors:
251
+ */
252
+ neutral?: JSAvatarTokens;
253
+ brand?: JSAvatarTokens;
254
+ darkRed?: JSAvatarTokens;
255
+ cranberry?: JSAvatarTokens;
256
+ red?: JSAvatarTokens;
257
+ pumpkin?: JSAvatarTokens;
258
+ peach?: JSAvatarTokens;
259
+ marigold?: JSAvatarTokens;
260
+ gold?: JSAvatarTokens;
261
+ brass?: JSAvatarTokens;
262
+ brown?: JSAvatarTokens;
263
+ forest?: JSAvatarTokens;
264
+ seafoam?: JSAvatarTokens;
265
+ darkGreen?: JSAvatarTokens;
266
+ lightTeal?: JSAvatarTokens;
267
+ teal?: JSAvatarTokens;
268
+ steel?: JSAvatarTokens;
269
+ blue?: JSAvatarTokens;
270
+ royalBlue?: JSAvatarTokens;
271
+ cornflower?: JSAvatarTokens;
272
+ navy?: JSAvatarTokens;
273
+ lavender?: JSAvatarTokens;
274
+ purple?: JSAvatarTokens;
275
+ grape?: JSAvatarTokens;
276
+ lilac?: JSAvatarTokens;
277
+ pink?: JSAvatarTokens;
278
+ magenta?: JSAvatarTokens;
279
+ plum?: JSAvatarTokens;
280
+ beige?: JSAvatarTokens;
281
+ mink?: JSAvatarTokens;
282
+ platinum?: JSAvatarTokens;
283
+ anchor?: JSAvatarTokens;
284
+ }
285
+ ```
286
+
287
+ ## Behaviors
288
+
289
+ ### States
290
+
291
+ The following section describes the different states which `Avatar` can be in as a result of interaction.
292
+
293
+ #### showRing state
294
+
295
+ Ring is shown when `showRing` is set to true
296
+
297
+ #### transparentRing state
298
+
299
+ Makes ring transparent
300
+
301
+ #### showBadge state
302
+
303
+ showBadge is set to true when `active` prop is `unset` or undefined
304
+
305
+ ### Interaction
306
+
307
+ For now Avatar doesn't support interactions.
308
+ For the next step we will need to add tooltip and onClick handler.
309
+
310
+ ## Accessibility
package/lib/JSAvatar.js CHANGED
@@ -39,7 +39,8 @@ import { SvgXml } from 'react-native-svg';
39
39
  * @returns Whether the styles that are assigned to the layer should be applied to the avatar
40
40
  */
41
41
  export var avatarLookup = function (layer, state, userProps) {
42
- var avatarSize = "size".concat(userProps.size || 24);
42
+ var size = userProps.size;
43
+ var avatarSize = size ? "size".concat(size) : '';
43
44
  return (state[layer] ||
44
45
  userProps[layer] ||
45
46
  layer === userProps['shape'] ||
@@ -47,7 +48,6 @@ export var avatarLookup = function (layer, state, userProps) {
47
48
  layer === userProps['avatarColor'] ||
48
49
  (!userProps['avatarColor'] && layer === 'neutral') ||
49
50
  layer === avatarSize ||
50
- (!userProps['size'] && layer === 'size24') ||
51
51
  (userProps.active === 'inactive' && layer === 'inactive'));
52
52
  };
53
53
  export var JSAvatar = compose(__assign(__assign({ displayName: JSAvatarName }, stylingSettings), { slots: {
@@ -1 +1 @@
1
- {"version":3,"file":"JSAvatar.js","sourceRoot":"","sources":["../src/JSAvatar.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,qBAAqB;AACrB,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAC3D,OAAO,EAA+B,YAAY,EAAiB,MAAM,kBAAkB,CAAC;AAC5F,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,OAAO,EAAY,UAAU,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAC5F,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAC7D,OAAO,EAAE,IAAI,EAAE,MAAM,6BAA6B,CAAC;AACnD,OAAO,EAAE,eAAe,EAAE,MAAM,0CAA0C,CAAC;AAC3E,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAE1C;;;;;;;GAOG;AACH,MAAM,CAAC,IAAM,YAAY,GAAG,UAAC,KAAa,EAAE,KAAoB,EAAE,SAAwB;IACxF,IAAM,UAAU,GAAG,cAAO,SAAS,CAAC,IAAI,IAAI,EAAE,CAAE,CAAC;IACjD,OAAO,CACL,KAAK,CAAC,KA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CAAC,CAAC,CACV,UAAC,KAAK,CAAC,QAAQ,QAAE,QAAQ,CAAkB,CAC5C,CAAC,CAAC,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,CACnB,UAAC,KAAK,CAAC,IAAI,eAAK,SAAS,EAAI,CAC9B,CAAC,CAAC,CAAC,CACF,UAAC,MAAM,IAAC,GAAG,EAAE,eAAe,GAAI,CACjC,CACwB,CAC5B;gBACA,QAAQ,IAAI,CAAC,eAAe,IAAI,UAAC,KAAK,CAAC,IAAI,OAAG;gBAC9C,eAAe,IAAI,SAAS,IAAI,UAAC,KAAK,CAAC,KAAK,eAAK,KAAK,EAAI,CAChD,CACd,CAAC;QACJ,CAAC,CAAC;IACJ,CAAC,IACD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"JSAvatar.styling.d.ts","sourceRoot":"","sources":["../src/JSAvatar.styling.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,cAAc,EAAE,eAAe,EAAE,aAAa,EAAsC,MAAM,kBAAkB,CAAC;AACpI,OAAO,EAAS,iBAAiB,EAAc,MAAM,kCAAkC,CAAC;AAYxF,eAAO,MAAM,YAAY,EAAE,CAAC,MAAM,cAAc,CAAC,EAShD,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,iBAAiB,CAAC,aAAa,EAAE,eAAe,EAAE,cAAc,CA+G7F,CAAC"}
1
+ {"version":3,"file":"JSAvatar.styling.d.ts","sourceRoot":"","sources":["../src/JSAvatar.styling.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,cAAc,EAAE,eAAe,EAAE,aAAa,EAAsC,MAAM,kBAAkB,CAAC;AACpI,OAAO,EAAS,iBAAiB,EAAc,MAAM,kCAAkC,CAAC;AAYxF,eAAO,MAAM,YAAY,EAAE,CAAC,MAAM,cAAc,CAAC,EAUhD,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,iBAAiB,CAAC,aAAa,EAAE,eAAe,EAAE,cAAc,CAgH7F,CAAC"}
@@ -35,18 +35,19 @@ export var avatarStates = __spreadArray(__spreadArray(__spreadArray([], AvatarCo
35
35
  'ringColor',
36
36
  'ringBackgroundColor',
37
37
  'iconColor',
38
+ 'size',
38
39
  ], false);
39
40
  export var stylingSettings = {
40
41
  tokens: [defaultJSAvatarTokens, JSAvatarName],
41
42
  states: avatarStates,
42
43
  slotProps: {
43
44
  root: buildProps(function (tokens) {
44
- var horizontalIconAlignment = tokens.horizontalIconAlignment, verticalIconAlignment = tokens.verticalIconAlignment, width = tokens.width, height = tokens.height, avatarOpacity = tokens.avatarOpacity;
45
+ var horizontalIconAlignment = tokens.horizontalIconAlignment, verticalIconAlignment = tokens.verticalIconAlignment, size = tokens.size, avatarOpacity = tokens.avatarOpacity;
45
46
  return {
46
47
  style: {
47
48
  flexDirection: 'row',
48
- width: width,
49
- height: height,
49
+ width: size,
50
+ height: size,
50
51
  justifyContent: nameMap[horizontalIconAlignment || 'end'],
51
52
  alignItems: nameMap[verticalIconAlignment || 'end'],
52
53
  horizontalIconAlignment: horizontalIconAlignment,
@@ -54,29 +55,30 @@ export var stylingSettings = {
54
55
  opacity: avatarOpacity,
55
56
  },
56
57
  };
57
- }, ['horizontalIconAlignment', 'verticalIconAlignment', 'avatarOpacity', 'height', 'width']),
58
+ }, ['horizontalIconAlignment', 'verticalIconAlignment', 'avatarOpacity', 'size']),
58
59
  initials: buildProps(function (tokens, theme) {
59
60
  return {
60
61
  style: __assign(__assign({}, fontStyles.from(tokens, theme)), { color: tokens.color, textAlign: 'center' }),
61
62
  };
62
63
  }, __spreadArray(['color'], fontStyles.keys, true)),
63
64
  initialsBackground: buildProps(function (tokens, theme) {
64
- var backgroundColor = tokens.backgroundColor;
65
+ var backgroundColor = tokens.backgroundColor, size = tokens.size;
65
66
  return {
66
- style: __assign(__assign({}, borderStyles.from(tokens, theme)), { width: tokens.width, height: tokens.height, flexGrow: 1, alignSelf: 'stretch', justifyContent: 'center', alignItems: 'center', backgroundColor: backgroundColor, borderWidth: tokens.borderWidth, borderColor: tokens.borderColor }),
67
+ style: __assign(__assign({}, borderStyles.from(tokens, theme)), { width: size, height: size, flexGrow: 1, alignSelf: 'stretch', justifyContent: 'center', alignItems: 'center', backgroundColor: backgroundColor, borderWidth: tokens.borderWidth, borderColor: tokens.borderColor }),
67
68
  };
68
- }, __spreadArray(['backgroundColor', 'width', 'height', 'borderColor', 'borderWidth'], borderStyles.keys, true)),
69
+ }, __spreadArray(['backgroundColor', 'size', 'borderColor', 'borderWidth'], borderStyles.keys, true)),
69
70
  image: buildProps(function (tokens) {
71
+ var borderRadius = tokens.borderRadius, size = tokens.size, borderWidth = tokens.borderWidth, borderColor = tokens.borderColor;
70
72
  return {
71
73
  style: {
72
- borderRadius: tokens.borderRadius,
73
- width: tokens.width,
74
- height: tokens.height,
75
- borderWidth: tokens.borderWidth,
76
- borderColor: tokens.borderColor,
74
+ borderRadius: borderRadius,
75
+ width: size,
76
+ height: size,
77
+ borderWidth: borderWidth,
78
+ borderColor: borderColor,
77
79
  },
78
80
  };
79
- }, ['borderRadius', 'width', 'height', 'borderColor', 'borderWidth']),
81
+ }, ['borderRadius', 'size', 'borderColor', 'borderWidth']),
80
82
  icon: buildProps(function (tokens) {
81
83
  return {
82
84
  style: {
@@ -88,11 +90,11 @@ export var stylingSettings = {
88
90
  };
89
91
  }, ['iconSize', 'iconColor']),
90
92
  ring: buildProps(function (tokens, theme) {
91
- var ringConfig = getRingConfig(tokens.width);
93
+ var ringConfig = getRingConfig(tokens.size);
92
94
  return {
93
95
  style: __assign(__assign({ borderStyle: 'solid', width: ringConfig.size, height: ringConfig.size, position: 'absolute', top: -ringConfig.stroke * 2, left: -ringConfig.stroke * 2 }, borderStyles.from(tokens, theme)), { borderWidth: ringConfig.stroke, borderColor: tokens.ringColor }),
94
96
  };
95
- }, __spreadArray(['width', 'height', 'ringColor'], borderStyles.keys, true)),
97
+ }, __spreadArray(['size', 'ringColor'], borderStyles.keys, true)),
96
98
  badge: buildProps(function (tokens) {
97
99
  return {
98
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