@fluentui/react-avatar 9.4.10 → 9.5.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.
Files changed (73) hide show
  1. package/CHANGELOG.json +126 -5
  2. package/CHANGELOG.md +34 -6
  3. package/dist/index.d.ts +7 -1
  4. package/lib/components/Avatar/Avatar.js +3 -6
  5. package/lib/components/Avatar/Avatar.js.map +1 -1
  6. package/lib/components/Avatar/Avatar.types.js.map +1 -1
  7. package/lib/components/Avatar/index.js +1 -1
  8. package/lib/components/Avatar/index.js.map +1 -1
  9. package/lib/components/Avatar/useAvatar.js +2 -1
  10. package/lib/components/Avatar/useAvatar.js.map +1 -1
  11. package/lib/components/Avatar/useAvatarStyles.styles.js +584 -0
  12. package/lib/components/Avatar/useAvatarStyles.styles.js.map +1 -0
  13. package/lib/components/AvatarGroup/AvatarGroup.js +3 -6
  14. package/lib/components/AvatarGroup/AvatarGroup.js.map +1 -1
  15. package/lib/components/AvatarGroup/index.js +1 -1
  16. package/lib/components/AvatarGroup/index.js.map +1 -1
  17. package/lib/components/AvatarGroup/{useAvatarGroupStyles.js → useAvatarGroupStyles.styles.js} +2 -2
  18. package/lib/components/AvatarGroup/useAvatarGroupStyles.styles.js.map +1 -0
  19. package/lib/components/AvatarGroupItem/AvatarGroupItem.js +3 -6
  20. package/lib/components/AvatarGroupItem/AvatarGroupItem.js.map +1 -1
  21. package/lib/components/AvatarGroupItem/index.js +1 -1
  22. package/lib/components/AvatarGroupItem/index.js.map +1 -1
  23. package/lib/components/AvatarGroupItem/{useAvatarGroupItemStyles.js → useAvatarGroupItemStyles.styles.js} +1 -1
  24. package/lib/components/AvatarGroupItem/useAvatarGroupItemStyles.styles.js.map +1 -0
  25. package/lib/components/AvatarGroupPopover/AvatarGroupPopover.js +3 -6
  26. package/lib/components/AvatarGroupPopover/AvatarGroupPopover.js.map +1 -1
  27. package/lib/components/AvatarGroupPopover/index.js +1 -1
  28. package/lib/components/AvatarGroupPopover/index.js.map +1 -1
  29. package/lib/components/AvatarGroupPopover/{useAvatarGroupPopoverStyles.js → useAvatarGroupPopoverStyles.styles.js} +10 -11
  30. package/lib/components/AvatarGroupPopover/useAvatarGroupPopoverStyles.styles.js.map +1 -0
  31. package/lib/contexts/AvatarContext.js.map +1 -1
  32. package/lib/index.js.map +1 -1
  33. package/lib/utils/getInitials.js +1 -1
  34. package/lib/utils/getInitials.js.map +1 -1
  35. package/lib-commonjs/components/Avatar/Avatar.js +3 -4
  36. package/lib-commonjs/components/Avatar/Avatar.js.map +1 -1
  37. package/lib-commonjs/components/Avatar/index.js +1 -1
  38. package/lib-commonjs/components/Avatar/index.js.map +1 -1
  39. package/lib-commonjs/components/Avatar/useAvatar.js +2 -2
  40. package/lib-commonjs/components/Avatar/useAvatar.js.map +1 -1
  41. package/lib-commonjs/components/Avatar/{useAvatarStyles.js → useAvatarStyles.styles.js} +295 -285
  42. package/lib-commonjs/components/Avatar/useAvatarStyles.styles.js.map +1 -0
  43. package/lib-commonjs/components/AvatarGroup/AvatarGroup.js +3 -4
  44. package/lib-commonjs/components/AvatarGroup/AvatarGroup.js.map +1 -1
  45. package/lib-commonjs/components/AvatarGroup/index.js +1 -1
  46. package/lib-commonjs/components/AvatarGroup/index.js.map +1 -1
  47. package/lib-commonjs/components/AvatarGroup/{useAvatarGroupStyles.js → useAvatarGroupStyles.styles.js} +4 -4
  48. package/lib-commonjs/components/AvatarGroup/useAvatarGroupStyles.styles.js.map +1 -0
  49. package/lib-commonjs/components/AvatarGroupItem/AvatarGroupItem.js +3 -4
  50. package/lib-commonjs/components/AvatarGroupItem/AvatarGroupItem.js.map +1 -1
  51. package/lib-commonjs/components/AvatarGroupItem/index.js +1 -1
  52. package/lib-commonjs/components/AvatarGroupItem/index.js.map +1 -1
  53. package/lib-commonjs/components/AvatarGroupItem/{useAvatarGroupItemStyles.js → useAvatarGroupItemStyles.styles.js} +2 -2
  54. package/lib-commonjs/components/AvatarGroupItem/useAvatarGroupItemStyles.styles.js.map +1 -0
  55. package/lib-commonjs/components/AvatarGroupPopover/AvatarGroupPopover.js +3 -4
  56. package/lib-commonjs/components/AvatarGroupPopover/AvatarGroupPopover.js.map +1 -1
  57. package/lib-commonjs/components/AvatarGroupPopover/index.js +1 -1
  58. package/lib-commonjs/components/AvatarGroupPopover/index.js.map +1 -1
  59. package/lib-commonjs/components/AvatarGroupPopover/{useAvatarGroupPopoverStyles.js → useAvatarGroupPopoverStyles.styles.js} +15 -17
  60. package/lib-commonjs/components/AvatarGroupPopover/useAvatarGroupPopoverStyles.styles.js.map +1 -0
  61. package/lib-commonjs/utils/getInitials.js +1 -2
  62. package/lib-commonjs/utils/getInitials.js.map +1 -1
  63. package/package.json +11 -11
  64. package/.swcrc +0 -30
  65. package/lib/components/Avatar/useAvatarStyles.js +0 -493
  66. package/lib/components/Avatar/useAvatarStyles.js.map +0 -1
  67. package/lib/components/AvatarGroup/useAvatarGroupStyles.js.map +0 -1
  68. package/lib/components/AvatarGroupItem/useAvatarGroupItemStyles.js.map +0 -1
  69. package/lib/components/AvatarGroupPopover/useAvatarGroupPopoverStyles.js.map +0 -1
  70. package/lib-commonjs/components/Avatar/useAvatarStyles.js.map +0 -1
  71. package/lib-commonjs/components/AvatarGroup/useAvatarGroupStyles.js.map +0 -1
  72. package/lib-commonjs/components/AvatarGroupItem/useAvatarGroupItemStyles.js.map +0 -1
  73. package/lib-commonjs/components/AvatarGroupPopover/useAvatarGroupPopoverStyles.js.map +0 -1
@@ -21,8 +21,22 @@ const avatarClassNames = {
21
21
  icon: 'fui-Avatar__icon',
22
22
  badge: 'fui-Avatar__badge'
23
23
  };
24
- const useRootClassName = /*#__PURE__*/ (0, _react["__resetStyles"])("rz243wu", null, [
25
- ".rz243wu{display:inline-block;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;position:relative;vertical-align:middle;border-radius:var(--borderRadiusCircular);font-family:var(--fontFamilyBase);font-weight:var(--fontWeightSemibold);font-size:var(--fontSizeBase300);width:32px;height:32px;}"
24
+ // CSS variables used internally in Avatar's styles
25
+ const vars = {
26
+ badgeRadius: '--fui-Avatar-badgeRadius',
27
+ badgeGap: '--fui-Avatar-badgeGap',
28
+ badgeAlign: '--fui-Avatar-badgeAlign',
29
+ ringWidth: '--fui-Avatar-ringWidth'
30
+ };
31
+ const useRootClassName = /*#__PURE__*/ (0, _react["__resetStyles"])("r81b29z", "r1aatmv", [
32
+ ".r81b29z{display:inline-block;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;position:relative;vertical-align:middle;border-radius:var(--borderRadiusCircular);font-family:var(--fontFamilyBase);font-weight:var(--fontWeightSemibold);font-size:var(--fontSizeBase300);width:32px;height:32px;}",
33
+ ".r81b29z::before,.r81b29z::after{position:absolute;top:0;left:0;bottom:0;right:0;z-index:-1;margin:calc(-2 * var(--fui-Avatar-ringWidth, 0px));border-radius:inherit;transition-property:margin,opacity;transition-timing-function:var(--curveEasyEaseMax),var(--curveLinear);transition-duration:var(--durationUltraSlow),var(--durationSlower);}",
34
+ "@media screen and (prefers-reduced-motion: reduce){.r81b29z::before,.r81b29z::after{transition-duration:0.01ms;}}",
35
+ ".r81b29z::before{border-style:solid;border-width:var(--fui-Avatar-ringWidth);}",
36
+ ".r1aatmv{display:inline-block;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;position:relative;vertical-align:middle;border-radius:var(--borderRadiusCircular);font-family:var(--fontFamilyBase);font-weight:var(--fontWeightSemibold);font-size:var(--fontSizeBase300);width:32px;height:32px;}",
37
+ ".r1aatmv::before,.r1aatmv::after{position:absolute;top:0;right:0;bottom:0;left:0;z-index:-1;margin:calc(-2 * var(--fui-Avatar-ringWidth, 0px));border-radius:inherit;transition-property:margin,opacity;transition-timing-function:var(--curveEasyEaseMax),var(--curveLinear);transition-duration:var(--durationUltraSlow),var(--durationSlower);}",
38
+ "@media screen and (prefers-reduced-motion: reduce){.r1aatmv::before,.r1aatmv::after{transition-duration:0.01ms;}}",
39
+ ".r1aatmv::before{border-style:solid;border-width:var(--fui-Avatar-ringWidth);}"
26
40
  ]);
27
41
  const useImageClassName = /*#__PURE__*/ (0, _react["__resetStyles"])("r136dc0n", "rjly0nl", [
28
42
  ".r136dc0n{position:absolute;top:0;left:0;width:100%;height:100%;border-radius:inherit;object-fit:cover;vertical-align:top;}",
@@ -32,6 +46,21 @@ const useIconInitialsClassName = /*#__PURE__*/ (0, _react["__resetStyles"])("rip
32
46
  ".rip04v{position:absolute;box-sizing:border-box;top:0;left:0;width:100%;height:100%;line-height:1;border:var(--strokeWidthThin) solid var(--colorTransparentStroke);display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;-webkit-justify-content:center;justify-content:center;vertical-align:center;text-align:center;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;border-radius:inherit;}",
33
47
  ".r31uzil{position:absolute;box-sizing:border-box;top:0;right:0;width:100%;height:100%;line-height:1;border:var(--strokeWidthThin) solid var(--colorTransparentStroke);display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;-webkit-justify-content:center;justify-content:center;vertical-align:center;text-align:center;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;border-radius:inherit;}"
34
48
  ]);
49
+ /**
50
+ * Helper to create a maskImage that punches out a circle larger than the badge by `badgeGap`.
51
+ * This creates a transparent gap between the badge and Avatar.
52
+ *
53
+ * Used by the icon, initials, and image slots, as well as the ring ::before pseudo-element.
54
+ */ const badgeMask = (margin)=>{
55
+ // Center the cutout at the badge's radius away from the edge.
56
+ // The ring (::before) also has a 2 * ringWidth margin that also needs to be offset.
57
+ const centerOffset = margin ? `calc(var(${vars.badgeRadius}) + ${margin})` : `var(${vars.badgeRadius})`;
58
+ // radial-gradient does not have anti-aliasing, so the transparent and opaque gradient stops are offset by +/- 0.25px
59
+ // to "fade" from transparent to opaque over a half-pixel and ease the transition.
60
+ const innerRadius = `calc(var(${vars.badgeRadius}) + var(${vars.badgeGap}) - 0.25px)`;
61
+ const outerRadius = `calc(var(${vars.badgeRadius}) + var(${vars.badgeGap}) + 0.25px)`;
62
+ return `radial-gradient(circle at bottom ${centerOffset} var(${vars.badgeAlign}) ${centerOffset}, ` + `transparent ${innerRadius}, white ${outerRadius})`;
63
+ };
35
64
  const useStyles = /*#__PURE__*/ (0, _react["__styles"])({
36
65
  textCaption2Strong: {
37
66
  Be2twd7: "f13mqy1h"
@@ -125,146 +154,54 @@ const useStyles = /*#__PURE__*/ (0, _react["__styles"])({
125
154
  Bmy1vo4: "fv0atk9",
126
155
  B3o57yi: "f1iry5bo",
127
156
  Bkqvd7p: "f15n41j8",
128
- Hwfdqs: "f1onx1g3",
129
- Ftih45: "f1wl9k8s",
130
- Brfgrao: "f1j7ml58",
131
- Bciustq: "ffi060y",
132
- Fbdkly: [
133
- "f1fzr1x6",
134
- "f1f351id"
135
- ],
136
- lawp4y: "fchca7p",
137
- mdwyqc: [
138
- "f1f351id",
139
- "f1fzr1x6"
140
- ],
141
- Budzafs: [
142
- "f1kd9phw",
143
- "fyf2ch2"
144
- ],
145
- r59vdv: [
146
- "fyf2ch2",
147
- "f1kd9phw"
148
- ],
149
- n07z76: [
150
- "f1gnrg9b",
151
- "f1xx2lx6"
152
- ],
153
- ck0cow: [
154
- "f1xx2lx6",
155
- "f1gnrg9b"
156
- ],
157
- B8bqphf: "f1e9wvyh",
158
- h7gv66: "f1vyz52m",
159
- wjn42g: "f1s8xkrt",
160
- B1pumaf: "f1ak47q9"
157
+ Hwfdqs: "f1onx1g3"
161
158
  },
162
159
  ring: {
163
- Bdkvgpv: "f163fonl",
164
- m598lv: [
165
- "f1yq6w5o",
166
- "f1jpmc5p"
167
- ],
168
- qa3bma: "f11yjt3y",
169
- Bbv0w2i: [
170
- "f1jpmc5p",
171
- "f1yq6w5o"
172
- ]
160
+ Ftih45: "f1wl9k8s"
161
+ },
162
+ ringBadgeCutout: {
163
+ f4a502: "fp2gujx"
173
164
  },
174
165
  ringThick: {
175
- qehafq: "f1rbtjc9",
176
- Bicfajf: [
177
- "f1wm0e7m",
178
- "f1o0l8kp"
179
- ],
180
- susq4k: "f1tz5420",
181
- Biibvgv: [
182
- "f1o0l8kp",
183
- "f1wm0e7m"
184
- ],
185
- B0qfbqy: "f1q30tuz",
186
- B4f6apu: [
187
- "f9c0djs",
188
- "fcwzx2y"
189
- ],
190
- y0oebl: "f1hdqo1a",
191
- uvfttm: [
192
- "fcwzx2y",
193
- "f9c0djs"
194
- ]
166
+ of393c: "fq1w1vq"
195
167
  },
196
168
  ringThicker: {
197
- qehafq: "fk7ejgl",
198
- Bicfajf: [
199
- "f12sbt0w",
200
- "f1tnh028"
201
- ],
202
- susq4k: "fcrsff4",
203
- Biibvgv: [
204
- "f1tnh028",
205
- "f12sbt0w"
206
- ],
207
- B0qfbqy: "f1jrge4j",
208
- B4f6apu: [
209
- "fc2vpa6",
210
- "f133djwz"
211
- ],
212
- y0oebl: "f9hcsm3",
213
- uvfttm: [
214
- "f133djwz",
215
- "fc2vpa6"
216
- ]
169
+ of393c: "fzg6ace"
217
170
  },
218
171
  ringThickest: {
219
- qehafq: "fl3e39p",
220
- Bicfajf: [
221
- "f14m8wrz",
222
- "fckzhtt"
223
- ],
224
- susq4k: "fnxq6pw",
225
- Biibvgv: [
226
- "fckzhtt",
227
- "f14m8wrz"
228
- ],
229
- B0qfbqy: "fr6r3yi",
230
- B4f6apu: [
231
- "ftxoq8w",
232
- "f4gs2h8"
233
- ],
234
- y0oebl: "f9gga8r",
235
- uvfttm: [
236
- "f4gs2h8",
237
- "ftxoq8w"
238
- ]
172
+ of393c: "f1nu8p71"
173
+ },
174
+ shadow: {
175
+ Bsft5z2: "f13zj6fq"
239
176
  },
240
177
  shadow4: {
241
- h8m2vh: "f196qwgu"
178
+ Be6vj1x: "fcjn15l"
242
179
  },
243
180
  shadow8: {
244
- h8m2vh: "fut48mo"
181
+ Be6vj1x: "f1tm8t9f"
245
182
  },
246
183
  shadow16: {
247
- h8m2vh: "fh2kfig"
184
+ Be6vj1x: "f1a1aohj"
248
185
  },
249
186
  shadow28: {
250
- h8m2vh: "f4c2u2p"
187
+ Be6vj1x: "fond6v5"
251
188
  },
252
189
  inactive: {
253
190
  abs64n: "fp25eh",
254
191
  Bz10aip: "f1clczzi",
255
192
  Bkqvd7p: "f1l3s34x",
256
- qehafq: "fe3o830",
257
- Bicfajf: [
258
- "fzynn9s",
259
- "f1z0ukd1"
193
+ Bucmhp4: "f1f5ar78",
194
+ b2tv09: [
195
+ "fqxtap0",
196
+ "fhjukvy"
260
197
  ],
261
- susq4k: "f1kyqvp9",
262
- Biibvgv: [
263
- "f1z0ukd1",
264
- "fzynn9s"
198
+ Bfgortx: "f1qj1nzo",
199
+ Bnvr3x9: [
200
+ "fhjukvy",
201
+ "fqxtap0"
265
202
  ],
266
- vz82u: "f1dhznln",
267
- wjn42g: "f1iysauc"
203
+ b6ubon: "fw457kn",
204
+ Bqinb2h: "f1wmllxl"
268
205
  },
269
206
  badge: {
270
207
  qhf8xq: "f1euv43f",
@@ -272,11 +209,40 @@ const useStyles = /*#__PURE__*/ (0, _react["__styles"])({
272
209
  j35jbq: [
273
210
  "f1e31b4d",
274
211
  "f1vgc2s3"
275
- ],
276
- E5pizo: "ffo9j2l"
212
+ ]
213
+ },
214
+ badgeCutout: {
215
+ btxmck: "f1eugkqs"
216
+ },
217
+ badgeAlign: {
218
+ Dnlfbu: [
219
+ "f1tlnv9o",
220
+ "f1y9kyih"
221
+ ]
222
+ },
223
+ tiny: {
224
+ Bdjeniz: "f1uwoubl",
225
+ niu6jh: "fid048z"
277
226
  },
278
- badgeLarge: {
279
- E5pizo: "f1nayfl2"
227
+ "extra-small": {
228
+ Bdjeniz: "f13ar0e0",
229
+ niu6jh: "fid048z"
230
+ },
231
+ small: {
232
+ Bdjeniz: "fwwuruf",
233
+ niu6jh: "fid048z"
234
+ },
235
+ medium: {
236
+ Bdjeniz: "f1af27q5",
237
+ niu6jh: "fid048z"
238
+ },
239
+ large: {
240
+ Bdjeniz: "f18yy57a",
241
+ niu6jh: "f924bxt"
242
+ },
243
+ "extra-large": {
244
+ Bdjeniz: "f2jg042",
245
+ niu6jh: "f924bxt"
280
246
  },
281
247
  icon12: {
282
248
  Be2twd7: "f1ugzwwg"
@@ -327,65 +293,39 @@ const useStyles = /*#__PURE__*/ (0, _react["__styles"])({
327
293
  ".f1iry5bo{transition-duration:var(--durationUltraSlow),var(--durationFaster);}",
328
294
  ".f15n41j8{transition-timing-function:var(--curveEasyEaseMax),var(--curveLinear);}",
329
295
  ".f1wl9k8s::before{content:\"\";}",
330
- ".f1j7ml58::before{position:absolute;}",
331
- ".ffi060y::before{top:0;}",
332
- ".f1fzr1x6::before{left:0;}",
333
- ".f1f351id::before{right:0;}",
334
- ".fchca7p::before{bottom:0;}",
335
- ".f1kd9phw::before{border-bottom-right-radius:inherit;}",
336
- ".fyf2ch2::before{border-bottom-left-radius:inherit;}",
337
- ".f1gnrg9b::before{border-top-right-radius:inherit;}",
338
- ".f1xx2lx6::before{border-top-left-radius:inherit;}",
339
- ".f1e9wvyh::before{transition-property:margin,opacity;}",
340
- ".f1vyz52m::before{transition-duration:var(--durationUltraSlow),var(--durationSlower);}",
341
- ".f1s8xkrt::before{transition-timing-function:var(--curveEasyEaseMax),var(--curveLinear);}",
342
- ".f163fonl::before{border-top-style:solid;}",
343
- ".f1yq6w5o::before{border-right-style:solid;}",
344
- ".f1jpmc5p::before{border-left-style:solid;}",
345
- ".f11yjt3y::before{border-bottom-style:solid;}",
346
- ".f1rbtjc9::before{margin-top:calc(-2 * var(--strokeWidthThick));}",
347
- ".f1wm0e7m::before{margin-right:calc(-2 * var(--strokeWidthThick));}",
348
- ".f1o0l8kp::before{margin-left:calc(-2 * var(--strokeWidthThick));}",
349
- ".f1tz5420::before{margin-bottom:calc(-2 * var(--strokeWidthThick));}",
350
- ".f1q30tuz::before{border-top-width:var(--strokeWidthThick);}",
351
- ".f9c0djs::before{border-right-width:var(--strokeWidthThick);}",
352
- ".fcwzx2y::before{border-left-width:var(--strokeWidthThick);}",
353
- ".f1hdqo1a::before{border-bottom-width:var(--strokeWidthThick);}",
354
- ".fk7ejgl::before{margin-top:calc(-2 * var(--strokeWidthThicker));}",
355
- ".f12sbt0w::before{margin-right:calc(-2 * var(--strokeWidthThicker));}",
356
- ".f1tnh028::before{margin-left:calc(-2 * var(--strokeWidthThicker));}",
357
- ".fcrsff4::before{margin-bottom:calc(-2 * var(--strokeWidthThicker));}",
358
- ".f1jrge4j::before{border-top-width:var(--strokeWidthThicker);}",
359
- ".fc2vpa6::before{border-right-width:var(--strokeWidthThicker);}",
360
- ".f133djwz::before{border-left-width:var(--strokeWidthThicker);}",
361
- ".f9hcsm3::before{border-bottom-width:var(--strokeWidthThicker);}",
362
- ".fl3e39p::before{margin-top:calc(-2 * var(--strokeWidthThickest));}",
363
- ".f14m8wrz::before{margin-right:calc(-2 * var(--strokeWidthThickest));}",
364
- ".fckzhtt::before{margin-left:calc(-2 * var(--strokeWidthThickest));}",
365
- ".fnxq6pw::before{margin-bottom:calc(-2 * var(--strokeWidthThickest));}",
366
- ".fr6r3yi::before{border-top-width:var(--strokeWidthThickest);}",
367
- ".ftxoq8w::before{border-right-width:var(--strokeWidthThickest);}",
368
- ".f4gs2h8::before{border-left-width:var(--strokeWidthThickest);}",
369
- ".f9gga8r::before{border-bottom-width:var(--strokeWidthThickest);}",
370
- ".f196qwgu::before{box-shadow:var(--shadow4);}",
371
- ".fut48mo::before{box-shadow:var(--shadow8);}",
372
- ".fh2kfig::before{box-shadow:var(--shadow16);}",
373
- ".f4c2u2p::before{box-shadow:var(--shadow28);}",
296
+ ".fp2gujx::before{-webkit-mask-image:radial-gradient(circle at bottom calc(var(--fui-Avatar-badgeRadius) + 2 * var(--fui-Avatar-ringWidth)) var(--fui-Avatar-badgeAlign) calc(var(--fui-Avatar-badgeRadius) + 2 * var(--fui-Avatar-ringWidth)), transparent calc(var(--fui-Avatar-badgeRadius) + var(--fui-Avatar-badgeGap) - 0.25px), white calc(var(--fui-Avatar-badgeRadius) + var(--fui-Avatar-badgeGap) + 0.25px));mask-image:radial-gradient(circle at bottom calc(var(--fui-Avatar-badgeRadius) + 2 * var(--fui-Avatar-ringWidth)) var(--fui-Avatar-badgeAlign) calc(var(--fui-Avatar-badgeRadius) + 2 * var(--fui-Avatar-ringWidth)), transparent calc(var(--fui-Avatar-badgeRadius) + var(--fui-Avatar-badgeGap) - 0.25px), white calc(var(--fui-Avatar-badgeRadius) + var(--fui-Avatar-badgeGap) + 0.25px));}",
297
+ ".fq1w1vq{--fui-Avatar-ringWidth:var(--strokeWidthThick);}",
298
+ ".fzg6ace{--fui-Avatar-ringWidth:var(--strokeWidthThicker);}",
299
+ ".f1nu8p71{--fui-Avatar-ringWidth:var(--strokeWidthThickest);}",
300
+ ".f13zj6fq::after{content:\"\";}",
301
+ ".fcjn15l::after{box-shadow:var(--shadow4);}",
302
+ ".f1tm8t9f::after{box-shadow:var(--shadow8);}",
303
+ ".f1a1aohj::after{box-shadow:var(--shadow16);}",
304
+ ".fond6v5::after{box-shadow:var(--shadow28);}",
374
305
  ".fp25eh{opacity:0.8;}",
375
306
  ".f1clczzi{-webkit-transform:scale(0.875);-moz-transform:scale(0.875);-ms-transform:scale(0.875);transform:scale(0.875);}",
376
307
  ".f1l3s34x{transition-timing-function:var(--curveDecelerateMin),var(--curveLinear);}",
377
- ".fe3o830::before{margin-top:0;}",
378
- ".fzynn9s::before{margin-right:0;}",
379
- ".f1z0ukd1::before{margin-left:0;}",
380
- ".f1kyqvp9::before{margin-bottom:0;}",
381
- ".f1dhznln::before{opacity:0;}",
382
- ".f1iysauc::before{transition-timing-function:var(--curveDecelerateMin),var(--curveLinear);}",
308
+ ".f1f5ar78::before,.f1f5ar78::after{margin-top:0;}",
309
+ ".fqxtap0::before,.fqxtap0::after{margin-right:0;}",
310
+ ".fhjukvy::before,.fhjukvy::after{margin-left:0;}",
311
+ ".f1qj1nzo::before,.f1qj1nzo::after{margin-bottom:0;}",
312
+ ".fw457kn::before,.fw457kn::after{opacity:0;}",
313
+ ".f1wmllxl::before,.f1wmllxl::after{transition-timing-function:var(--curveDecelerateMin),var(--curveLinear);}",
383
314
  ".f1euv43f{position:absolute;}",
384
315
  ".f1yab3r1{bottom:0;}",
385
316
  ".f1e31b4d{right:0;}",
386
317
  ".f1vgc2s3{left:0;}",
387
- ".ffo9j2l{box-shadow:0 0 0 var(--strokeWidthThin) var(--colorNeutralBackground1);}",
388
- ".f1nayfl2{box-shadow:0 0 0 var(--strokeWidthThick) var(--colorNeutralBackground1);}",
318
+ ".f1eugkqs{-webkit-mask-image:radial-gradient(circle at bottom var(--fui-Avatar-badgeRadius) var(--fui-Avatar-badgeAlign) var(--fui-Avatar-badgeRadius), transparent calc(var(--fui-Avatar-badgeRadius) + var(--fui-Avatar-badgeGap) - 0.25px), white calc(var(--fui-Avatar-badgeRadius) + var(--fui-Avatar-badgeGap) + 0.25px));mask-image:radial-gradient(circle at bottom var(--fui-Avatar-badgeRadius) var(--fui-Avatar-badgeAlign) var(--fui-Avatar-badgeRadius), transparent calc(var(--fui-Avatar-badgeRadius) + var(--fui-Avatar-badgeGap) - 0.25px), white calc(var(--fui-Avatar-badgeRadius) + var(--fui-Avatar-badgeGap) + 0.25px));}",
319
+ ".f1tlnv9o{--fui-Avatar-badgeAlign:right;}",
320
+ ".f1y9kyih{--fui-Avatar-badgeAlign:left;}",
321
+ ".f1uwoubl{--fui-Avatar-badgeRadius:3px;}",
322
+ ".fid048z{--fui-Avatar-badgeGap:var(--strokeWidthThin);}",
323
+ ".f13ar0e0{--fui-Avatar-badgeRadius:5px;}",
324
+ ".fwwuruf{--fui-Avatar-badgeRadius:6px;}",
325
+ ".f1af27q5{--fui-Avatar-badgeRadius:8px;}",
326
+ ".f18yy57a{--fui-Avatar-badgeRadius:10px;}",
327
+ ".f924bxt{--fui-Avatar-badgeGap:var(--strokeWidthThick);}",
328
+ ".f2jg042{--fui-Avatar-badgeRadius:14px;}",
389
329
  ".f1ugzwwg{font-size:12px;}",
390
330
  ".f4ybsrx{font-size:16px;}",
391
331
  ".fe5j1ua{font-size:20px;}",
@@ -400,12 +340,6 @@ const useStyles = /*#__PURE__*/ (0, _react["__styles"])({
400
340
  {
401
341
  m: "screen and (prefers-reduced-motion: reduce)"
402
342
  }
403
- ],
404
- [
405
- "@media screen and (prefers-reduced-motion: reduce){.f1ak47q9::before{transition-duration:0.01ms;}}",
406
- {
407
- m: "screen and (prefers-reduced-motion: reduce)"
408
- }
409
343
  ]
410
344
  ]
411
345
  });
@@ -501,260 +435,329 @@ const useSizeStyles = /*#__PURE__*/ (0, _react["__styles"])({
501
435
  const useColorStyles = /*#__PURE__*/ (0, _react["__styles"])({
502
436
  neutral: {
503
437
  sj55zd: "f11d4kpn",
504
- De3pzq: "f18f03hv",
505
- Bic5iru: "f1uuiafn"
438
+ De3pzq: "f18f03hv"
506
439
  },
507
440
  brand: {
508
441
  sj55zd: "fonrgv7",
509
- De3pzq: "f1blnnmj",
510
- Bic5iru: "f1uuiafn"
442
+ De3pzq: "f1blnnmj"
511
443
  },
512
444
  "dark-red": {
513
445
  sj55zd: "fqjd1y1",
514
- De3pzq: "f1vq2oo4",
515
- Bic5iru: "f1t2x9on"
446
+ De3pzq: "f1vq2oo4"
516
447
  },
517
448
  cranberry: {
518
449
  sj55zd: "fg9gses",
519
- De3pzq: "f1lwxszt",
520
- Bic5iru: "f1pvshc9"
450
+ De3pzq: "f1lwxszt"
521
451
  },
522
452
  red: {
523
453
  sj55zd: "f23f7i0",
524
- De3pzq: "f1q9qhfq",
525
- Bic5iru: "f1ectbk9"
454
+ De3pzq: "f1q9qhfq"
526
455
  },
527
456
  pumpkin: {
528
457
  sj55zd: "fjnan08",
529
- De3pzq: "fz91bi3",
530
- Bic5iru: "fvzpl0b"
458
+ De3pzq: "fz91bi3"
531
459
  },
532
460
  peach: {
533
461
  sj55zd: "fknu15p",
534
- De3pzq: "f1b9nr51",
535
- Bic5iru: "fwj2kd7"
462
+ De3pzq: "f1b9nr51"
536
463
  },
537
464
  marigold: {
538
465
  sj55zd: "f9603vw",
539
- De3pzq: "f3z4w6d",
540
- Bic5iru: "fr120vy"
466
+ De3pzq: "f3z4w6d"
541
467
  },
542
468
  gold: {
543
469
  sj55zd: "fmq0uwp",
544
- De3pzq: "fg50kya",
545
- Bic5iru: "f8xmmar"
470
+ De3pzq: "fg50kya"
546
471
  },
547
472
  brass: {
548
473
  sj55zd: "f28g5vo",
549
- De3pzq: "f4w2gd0",
550
- Bic5iru: "f1hbety2"
474
+ De3pzq: "f4w2gd0"
551
475
  },
552
476
  brown: {
553
477
  sj55zd: "ftl572b",
554
- De3pzq: "f14wu1f4",
555
- Bic5iru: "f1vg3s4g"
478
+ De3pzq: "f14wu1f4"
556
479
  },
557
480
  forest: {
558
481
  sj55zd: "f1gymlvd",
559
- De3pzq: "f19ut4y6",
560
- Bic5iru: "f1m3olm5"
482
+ De3pzq: "f19ut4y6"
561
483
  },
562
484
  seafoam: {
563
485
  sj55zd: "fnnb6wn",
564
- De3pzq: "f1n057jc",
565
- Bic5iru: "f17xiqtr"
486
+ De3pzq: "f1n057jc"
566
487
  },
567
488
  "dark-green": {
568
489
  sj55zd: "ff58qw8",
569
- De3pzq: "f11t05wk",
570
- Bic5iru: "fx32vyh"
490
+ De3pzq: "f11t05wk"
571
491
  },
572
492
  "light-teal": {
573
493
  sj55zd: "f1up9qbj",
574
- De3pzq: "f42feg1",
575
- Bic5iru: "f1mkihwv"
494
+ De3pzq: "f42feg1"
576
495
  },
577
496
  teal: {
578
497
  sj55zd: "f135dsb4",
579
- De3pzq: "f6hvv1p",
580
- Bic5iru: "fecnooh"
498
+ De3pzq: "f6hvv1p"
581
499
  },
582
500
  steel: {
583
501
  sj55zd: "f151dlcp",
584
- De3pzq: "f1lnp8zf",
585
- Bic5iru: "f15hfgzm"
502
+ De3pzq: "f1lnp8zf"
586
503
  },
587
504
  blue: {
588
505
  sj55zd: "f1rjv50u",
589
- De3pzq: "f1ggcpy6",
590
- Bic5iru: "fqproka"
506
+ De3pzq: "f1ggcpy6"
591
507
  },
592
508
  "royal-blue": {
593
509
  sj55zd: "f1emykk5",
594
- De3pzq: "f12rj61f",
595
- Bic5iru: "f17v2w59"
510
+ De3pzq: "f12rj61f"
596
511
  },
597
512
  cornflower: {
598
513
  sj55zd: "fqsigj7",
599
- De3pzq: "f8k7hur",
600
- Bic5iru: "fp0q1mo"
514
+ De3pzq: "f8k7hur"
601
515
  },
602
516
  navy: {
603
517
  sj55zd: "f1nj97xi",
604
- De3pzq: "f19gw0ux",
605
- Bic5iru: "f1nlym55"
518
+ De3pzq: "f19gw0ux"
606
519
  },
607
520
  lavender: {
608
521
  sj55zd: "fwctg0i",
609
- De3pzq: "ff379vm",
610
- Bic5iru: "f62vk8h"
522
+ De3pzq: "ff379vm"
611
523
  },
612
524
  purple: {
613
525
  sj55zd: "fjrsgpu",
614
- De3pzq: "f1mzf1e1",
615
- Bic5iru: "f15zl69q"
526
+ De3pzq: "f1mzf1e1"
616
527
  },
617
528
  grape: {
618
529
  sj55zd: "f1fiiydq",
619
- De3pzq: "f1o4k8oy",
620
- Bic5iru: "f53w4j7"
530
+ De3pzq: "f1o4k8oy"
621
531
  },
622
532
  lilac: {
623
533
  sj55zd: "f1res9jt",
624
- De3pzq: "f1x6mz1o",
625
- Bic5iru: "fu2771t"
534
+ De3pzq: "f1x6mz1o"
626
535
  },
627
536
  pink: {
628
537
  sj55zd: "fv3fbbi",
629
- De3pzq: "fydlv6t",
630
- Bic5iru: "fzflscs"
538
+ De3pzq: "fydlv6t"
631
539
  },
632
540
  magenta: {
633
541
  sj55zd: "f1f1fwnz",
634
- De3pzq: "f4xb6j5",
635
- Bic5iru: "fb6rmqc"
542
+ De3pzq: "f4xb6j5"
636
543
  },
637
544
  plum: {
638
545
  sj55zd: "f8ptl6j",
639
- De3pzq: "fqo8e26",
640
- Bic5iru: "f1a4gm5b"
546
+ De3pzq: "fqo8e26"
641
547
  },
642
548
  beige: {
643
549
  sj55zd: "f1ntv3ld",
644
- De3pzq: "f101elhj",
645
- Bic5iru: "f1qpf9z1"
550
+ De3pzq: "f101elhj"
646
551
  },
647
552
  mink: {
648
553
  sj55zd: "f1fscmp",
649
- De3pzq: "f13g8o5c",
650
- Bic5iru: "f1l7or83"
554
+ De3pzq: "f13g8o5c"
651
555
  },
652
556
  platinum: {
653
557
  sj55zd: "f1dr00v2",
654
- De3pzq: "fkh7blw",
655
- Bic5iru: "fzrj0iu"
558
+ De3pzq: "fkh7blw"
656
559
  },
657
560
  anchor: {
658
561
  sj55zd: "f1f3ti53",
659
- De3pzq: "fu4yj0j",
660
- Bic5iru: "f8oz6wf"
562
+ De3pzq: "fu4yj0j"
661
563
  }
662
564
  }, {
663
565
  d: [
664
566
  ".f11d4kpn{color:var(--colorNeutralForeground3);}",
665
567
  ".f18f03hv{background-color:var(--colorNeutralBackground6);}",
666
- ".f1uuiafn::before{color:var(--colorBrandStroke1);}",
667
568
  ".fonrgv7{color:var(--colorNeutralForegroundStaticInverted);}",
668
569
  ".f1blnnmj{background-color:var(--colorBrandBackgroundStatic);}",
669
570
  ".fqjd1y1{color:var(--colorPaletteDarkRedForeground2);}",
670
571
  ".f1vq2oo4{background-color:var(--colorPaletteDarkRedBackground2);}",
671
- ".f1t2x9on::before{color:var(--colorPaletteDarkRedBorderActive);}",
672
572
  ".fg9gses{color:var(--colorPaletteCranberryForeground2);}",
673
573
  ".f1lwxszt{background-color:var(--colorPaletteCranberryBackground2);}",
674
- ".f1pvshc9::before{color:var(--colorPaletteCranberryBorderActive);}",
675
574
  ".f23f7i0{color:var(--colorPaletteRedForeground2);}",
676
575
  ".f1q9qhfq{background-color:var(--colorPaletteRedBackground2);}",
677
- ".f1ectbk9::before{color:var(--colorPaletteRedBorderActive);}",
678
576
  ".fjnan08{color:var(--colorPalettePumpkinForeground2);}",
679
577
  ".fz91bi3{background-color:var(--colorPalettePumpkinBackground2);}",
680
- ".fvzpl0b::before{color:var(--colorPalettePumpkinBorderActive);}",
681
578
  ".fknu15p{color:var(--colorPalettePeachForeground2);}",
682
579
  ".f1b9nr51{background-color:var(--colorPalettePeachBackground2);}",
683
- ".fwj2kd7::before{color:var(--colorPalettePeachBorderActive);}",
684
580
  ".f9603vw{color:var(--colorPaletteMarigoldForeground2);}",
685
581
  ".f3z4w6d{background-color:var(--colorPaletteMarigoldBackground2);}",
686
- ".fr120vy::before{color:var(--colorPaletteMarigoldBorderActive);}",
687
582
  ".fmq0uwp{color:var(--colorPaletteGoldForeground2);}",
688
583
  ".fg50kya{background-color:var(--colorPaletteGoldBackground2);}",
689
- ".f8xmmar::before{color:var(--colorPaletteGoldBorderActive);}",
690
584
  ".f28g5vo{color:var(--colorPaletteBrassForeground2);}",
691
585
  ".f4w2gd0{background-color:var(--colorPaletteBrassBackground2);}",
692
- ".f1hbety2::before{color:var(--colorPaletteBrassBorderActive);}",
693
586
  ".ftl572b{color:var(--colorPaletteBrownForeground2);}",
694
587
  ".f14wu1f4{background-color:var(--colorPaletteBrownBackground2);}",
695
- ".f1vg3s4g::before{color:var(--colorPaletteBrownBorderActive);}",
696
588
  ".f1gymlvd{color:var(--colorPaletteForestForeground2);}",
697
589
  ".f19ut4y6{background-color:var(--colorPaletteForestBackground2);}",
698
- ".f1m3olm5::before{color:var(--colorPaletteForestBorderActive);}",
699
590
  ".fnnb6wn{color:var(--colorPaletteSeafoamForeground2);}",
700
591
  ".f1n057jc{background-color:var(--colorPaletteSeafoamBackground2);}",
701
- ".f17xiqtr::before{color:var(--colorPaletteSeafoamBorderActive);}",
702
592
  ".ff58qw8{color:var(--colorPaletteDarkGreenForeground2);}",
703
593
  ".f11t05wk{background-color:var(--colorPaletteDarkGreenBackground2);}",
704
- ".fx32vyh::before{color:var(--colorPaletteDarkGreenBorderActive);}",
705
594
  ".f1up9qbj{color:var(--colorPaletteLightTealForeground2);}",
706
595
  ".f42feg1{background-color:var(--colorPaletteLightTealBackground2);}",
707
- ".f1mkihwv::before{color:var(--colorPaletteLightTealBorderActive);}",
708
596
  ".f135dsb4{color:var(--colorPaletteTealForeground2);}",
709
597
  ".f6hvv1p{background-color:var(--colorPaletteTealBackground2);}",
710
- ".fecnooh::before{color:var(--colorPaletteTealBorderActive);}",
711
598
  ".f151dlcp{color:var(--colorPaletteSteelForeground2);}",
712
599
  ".f1lnp8zf{background-color:var(--colorPaletteSteelBackground2);}",
713
- ".f15hfgzm::before{color:var(--colorPaletteSteelBorderActive);}",
714
600
  ".f1rjv50u{color:var(--colorPaletteBlueForeground2);}",
715
601
  ".f1ggcpy6{background-color:var(--colorPaletteBlueBackground2);}",
716
- ".fqproka::before{color:var(--colorPaletteBlueBorderActive);}",
717
602
  ".f1emykk5{color:var(--colorPaletteRoyalBlueForeground2);}",
718
603
  ".f12rj61f{background-color:var(--colorPaletteRoyalBlueBackground2);}",
719
- ".f17v2w59::before{color:var(--colorPaletteRoyalBlueBorderActive);}",
720
604
  ".fqsigj7{color:var(--colorPaletteCornflowerForeground2);}",
721
605
  ".f8k7hur{background-color:var(--colorPaletteCornflowerBackground2);}",
722
- ".fp0q1mo::before{color:var(--colorPaletteCornflowerBorderActive);}",
723
606
  ".f1nj97xi{color:var(--colorPaletteNavyForeground2);}",
724
607
  ".f19gw0ux{background-color:var(--colorPaletteNavyBackground2);}",
725
- ".f1nlym55::before{color:var(--colorPaletteNavyBorderActive);}",
726
608
  ".fwctg0i{color:var(--colorPaletteLavenderForeground2);}",
727
609
  ".ff379vm{background-color:var(--colorPaletteLavenderBackground2);}",
728
- ".f62vk8h::before{color:var(--colorPaletteLavenderBorderActive);}",
729
610
  ".fjrsgpu{color:var(--colorPalettePurpleForeground2);}",
730
611
  ".f1mzf1e1{background-color:var(--colorPalettePurpleBackground2);}",
731
- ".f15zl69q::before{color:var(--colorPalettePurpleBorderActive);}",
732
612
  ".f1fiiydq{color:var(--colorPaletteGrapeForeground2);}",
733
613
  ".f1o4k8oy{background-color:var(--colorPaletteGrapeBackground2);}",
734
- ".f53w4j7::before{color:var(--colorPaletteGrapeBorderActive);}",
735
614
  ".f1res9jt{color:var(--colorPaletteLilacForeground2);}",
736
615
  ".f1x6mz1o{background-color:var(--colorPaletteLilacBackground2);}",
737
- ".fu2771t::before{color:var(--colorPaletteLilacBorderActive);}",
738
616
  ".fv3fbbi{color:var(--colorPalettePinkForeground2);}",
739
617
  ".fydlv6t{background-color:var(--colorPalettePinkBackground2);}",
740
- ".fzflscs::before{color:var(--colorPalettePinkBorderActive);}",
741
618
  ".f1f1fwnz{color:var(--colorPaletteMagentaForeground2);}",
742
619
  ".f4xb6j5{background-color:var(--colorPaletteMagentaBackground2);}",
743
- ".fb6rmqc::before{color:var(--colorPaletteMagentaBorderActive);}",
744
620
  ".f8ptl6j{color:var(--colorPalettePlumForeground2);}",
745
621
  ".fqo8e26{background-color:var(--colorPalettePlumBackground2);}",
746
- ".f1a4gm5b::before{color:var(--colorPalettePlumBorderActive);}",
747
622
  ".f1ntv3ld{color:var(--colorPaletteBeigeForeground2);}",
748
623
  ".f101elhj{background-color:var(--colorPaletteBeigeBackground2);}",
749
- ".f1qpf9z1::before{color:var(--colorPaletteBeigeBorderActive);}",
750
624
  ".f1fscmp{color:var(--colorPaletteMinkForeground2);}",
751
625
  ".f13g8o5c{background-color:var(--colorPaletteMinkBackground2);}",
752
- ".f1l7or83::before{color:var(--colorPaletteMinkBorderActive);}",
753
626
  ".f1dr00v2{color:var(--colorPalettePlatinumForeground2);}",
754
627
  ".fkh7blw{background-color:var(--colorPalettePlatinumBackground2);}",
755
- ".fzrj0iu::before{color:var(--colorPalettePlatinumBorderActive);}",
756
628
  ".f1f3ti53{color:var(--colorPaletteAnchorForeground2);}",
757
- ".fu4yj0j{background-color:var(--colorPaletteAnchorBackground2);}",
629
+ ".fu4yj0j{background-color:var(--colorPaletteAnchorBackground2);}"
630
+ ]
631
+ });
632
+ const useRingColorStyles = /*#__PURE__*/ (0, _react["__styles"])({
633
+ neutral: {
634
+ Bic5iru: "f1uuiafn"
635
+ },
636
+ brand: {
637
+ Bic5iru: "f1uuiafn"
638
+ },
639
+ "dark-red": {
640
+ Bic5iru: "f1t2x9on"
641
+ },
642
+ cranberry: {
643
+ Bic5iru: "f1pvshc9"
644
+ },
645
+ red: {
646
+ Bic5iru: "f1ectbk9"
647
+ },
648
+ pumpkin: {
649
+ Bic5iru: "fvzpl0b"
650
+ },
651
+ peach: {
652
+ Bic5iru: "fwj2kd7"
653
+ },
654
+ marigold: {
655
+ Bic5iru: "fr120vy"
656
+ },
657
+ gold: {
658
+ Bic5iru: "f8xmmar"
659
+ },
660
+ brass: {
661
+ Bic5iru: "f1hbety2"
662
+ },
663
+ brown: {
664
+ Bic5iru: "f1vg3s4g"
665
+ },
666
+ forest: {
667
+ Bic5iru: "f1m3olm5"
668
+ },
669
+ seafoam: {
670
+ Bic5iru: "f17xiqtr"
671
+ },
672
+ "dark-green": {
673
+ Bic5iru: "fx32vyh"
674
+ },
675
+ "light-teal": {
676
+ Bic5iru: "f1mkihwv"
677
+ },
678
+ teal: {
679
+ Bic5iru: "fecnooh"
680
+ },
681
+ steel: {
682
+ Bic5iru: "f15hfgzm"
683
+ },
684
+ blue: {
685
+ Bic5iru: "fqproka"
686
+ },
687
+ "royal-blue": {
688
+ Bic5iru: "f17v2w59"
689
+ },
690
+ cornflower: {
691
+ Bic5iru: "fp0q1mo"
692
+ },
693
+ navy: {
694
+ Bic5iru: "f1nlym55"
695
+ },
696
+ lavender: {
697
+ Bic5iru: "f62vk8h"
698
+ },
699
+ purple: {
700
+ Bic5iru: "f15zl69q"
701
+ },
702
+ grape: {
703
+ Bic5iru: "f53w4j7"
704
+ },
705
+ lilac: {
706
+ Bic5iru: "fu2771t"
707
+ },
708
+ pink: {
709
+ Bic5iru: "fzflscs"
710
+ },
711
+ magenta: {
712
+ Bic5iru: "fb6rmqc"
713
+ },
714
+ plum: {
715
+ Bic5iru: "f1a4gm5b"
716
+ },
717
+ beige: {
718
+ Bic5iru: "f1qpf9z1"
719
+ },
720
+ mink: {
721
+ Bic5iru: "f1l7or83"
722
+ },
723
+ platinum: {
724
+ Bic5iru: "fzrj0iu"
725
+ },
726
+ anchor: {
727
+ Bic5iru: "f8oz6wf"
728
+ }
729
+ }, {
730
+ d: [
731
+ ".f1uuiafn::before{color:var(--colorBrandStroke1);}",
732
+ ".f1t2x9on::before{color:var(--colorPaletteDarkRedBorderActive);}",
733
+ ".f1pvshc9::before{color:var(--colorPaletteCranberryBorderActive);}",
734
+ ".f1ectbk9::before{color:var(--colorPaletteRedBorderActive);}",
735
+ ".fvzpl0b::before{color:var(--colorPalettePumpkinBorderActive);}",
736
+ ".fwj2kd7::before{color:var(--colorPalettePeachBorderActive);}",
737
+ ".fr120vy::before{color:var(--colorPaletteMarigoldBorderActive);}",
738
+ ".f8xmmar::before{color:var(--colorPaletteGoldBorderActive);}",
739
+ ".f1hbety2::before{color:var(--colorPaletteBrassBorderActive);}",
740
+ ".f1vg3s4g::before{color:var(--colorPaletteBrownBorderActive);}",
741
+ ".f1m3olm5::before{color:var(--colorPaletteForestBorderActive);}",
742
+ ".f17xiqtr::before{color:var(--colorPaletteSeafoamBorderActive);}",
743
+ ".fx32vyh::before{color:var(--colorPaletteDarkGreenBorderActive);}",
744
+ ".f1mkihwv::before{color:var(--colorPaletteLightTealBorderActive);}",
745
+ ".fecnooh::before{color:var(--colorPaletteTealBorderActive);}",
746
+ ".f15hfgzm::before{color:var(--colorPaletteSteelBorderActive);}",
747
+ ".fqproka::before{color:var(--colorPaletteBlueBorderActive);}",
748
+ ".f17v2w59::before{color:var(--colorPaletteRoyalBlueBorderActive);}",
749
+ ".fp0q1mo::before{color:var(--colorPaletteCornflowerBorderActive);}",
750
+ ".f1nlym55::before{color:var(--colorPaletteNavyBorderActive);}",
751
+ ".f62vk8h::before{color:var(--colorPaletteLavenderBorderActive);}",
752
+ ".f15zl69q::before{color:var(--colorPalettePurpleBorderActive);}",
753
+ ".f53w4j7::before{color:var(--colorPaletteGrapeBorderActive);}",
754
+ ".fu2771t::before{color:var(--colorPaletteLilacBorderActive);}",
755
+ ".fzflscs::before{color:var(--colorPalettePinkBorderActive);}",
756
+ ".fb6rmqc::before{color:var(--colorPaletteMagentaBorderActive);}",
757
+ ".f1a4gm5b::before{color:var(--colorPalettePlumBorderActive);}",
758
+ ".f1qpf9z1::before{color:var(--colorPaletteBeigeBorderActive);}",
759
+ ".f1l7or83::before{color:var(--colorPaletteMinkBorderActive);}",
760
+ ".fzrj0iu::before{color:var(--colorPalettePlatinumBorderActive);}",
758
761
  ".f8oz6wf::before{color:var(--colorPaletteAnchorBorderActive);}"
759
762
  ]
760
763
  });
@@ -766,11 +769,14 @@ const useAvatarStyles_unstable = (state)=>{
766
769
  const styles = useStyles();
767
770
  const sizeStyles = useSizeStyles();
768
771
  const colorStyles = useColorStyles();
772
+ const ringColorStyles = useRingColorStyles();
769
773
  const rootClasses = [
770
774
  rootClassName,
771
- size !== 32 && sizeStyles[size],
772
- colorStyles[color]
775
+ size !== 32 && sizeStyles[size]
773
776
  ];
777
+ if (state.badge) {
778
+ rootClasses.push(styles.badgeAlign, styles[state.badge.size || 'medium']);
779
+ }
774
780
  if (size <= 24) {
775
781
  rootClasses.push(styles.textCaption2Strong);
776
782
  } else if (size <= 28) {
@@ -798,7 +804,10 @@ const useAvatarStyles_unstable = (state)=>{
798
804
  if (active === 'active' || active === 'inactive') {
799
805
  rootClasses.push(styles.activeOrInactive);
800
806
  if (activeAppearance === 'ring' || activeAppearance === 'ring-shadow') {
801
- rootClasses.push(styles.ring);
807
+ rootClasses.push(styles.ring, ringColorStyles[color]);
808
+ if (state.badge) {
809
+ rootClasses.push(styles.ringBadgeCutout);
810
+ }
802
811
  if (size <= 48) {
803
812
  rootClasses.push(styles.ringThick);
804
813
  } else if (size <= 64) {
@@ -808,6 +817,7 @@ const useAvatarStyles_unstable = (state)=>{
808
817
  }
809
818
  }
810
819
  if (activeAppearance === 'shadow' || activeAppearance === 'ring-shadow') {
820
+ rootClasses.push(styles.shadow);
811
821
  if (size <= 28) {
812
822
  rootClasses.push(styles.shadow4);
813
823
  } else if (size <= 48) {
@@ -825,13 +835,13 @@ const useAvatarStyles_unstable = (state)=>{
825
835
  }
826
836
  state.root.className = (0, _react.mergeClasses)(avatarClassNames.root, ...rootClasses, state.root.className);
827
837
  if (state.badge) {
828
- state.badge.className = (0, _react.mergeClasses)(avatarClassNames.badge, styles.badge, size >= 64 && styles.badgeLarge, state.badge.className);
838
+ state.badge.className = (0, _react.mergeClasses)(avatarClassNames.badge, styles.badge, state.badge.className);
829
839
  }
830
840
  if (state.image) {
831
- state.image.className = (0, _react.mergeClasses)(avatarClassNames.image, imageClassName, state.image.className);
841
+ state.image.className = (0, _react.mergeClasses)(avatarClassNames.image, imageClassName, colorStyles[color], state.badge && styles.badgeCutout, state.image.className);
832
842
  }
833
843
  if (state.initials) {
834
- state.initials.className = (0, _react.mergeClasses)(avatarClassNames.initials, iconInitialsClassName, state.initials.className);
844
+ state.initials.className = (0, _react.mergeClasses)(avatarClassNames.initials, iconInitialsClassName, colorStyles[color], state.badge && styles.badgeCutout, state.initials.className);
835
845
  }
836
846
  if (state.icon) {
837
847
  let iconSizeClass;
@@ -850,9 +860,9 @@ const useAvatarStyles_unstable = (state)=>{
850
860
  } else {
851
861
  iconSizeClass = styles.icon48;
852
862
  }
853
- state.icon.className = (0, _react.mergeClasses)(avatarClassNames.icon, iconInitialsClassName, iconSizeClass, state.icon.className);
863
+ state.icon.className = (0, _react.mergeClasses)(avatarClassNames.icon, iconInitialsClassName, iconSizeClass, colorStyles[color], state.badge && styles.badgeCutout, state.icon.className);
854
864
  }
855
865
  return state;
856
- }; //# sourceMappingURL=useAvatarStyles.js.map
866
+ }; //# sourceMappingURL=useAvatarStyles.styles.js.map
857
867
 
858
- //# sourceMappingURL=useAvatarStyles.js.map
868
+ //# sourceMappingURL=useAvatarStyles.styles.js.map