@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.
- package/CHANGELOG.json +126 -5
- package/CHANGELOG.md +34 -6
- package/dist/index.d.ts +7 -1
- package/lib/components/Avatar/Avatar.js +3 -6
- package/lib/components/Avatar/Avatar.js.map +1 -1
- package/lib/components/Avatar/Avatar.types.js.map +1 -1
- package/lib/components/Avatar/index.js +1 -1
- package/lib/components/Avatar/index.js.map +1 -1
- package/lib/components/Avatar/useAvatar.js +2 -1
- package/lib/components/Avatar/useAvatar.js.map +1 -1
- package/lib/components/Avatar/useAvatarStyles.styles.js +584 -0
- package/lib/components/Avatar/useAvatarStyles.styles.js.map +1 -0
- package/lib/components/AvatarGroup/AvatarGroup.js +3 -6
- package/lib/components/AvatarGroup/AvatarGroup.js.map +1 -1
- package/lib/components/AvatarGroup/index.js +1 -1
- package/lib/components/AvatarGroup/index.js.map +1 -1
- package/lib/components/AvatarGroup/{useAvatarGroupStyles.js → useAvatarGroupStyles.styles.js} +2 -2
- package/lib/components/AvatarGroup/useAvatarGroupStyles.styles.js.map +1 -0
- package/lib/components/AvatarGroupItem/AvatarGroupItem.js +3 -6
- package/lib/components/AvatarGroupItem/AvatarGroupItem.js.map +1 -1
- package/lib/components/AvatarGroupItem/index.js +1 -1
- package/lib/components/AvatarGroupItem/index.js.map +1 -1
- package/lib/components/AvatarGroupItem/{useAvatarGroupItemStyles.js → useAvatarGroupItemStyles.styles.js} +1 -1
- package/lib/components/AvatarGroupItem/useAvatarGroupItemStyles.styles.js.map +1 -0
- package/lib/components/AvatarGroupPopover/AvatarGroupPopover.js +3 -6
- package/lib/components/AvatarGroupPopover/AvatarGroupPopover.js.map +1 -1
- package/lib/components/AvatarGroupPopover/index.js +1 -1
- package/lib/components/AvatarGroupPopover/index.js.map +1 -1
- package/lib/components/AvatarGroupPopover/{useAvatarGroupPopoverStyles.js → useAvatarGroupPopoverStyles.styles.js} +10 -11
- package/lib/components/AvatarGroupPopover/useAvatarGroupPopoverStyles.styles.js.map +1 -0
- package/lib/contexts/AvatarContext.js.map +1 -1
- package/lib/index.js.map +1 -1
- package/lib/utils/getInitials.js +1 -1
- package/lib/utils/getInitials.js.map +1 -1
- package/lib-commonjs/components/Avatar/Avatar.js +3 -4
- package/lib-commonjs/components/Avatar/Avatar.js.map +1 -1
- package/lib-commonjs/components/Avatar/index.js +1 -1
- package/lib-commonjs/components/Avatar/index.js.map +1 -1
- package/lib-commonjs/components/Avatar/useAvatar.js +2 -2
- package/lib-commonjs/components/Avatar/useAvatar.js.map +1 -1
- package/lib-commonjs/components/Avatar/{useAvatarStyles.js → useAvatarStyles.styles.js} +295 -285
- package/lib-commonjs/components/Avatar/useAvatarStyles.styles.js.map +1 -0
- package/lib-commonjs/components/AvatarGroup/AvatarGroup.js +3 -4
- package/lib-commonjs/components/AvatarGroup/AvatarGroup.js.map +1 -1
- package/lib-commonjs/components/AvatarGroup/index.js +1 -1
- package/lib-commonjs/components/AvatarGroup/index.js.map +1 -1
- package/lib-commonjs/components/AvatarGroup/{useAvatarGroupStyles.js → useAvatarGroupStyles.styles.js} +4 -4
- package/lib-commonjs/components/AvatarGroup/useAvatarGroupStyles.styles.js.map +1 -0
- package/lib-commonjs/components/AvatarGroupItem/AvatarGroupItem.js +3 -4
- package/lib-commonjs/components/AvatarGroupItem/AvatarGroupItem.js.map +1 -1
- package/lib-commonjs/components/AvatarGroupItem/index.js +1 -1
- package/lib-commonjs/components/AvatarGroupItem/index.js.map +1 -1
- package/lib-commonjs/components/AvatarGroupItem/{useAvatarGroupItemStyles.js → useAvatarGroupItemStyles.styles.js} +2 -2
- package/lib-commonjs/components/AvatarGroupItem/useAvatarGroupItemStyles.styles.js.map +1 -0
- package/lib-commonjs/components/AvatarGroupPopover/AvatarGroupPopover.js +3 -4
- package/lib-commonjs/components/AvatarGroupPopover/AvatarGroupPopover.js.map +1 -1
- package/lib-commonjs/components/AvatarGroupPopover/index.js +1 -1
- package/lib-commonjs/components/AvatarGroupPopover/index.js.map +1 -1
- package/lib-commonjs/components/AvatarGroupPopover/{useAvatarGroupPopoverStyles.js → useAvatarGroupPopoverStyles.styles.js} +15 -17
- package/lib-commonjs/components/AvatarGroupPopover/useAvatarGroupPopoverStyles.styles.js.map +1 -0
- package/lib-commonjs/utils/getInitials.js +1 -2
- package/lib-commonjs/utils/getInitials.js.map +1 -1
- package/package.json +11 -11
- package/.swcrc +0 -30
- package/lib/components/Avatar/useAvatarStyles.js +0 -493
- package/lib/components/Avatar/useAvatarStyles.js.map +0 -1
- package/lib/components/AvatarGroup/useAvatarGroupStyles.js.map +0 -1
- package/lib/components/AvatarGroupItem/useAvatarGroupItemStyles.js.map +0 -1
- package/lib/components/AvatarGroupPopover/useAvatarGroupPopoverStyles.js.map +0 -1
- package/lib-commonjs/components/Avatar/useAvatarStyles.js.map +0 -1
- package/lib-commonjs/components/AvatarGroup/useAvatarGroupStyles.js.map +0 -1
- package/lib-commonjs/components/AvatarGroupItem/useAvatarGroupItemStyles.js.map +0 -1
- package/lib-commonjs/components/AvatarGroupPopover/useAvatarGroupPopoverStyles.js.map +0 -1
|
@@ -0,0 +1,584 @@
|
|
|
1
|
+
import { tokens } from '@fluentui/react-theme';
|
|
2
|
+
import { __resetStyles, __styles, mergeClasses, shorthands } from '@griffel/react';
|
|
3
|
+
export const avatarClassNames = {
|
|
4
|
+
root: 'fui-Avatar',
|
|
5
|
+
image: 'fui-Avatar__image',
|
|
6
|
+
initials: 'fui-Avatar__initials',
|
|
7
|
+
icon: 'fui-Avatar__icon',
|
|
8
|
+
badge: 'fui-Avatar__badge'
|
|
9
|
+
};
|
|
10
|
+
// CSS variables used internally in Avatar's styles
|
|
11
|
+
const vars = {
|
|
12
|
+
badgeRadius: '--fui-Avatar-badgeRadius',
|
|
13
|
+
badgeGap: '--fui-Avatar-badgeGap',
|
|
14
|
+
badgeAlign: '--fui-Avatar-badgeAlign',
|
|
15
|
+
ringWidth: '--fui-Avatar-ringWidth'
|
|
16
|
+
};
|
|
17
|
+
const useRootClassName = /*#__PURE__*/__resetStyles("r81b29z", "r1aatmv", [".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;}", ".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);}", "@media screen and (prefers-reduced-motion: reduce){.r81b29z::before,.r81b29z::after{transition-duration:0.01ms;}}", ".r81b29z::before{border-style:solid;border-width:var(--fui-Avatar-ringWidth);}", ".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;}", ".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);}", "@media screen and (prefers-reduced-motion: reduce){.r1aatmv::before,.r1aatmv::after{transition-duration:0.01ms;}}", ".r1aatmv::before{border-style:solid;border-width:var(--fui-Avatar-ringWidth);}"]);
|
|
18
|
+
const useImageClassName = /*#__PURE__*/__resetStyles("r136dc0n", "rjly0nl", [".r136dc0n{position:absolute;top:0;left:0;width:100%;height:100%;border-radius:inherit;object-fit:cover;vertical-align:top;}", ".rjly0nl{position:absolute;top:0;right:0;width:100%;height:100%;border-radius:inherit;object-fit:cover;vertical-align:top;}"]);
|
|
19
|
+
const useIconInitialsClassName = /*#__PURE__*/__resetStyles("rip04v", "r31uzil", [".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;}", ".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;}"]);
|
|
20
|
+
/**
|
|
21
|
+
* Helper to create a maskImage that punches out a circle larger than the badge by `badgeGap`.
|
|
22
|
+
* This creates a transparent gap between the badge and Avatar.
|
|
23
|
+
*
|
|
24
|
+
* Used by the icon, initials, and image slots, as well as the ring ::before pseudo-element.
|
|
25
|
+
*/
|
|
26
|
+
const badgeMask = margin => {
|
|
27
|
+
// Center the cutout at the badge's radius away from the edge.
|
|
28
|
+
// The ring (::before) also has a 2 * ringWidth margin that also needs to be offset.
|
|
29
|
+
const centerOffset = margin ? `calc(var(${vars.badgeRadius}) + ${margin})` : `var(${vars.badgeRadius})`;
|
|
30
|
+
// radial-gradient does not have anti-aliasing, so the transparent and opaque gradient stops are offset by +/- 0.25px
|
|
31
|
+
// to "fade" from transparent to opaque over a half-pixel and ease the transition.
|
|
32
|
+
const innerRadius = `calc(var(${vars.badgeRadius}) + var(${vars.badgeGap}) - 0.25px)`;
|
|
33
|
+
const outerRadius = `calc(var(${vars.badgeRadius}) + var(${vars.badgeGap}) + 0.25px)`;
|
|
34
|
+
return `radial-gradient(circle at bottom ${centerOffset} var(${vars.badgeAlign}) ${centerOffset}, ` + `transparent ${innerRadius}, white ${outerRadius})`;
|
|
35
|
+
};
|
|
36
|
+
const useStyles = /*#__PURE__*/__styles({
|
|
37
|
+
textCaption2Strong: {
|
|
38
|
+
Be2twd7: "f13mqy1h"
|
|
39
|
+
},
|
|
40
|
+
textCaption1Strong: {
|
|
41
|
+
Be2twd7: "fy9rknc"
|
|
42
|
+
},
|
|
43
|
+
textSubtitle2: {
|
|
44
|
+
Be2twd7: "fod5ikn"
|
|
45
|
+
},
|
|
46
|
+
textSubtitle1: {
|
|
47
|
+
Be2twd7: "f1pp30po"
|
|
48
|
+
},
|
|
49
|
+
textTitle3: {
|
|
50
|
+
Be2twd7: "f1x0m3f5"
|
|
51
|
+
},
|
|
52
|
+
squareSmall: {
|
|
53
|
+
Bbmb7ep: ["f1g3puop", "fi2rrw2"],
|
|
54
|
+
Beyfa6y: ["fi2rrw2", "f1g3puop"],
|
|
55
|
+
B7oj6ja: ["f1rstyi9", "f1s4nn1u"],
|
|
56
|
+
Btl43ni: ["f1s4nn1u", "f1rstyi9"]
|
|
57
|
+
},
|
|
58
|
+
squareMedium: {
|
|
59
|
+
Bbmb7ep: ["f1aa9q02", "f16jpd5f"],
|
|
60
|
+
Beyfa6y: ["f16jpd5f", "f1aa9q02"],
|
|
61
|
+
B7oj6ja: ["f1jar5jt", "fyu767a"],
|
|
62
|
+
Btl43ni: ["fyu767a", "f1jar5jt"]
|
|
63
|
+
},
|
|
64
|
+
squareLarge: {
|
|
65
|
+
Bbmb7ep: ["f1ldthgs", "frrelxk"],
|
|
66
|
+
Beyfa6y: ["frrelxk", "f1ldthgs"],
|
|
67
|
+
B7oj6ja: ["fobrfso", "ffisxpw"],
|
|
68
|
+
Btl43ni: ["ffisxpw", "fobrfso"]
|
|
69
|
+
},
|
|
70
|
+
squareXLarge: {
|
|
71
|
+
Bbmb7ep: ["fnivh3a", "fc7yr5o"],
|
|
72
|
+
Beyfa6y: ["fc7yr5o", "fnivh3a"],
|
|
73
|
+
B7oj6ja: ["f1el4m67", "f8yange"],
|
|
74
|
+
Btl43ni: ["f8yange", "f1el4m67"]
|
|
75
|
+
},
|
|
76
|
+
activeOrInactive: {
|
|
77
|
+
Bz10aip: "ftfx35i",
|
|
78
|
+
Bmy1vo4: "fv0atk9",
|
|
79
|
+
B3o57yi: "f1iry5bo",
|
|
80
|
+
Bkqvd7p: "f15n41j8",
|
|
81
|
+
Hwfdqs: "f1onx1g3"
|
|
82
|
+
},
|
|
83
|
+
ring: {
|
|
84
|
+
Ftih45: "f1wl9k8s"
|
|
85
|
+
},
|
|
86
|
+
ringBadgeCutout: {
|
|
87
|
+
f4a502: "fp2gujx"
|
|
88
|
+
},
|
|
89
|
+
ringThick: {
|
|
90
|
+
of393c: "fq1w1vq"
|
|
91
|
+
},
|
|
92
|
+
ringThicker: {
|
|
93
|
+
of393c: "fzg6ace"
|
|
94
|
+
},
|
|
95
|
+
ringThickest: {
|
|
96
|
+
of393c: "f1nu8p71"
|
|
97
|
+
},
|
|
98
|
+
shadow: {
|
|
99
|
+
Bsft5z2: "f13zj6fq"
|
|
100
|
+
},
|
|
101
|
+
shadow4: {
|
|
102
|
+
Be6vj1x: "fcjn15l"
|
|
103
|
+
},
|
|
104
|
+
shadow8: {
|
|
105
|
+
Be6vj1x: "f1tm8t9f"
|
|
106
|
+
},
|
|
107
|
+
shadow16: {
|
|
108
|
+
Be6vj1x: "f1a1aohj"
|
|
109
|
+
},
|
|
110
|
+
shadow28: {
|
|
111
|
+
Be6vj1x: "fond6v5"
|
|
112
|
+
},
|
|
113
|
+
inactive: {
|
|
114
|
+
abs64n: "fp25eh",
|
|
115
|
+
Bz10aip: "f1clczzi",
|
|
116
|
+
Bkqvd7p: "f1l3s34x",
|
|
117
|
+
Bucmhp4: "f1f5ar78",
|
|
118
|
+
b2tv09: ["fqxtap0", "fhjukvy"],
|
|
119
|
+
Bfgortx: "f1qj1nzo",
|
|
120
|
+
Bnvr3x9: ["fhjukvy", "fqxtap0"],
|
|
121
|
+
b6ubon: "fw457kn",
|
|
122
|
+
Bqinb2h: "f1wmllxl"
|
|
123
|
+
},
|
|
124
|
+
badge: {
|
|
125
|
+
qhf8xq: "f1euv43f",
|
|
126
|
+
B5kzvoi: "f1yab3r1",
|
|
127
|
+
j35jbq: ["f1e31b4d", "f1vgc2s3"]
|
|
128
|
+
},
|
|
129
|
+
badgeCutout: {
|
|
130
|
+
btxmck: "f1eugkqs"
|
|
131
|
+
},
|
|
132
|
+
badgeAlign: {
|
|
133
|
+
Dnlfbu: ["f1tlnv9o", "f1y9kyih"]
|
|
134
|
+
},
|
|
135
|
+
tiny: {
|
|
136
|
+
Bdjeniz: "f1uwoubl",
|
|
137
|
+
niu6jh: "fid048z"
|
|
138
|
+
},
|
|
139
|
+
"extra-small": {
|
|
140
|
+
Bdjeniz: "f13ar0e0",
|
|
141
|
+
niu6jh: "fid048z"
|
|
142
|
+
},
|
|
143
|
+
small: {
|
|
144
|
+
Bdjeniz: "fwwuruf",
|
|
145
|
+
niu6jh: "fid048z"
|
|
146
|
+
},
|
|
147
|
+
medium: {
|
|
148
|
+
Bdjeniz: "f1af27q5",
|
|
149
|
+
niu6jh: "fid048z"
|
|
150
|
+
},
|
|
151
|
+
large: {
|
|
152
|
+
Bdjeniz: "f18yy57a",
|
|
153
|
+
niu6jh: "f924bxt"
|
|
154
|
+
},
|
|
155
|
+
"extra-large": {
|
|
156
|
+
Bdjeniz: "f2jg042",
|
|
157
|
+
niu6jh: "f924bxt"
|
|
158
|
+
},
|
|
159
|
+
icon12: {
|
|
160
|
+
Be2twd7: "f1ugzwwg"
|
|
161
|
+
},
|
|
162
|
+
icon16: {
|
|
163
|
+
Be2twd7: "f4ybsrx"
|
|
164
|
+
},
|
|
165
|
+
icon20: {
|
|
166
|
+
Be2twd7: "fe5j1ua"
|
|
167
|
+
},
|
|
168
|
+
icon24: {
|
|
169
|
+
Be2twd7: "f1rt2boy"
|
|
170
|
+
},
|
|
171
|
+
icon28: {
|
|
172
|
+
Be2twd7: "f24l1pt"
|
|
173
|
+
},
|
|
174
|
+
icon32: {
|
|
175
|
+
Be2twd7: "ffl51b"
|
|
176
|
+
},
|
|
177
|
+
icon48: {
|
|
178
|
+
Be2twd7: "f18m8u13"
|
|
179
|
+
}
|
|
180
|
+
}, {
|
|
181
|
+
d: [".f13mqy1h{font-size:var(--fontSizeBase100);}", ".fy9rknc{font-size:var(--fontSizeBase200);}", ".fod5ikn{font-size:var(--fontSizeBase400);}", ".f1pp30po{font-size:var(--fontSizeBase500);}", ".f1x0m3f5{font-size:var(--fontSizeBase600);}", ".f1g3puop{border-bottom-right-radius:var(--borderRadiusSmall);}", ".fi2rrw2{border-bottom-left-radius:var(--borderRadiusSmall);}", ".f1rstyi9{border-top-right-radius:var(--borderRadiusSmall);}", ".f1s4nn1u{border-top-left-radius:var(--borderRadiusSmall);}", ".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}", ".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}", ".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}", ".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}", ".f1ldthgs{border-bottom-right-radius:var(--borderRadiusLarge);}", ".frrelxk{border-bottom-left-radius:var(--borderRadiusLarge);}", ".fobrfso{border-top-right-radius:var(--borderRadiusLarge);}", ".ffisxpw{border-top-left-radius:var(--borderRadiusLarge);}", ".fnivh3a{border-bottom-right-radius:var(--borderRadiusXLarge);}", ".fc7yr5o{border-bottom-left-radius:var(--borderRadiusXLarge);}", ".f1el4m67{border-top-right-radius:var(--borderRadiusXLarge);}", ".f8yange{border-top-left-radius:var(--borderRadiusXLarge);}", ".ftfx35i{-webkit-transform:perspective(1px);-moz-transform:perspective(1px);-ms-transform:perspective(1px);transform:perspective(1px);}", ".fv0atk9{transition-property:transform,opacity;}", ".f1iry5bo{transition-duration:var(--durationUltraSlow),var(--durationFaster);}", ".f15n41j8{transition-timing-function:var(--curveEasyEaseMax),var(--curveLinear);}", ".f1wl9k8s::before{content:\"\";}", ".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));}", ".fq1w1vq{--fui-Avatar-ringWidth:var(--strokeWidthThick);}", ".fzg6ace{--fui-Avatar-ringWidth:var(--strokeWidthThicker);}", ".f1nu8p71{--fui-Avatar-ringWidth:var(--strokeWidthThickest);}", ".f13zj6fq::after{content:\"\";}", ".fcjn15l::after{box-shadow:var(--shadow4);}", ".f1tm8t9f::after{box-shadow:var(--shadow8);}", ".f1a1aohj::after{box-shadow:var(--shadow16);}", ".fond6v5::after{box-shadow:var(--shadow28);}", ".fp25eh{opacity:0.8;}", ".f1clczzi{-webkit-transform:scale(0.875);-moz-transform:scale(0.875);-ms-transform:scale(0.875);transform:scale(0.875);}", ".f1l3s34x{transition-timing-function:var(--curveDecelerateMin),var(--curveLinear);}", ".f1f5ar78::before,.f1f5ar78::after{margin-top:0;}", ".fqxtap0::before,.fqxtap0::after{margin-right:0;}", ".fhjukvy::before,.fhjukvy::after{margin-left:0;}", ".f1qj1nzo::before,.f1qj1nzo::after{margin-bottom:0;}", ".fw457kn::before,.fw457kn::after{opacity:0;}", ".f1wmllxl::before,.f1wmllxl::after{transition-timing-function:var(--curveDecelerateMin),var(--curveLinear);}", ".f1euv43f{position:absolute;}", ".f1yab3r1{bottom:0;}", ".f1e31b4d{right:0;}", ".f1vgc2s3{left:0;}", ".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));}", ".f1tlnv9o{--fui-Avatar-badgeAlign:right;}", ".f1y9kyih{--fui-Avatar-badgeAlign:left;}", ".f1uwoubl{--fui-Avatar-badgeRadius:3px;}", ".fid048z{--fui-Avatar-badgeGap:var(--strokeWidthThin);}", ".f13ar0e0{--fui-Avatar-badgeRadius:5px;}", ".fwwuruf{--fui-Avatar-badgeRadius:6px;}", ".f1af27q5{--fui-Avatar-badgeRadius:8px;}", ".f18yy57a{--fui-Avatar-badgeRadius:10px;}", ".f924bxt{--fui-Avatar-badgeGap:var(--strokeWidthThick);}", ".f2jg042{--fui-Avatar-badgeRadius:14px;}", ".f1ugzwwg{font-size:12px;}", ".f4ybsrx{font-size:16px;}", ".fe5j1ua{font-size:20px;}", ".f1rt2boy{font-size:24px;}", ".f24l1pt{font-size:28px;}", ".ffl51b{font-size:32px;}", ".f18m8u13{font-size:48px;}"],
|
|
182
|
+
m: [["@media screen and (prefers-reduced-motion: reduce){.f1onx1g3{transition-duration:0.01ms;}}", {
|
|
183
|
+
m: "screen and (prefers-reduced-motion: reduce)"
|
|
184
|
+
}]]
|
|
185
|
+
});
|
|
186
|
+
export const useSizeStyles = /*#__PURE__*/__styles({
|
|
187
|
+
"16": {
|
|
188
|
+
a9b677: "fjw5fx7",
|
|
189
|
+
Bqenvij: "fd461yt"
|
|
190
|
+
},
|
|
191
|
+
"20": {
|
|
192
|
+
a9b677: "f64fuq3",
|
|
193
|
+
Bqenvij: "fjamq6b"
|
|
194
|
+
},
|
|
195
|
+
"24": {
|
|
196
|
+
a9b677: "fq4mcun",
|
|
197
|
+
Bqenvij: "frvgh55"
|
|
198
|
+
},
|
|
199
|
+
"28": {
|
|
200
|
+
a9b677: "f1w9dchk",
|
|
201
|
+
Bqenvij: "fxldao9"
|
|
202
|
+
},
|
|
203
|
+
"32": {
|
|
204
|
+
a9b677: "f1szoe96",
|
|
205
|
+
Bqenvij: "f1d2rq10"
|
|
206
|
+
},
|
|
207
|
+
"36": {
|
|
208
|
+
a9b677: "fpdz1er",
|
|
209
|
+
Bqenvij: "f8ljn23"
|
|
210
|
+
},
|
|
211
|
+
"40": {
|
|
212
|
+
a9b677: "feqmc2u",
|
|
213
|
+
Bqenvij: "fbhnoac"
|
|
214
|
+
},
|
|
215
|
+
"48": {
|
|
216
|
+
a9b677: "f124akge",
|
|
217
|
+
Bqenvij: "ff2sm71"
|
|
218
|
+
},
|
|
219
|
+
"56": {
|
|
220
|
+
a9b677: "f1u66zr1",
|
|
221
|
+
Bqenvij: "fzki0ko"
|
|
222
|
+
},
|
|
223
|
+
"64": {
|
|
224
|
+
a9b677: "fa9ln6p",
|
|
225
|
+
Bqenvij: "f16k9i2m"
|
|
226
|
+
},
|
|
227
|
+
"72": {
|
|
228
|
+
a9b677: "fhcae8x",
|
|
229
|
+
Bqenvij: "f1shusfg"
|
|
230
|
+
},
|
|
231
|
+
"96": {
|
|
232
|
+
a9b677: "f1kyr2gn",
|
|
233
|
+
Bqenvij: "fypu0ge"
|
|
234
|
+
},
|
|
235
|
+
"120": {
|
|
236
|
+
a9b677: "fwfqyga",
|
|
237
|
+
Bqenvij: "fjr5b71"
|
|
238
|
+
},
|
|
239
|
+
"128": {
|
|
240
|
+
a9b677: "f1iksgmy",
|
|
241
|
+
Bqenvij: "fele2au"
|
|
242
|
+
}
|
|
243
|
+
}, {
|
|
244
|
+
d: [".fjw5fx7{width:16px;}", ".fd461yt{height:16px;}", ".f64fuq3{width:20px;}", ".fjamq6b{height:20px;}", ".fq4mcun{width:24px;}", ".frvgh55{height:24px;}", ".f1w9dchk{width:28px;}", ".fxldao9{height:28px;}", ".f1szoe96{width:32px;}", ".f1d2rq10{height:32px;}", ".fpdz1er{width:36px;}", ".f8ljn23{height:36px;}", ".feqmc2u{width:40px;}", ".fbhnoac{height:40px;}", ".f124akge{width:48px;}", ".ff2sm71{height:48px;}", ".f1u66zr1{width:56px;}", ".fzki0ko{height:56px;}", ".fa9ln6p{width:64px;}", ".f16k9i2m{height:64px;}", ".fhcae8x{width:72px;}", ".f1shusfg{height:72px;}", ".f1kyr2gn{width:96px;}", ".fypu0ge{height:96px;}", ".fwfqyga{width:120px;}", ".fjr5b71{height:120px;}", ".f1iksgmy{width:128px;}", ".fele2au{height:128px;}"]
|
|
245
|
+
});
|
|
246
|
+
const useColorStyles = /*#__PURE__*/__styles({
|
|
247
|
+
neutral: {
|
|
248
|
+
sj55zd: "f11d4kpn",
|
|
249
|
+
De3pzq: "f18f03hv"
|
|
250
|
+
},
|
|
251
|
+
brand: {
|
|
252
|
+
sj55zd: "fonrgv7",
|
|
253
|
+
De3pzq: "f1blnnmj"
|
|
254
|
+
},
|
|
255
|
+
"dark-red": {
|
|
256
|
+
sj55zd: "fqjd1y1",
|
|
257
|
+
De3pzq: "f1vq2oo4"
|
|
258
|
+
},
|
|
259
|
+
cranberry: {
|
|
260
|
+
sj55zd: "fg9gses",
|
|
261
|
+
De3pzq: "f1lwxszt"
|
|
262
|
+
},
|
|
263
|
+
red: {
|
|
264
|
+
sj55zd: "f23f7i0",
|
|
265
|
+
De3pzq: "f1q9qhfq"
|
|
266
|
+
},
|
|
267
|
+
pumpkin: {
|
|
268
|
+
sj55zd: "fjnan08",
|
|
269
|
+
De3pzq: "fz91bi3"
|
|
270
|
+
},
|
|
271
|
+
peach: {
|
|
272
|
+
sj55zd: "fknu15p",
|
|
273
|
+
De3pzq: "f1b9nr51"
|
|
274
|
+
},
|
|
275
|
+
marigold: {
|
|
276
|
+
sj55zd: "f9603vw",
|
|
277
|
+
De3pzq: "f3z4w6d"
|
|
278
|
+
},
|
|
279
|
+
gold: {
|
|
280
|
+
sj55zd: "fmq0uwp",
|
|
281
|
+
De3pzq: "fg50kya"
|
|
282
|
+
},
|
|
283
|
+
brass: {
|
|
284
|
+
sj55zd: "f28g5vo",
|
|
285
|
+
De3pzq: "f4w2gd0"
|
|
286
|
+
},
|
|
287
|
+
brown: {
|
|
288
|
+
sj55zd: "ftl572b",
|
|
289
|
+
De3pzq: "f14wu1f4"
|
|
290
|
+
},
|
|
291
|
+
forest: {
|
|
292
|
+
sj55zd: "f1gymlvd",
|
|
293
|
+
De3pzq: "f19ut4y6"
|
|
294
|
+
},
|
|
295
|
+
seafoam: {
|
|
296
|
+
sj55zd: "fnnb6wn",
|
|
297
|
+
De3pzq: "f1n057jc"
|
|
298
|
+
},
|
|
299
|
+
"dark-green": {
|
|
300
|
+
sj55zd: "ff58qw8",
|
|
301
|
+
De3pzq: "f11t05wk"
|
|
302
|
+
},
|
|
303
|
+
"light-teal": {
|
|
304
|
+
sj55zd: "f1up9qbj",
|
|
305
|
+
De3pzq: "f42feg1"
|
|
306
|
+
},
|
|
307
|
+
teal: {
|
|
308
|
+
sj55zd: "f135dsb4",
|
|
309
|
+
De3pzq: "f6hvv1p"
|
|
310
|
+
},
|
|
311
|
+
steel: {
|
|
312
|
+
sj55zd: "f151dlcp",
|
|
313
|
+
De3pzq: "f1lnp8zf"
|
|
314
|
+
},
|
|
315
|
+
blue: {
|
|
316
|
+
sj55zd: "f1rjv50u",
|
|
317
|
+
De3pzq: "f1ggcpy6"
|
|
318
|
+
},
|
|
319
|
+
"royal-blue": {
|
|
320
|
+
sj55zd: "f1emykk5",
|
|
321
|
+
De3pzq: "f12rj61f"
|
|
322
|
+
},
|
|
323
|
+
cornflower: {
|
|
324
|
+
sj55zd: "fqsigj7",
|
|
325
|
+
De3pzq: "f8k7hur"
|
|
326
|
+
},
|
|
327
|
+
navy: {
|
|
328
|
+
sj55zd: "f1nj97xi",
|
|
329
|
+
De3pzq: "f19gw0ux"
|
|
330
|
+
},
|
|
331
|
+
lavender: {
|
|
332
|
+
sj55zd: "fwctg0i",
|
|
333
|
+
De3pzq: "ff379vm"
|
|
334
|
+
},
|
|
335
|
+
purple: {
|
|
336
|
+
sj55zd: "fjrsgpu",
|
|
337
|
+
De3pzq: "f1mzf1e1"
|
|
338
|
+
},
|
|
339
|
+
grape: {
|
|
340
|
+
sj55zd: "f1fiiydq",
|
|
341
|
+
De3pzq: "f1o4k8oy"
|
|
342
|
+
},
|
|
343
|
+
lilac: {
|
|
344
|
+
sj55zd: "f1res9jt",
|
|
345
|
+
De3pzq: "f1x6mz1o"
|
|
346
|
+
},
|
|
347
|
+
pink: {
|
|
348
|
+
sj55zd: "fv3fbbi",
|
|
349
|
+
De3pzq: "fydlv6t"
|
|
350
|
+
},
|
|
351
|
+
magenta: {
|
|
352
|
+
sj55zd: "f1f1fwnz",
|
|
353
|
+
De3pzq: "f4xb6j5"
|
|
354
|
+
},
|
|
355
|
+
plum: {
|
|
356
|
+
sj55zd: "f8ptl6j",
|
|
357
|
+
De3pzq: "fqo8e26"
|
|
358
|
+
},
|
|
359
|
+
beige: {
|
|
360
|
+
sj55zd: "f1ntv3ld",
|
|
361
|
+
De3pzq: "f101elhj"
|
|
362
|
+
},
|
|
363
|
+
mink: {
|
|
364
|
+
sj55zd: "f1fscmp",
|
|
365
|
+
De3pzq: "f13g8o5c"
|
|
366
|
+
},
|
|
367
|
+
platinum: {
|
|
368
|
+
sj55zd: "f1dr00v2",
|
|
369
|
+
De3pzq: "fkh7blw"
|
|
370
|
+
},
|
|
371
|
+
anchor: {
|
|
372
|
+
sj55zd: "f1f3ti53",
|
|
373
|
+
De3pzq: "fu4yj0j"
|
|
374
|
+
}
|
|
375
|
+
}, {
|
|
376
|
+
d: [".f11d4kpn{color:var(--colorNeutralForeground3);}", ".f18f03hv{background-color:var(--colorNeutralBackground6);}", ".fonrgv7{color:var(--colorNeutralForegroundStaticInverted);}", ".f1blnnmj{background-color:var(--colorBrandBackgroundStatic);}", ".fqjd1y1{color:var(--colorPaletteDarkRedForeground2);}", ".f1vq2oo4{background-color:var(--colorPaletteDarkRedBackground2);}", ".fg9gses{color:var(--colorPaletteCranberryForeground2);}", ".f1lwxszt{background-color:var(--colorPaletteCranberryBackground2);}", ".f23f7i0{color:var(--colorPaletteRedForeground2);}", ".f1q9qhfq{background-color:var(--colorPaletteRedBackground2);}", ".fjnan08{color:var(--colorPalettePumpkinForeground2);}", ".fz91bi3{background-color:var(--colorPalettePumpkinBackground2);}", ".fknu15p{color:var(--colorPalettePeachForeground2);}", ".f1b9nr51{background-color:var(--colorPalettePeachBackground2);}", ".f9603vw{color:var(--colorPaletteMarigoldForeground2);}", ".f3z4w6d{background-color:var(--colorPaletteMarigoldBackground2);}", ".fmq0uwp{color:var(--colorPaletteGoldForeground2);}", ".fg50kya{background-color:var(--colorPaletteGoldBackground2);}", ".f28g5vo{color:var(--colorPaletteBrassForeground2);}", ".f4w2gd0{background-color:var(--colorPaletteBrassBackground2);}", ".ftl572b{color:var(--colorPaletteBrownForeground2);}", ".f14wu1f4{background-color:var(--colorPaletteBrownBackground2);}", ".f1gymlvd{color:var(--colorPaletteForestForeground2);}", ".f19ut4y6{background-color:var(--colorPaletteForestBackground2);}", ".fnnb6wn{color:var(--colorPaletteSeafoamForeground2);}", ".f1n057jc{background-color:var(--colorPaletteSeafoamBackground2);}", ".ff58qw8{color:var(--colorPaletteDarkGreenForeground2);}", ".f11t05wk{background-color:var(--colorPaletteDarkGreenBackground2);}", ".f1up9qbj{color:var(--colorPaletteLightTealForeground2);}", ".f42feg1{background-color:var(--colorPaletteLightTealBackground2);}", ".f135dsb4{color:var(--colorPaletteTealForeground2);}", ".f6hvv1p{background-color:var(--colorPaletteTealBackground2);}", ".f151dlcp{color:var(--colorPaletteSteelForeground2);}", ".f1lnp8zf{background-color:var(--colorPaletteSteelBackground2);}", ".f1rjv50u{color:var(--colorPaletteBlueForeground2);}", ".f1ggcpy6{background-color:var(--colorPaletteBlueBackground2);}", ".f1emykk5{color:var(--colorPaletteRoyalBlueForeground2);}", ".f12rj61f{background-color:var(--colorPaletteRoyalBlueBackground2);}", ".fqsigj7{color:var(--colorPaletteCornflowerForeground2);}", ".f8k7hur{background-color:var(--colorPaletteCornflowerBackground2);}", ".f1nj97xi{color:var(--colorPaletteNavyForeground2);}", ".f19gw0ux{background-color:var(--colorPaletteNavyBackground2);}", ".fwctg0i{color:var(--colorPaletteLavenderForeground2);}", ".ff379vm{background-color:var(--colorPaletteLavenderBackground2);}", ".fjrsgpu{color:var(--colorPalettePurpleForeground2);}", ".f1mzf1e1{background-color:var(--colorPalettePurpleBackground2);}", ".f1fiiydq{color:var(--colorPaletteGrapeForeground2);}", ".f1o4k8oy{background-color:var(--colorPaletteGrapeBackground2);}", ".f1res9jt{color:var(--colorPaletteLilacForeground2);}", ".f1x6mz1o{background-color:var(--colorPaletteLilacBackground2);}", ".fv3fbbi{color:var(--colorPalettePinkForeground2);}", ".fydlv6t{background-color:var(--colorPalettePinkBackground2);}", ".f1f1fwnz{color:var(--colorPaletteMagentaForeground2);}", ".f4xb6j5{background-color:var(--colorPaletteMagentaBackground2);}", ".f8ptl6j{color:var(--colorPalettePlumForeground2);}", ".fqo8e26{background-color:var(--colorPalettePlumBackground2);}", ".f1ntv3ld{color:var(--colorPaletteBeigeForeground2);}", ".f101elhj{background-color:var(--colorPaletteBeigeBackground2);}", ".f1fscmp{color:var(--colorPaletteMinkForeground2);}", ".f13g8o5c{background-color:var(--colorPaletteMinkBackground2);}", ".f1dr00v2{color:var(--colorPalettePlatinumForeground2);}", ".fkh7blw{background-color:var(--colorPalettePlatinumBackground2);}", ".f1f3ti53{color:var(--colorPaletteAnchorForeground2);}", ".fu4yj0j{background-color:var(--colorPaletteAnchorBackground2);}"]
|
|
377
|
+
});
|
|
378
|
+
const useRingColorStyles = /*#__PURE__*/__styles({
|
|
379
|
+
neutral: {
|
|
380
|
+
Bic5iru: "f1uuiafn"
|
|
381
|
+
},
|
|
382
|
+
brand: {
|
|
383
|
+
Bic5iru: "f1uuiafn"
|
|
384
|
+
},
|
|
385
|
+
"dark-red": {
|
|
386
|
+
Bic5iru: "f1t2x9on"
|
|
387
|
+
},
|
|
388
|
+
cranberry: {
|
|
389
|
+
Bic5iru: "f1pvshc9"
|
|
390
|
+
},
|
|
391
|
+
red: {
|
|
392
|
+
Bic5iru: "f1ectbk9"
|
|
393
|
+
},
|
|
394
|
+
pumpkin: {
|
|
395
|
+
Bic5iru: "fvzpl0b"
|
|
396
|
+
},
|
|
397
|
+
peach: {
|
|
398
|
+
Bic5iru: "fwj2kd7"
|
|
399
|
+
},
|
|
400
|
+
marigold: {
|
|
401
|
+
Bic5iru: "fr120vy"
|
|
402
|
+
},
|
|
403
|
+
gold: {
|
|
404
|
+
Bic5iru: "f8xmmar"
|
|
405
|
+
},
|
|
406
|
+
brass: {
|
|
407
|
+
Bic5iru: "f1hbety2"
|
|
408
|
+
},
|
|
409
|
+
brown: {
|
|
410
|
+
Bic5iru: "f1vg3s4g"
|
|
411
|
+
},
|
|
412
|
+
forest: {
|
|
413
|
+
Bic5iru: "f1m3olm5"
|
|
414
|
+
},
|
|
415
|
+
seafoam: {
|
|
416
|
+
Bic5iru: "f17xiqtr"
|
|
417
|
+
},
|
|
418
|
+
"dark-green": {
|
|
419
|
+
Bic5iru: "fx32vyh"
|
|
420
|
+
},
|
|
421
|
+
"light-teal": {
|
|
422
|
+
Bic5iru: "f1mkihwv"
|
|
423
|
+
},
|
|
424
|
+
teal: {
|
|
425
|
+
Bic5iru: "fecnooh"
|
|
426
|
+
},
|
|
427
|
+
steel: {
|
|
428
|
+
Bic5iru: "f15hfgzm"
|
|
429
|
+
},
|
|
430
|
+
blue: {
|
|
431
|
+
Bic5iru: "fqproka"
|
|
432
|
+
},
|
|
433
|
+
"royal-blue": {
|
|
434
|
+
Bic5iru: "f17v2w59"
|
|
435
|
+
},
|
|
436
|
+
cornflower: {
|
|
437
|
+
Bic5iru: "fp0q1mo"
|
|
438
|
+
},
|
|
439
|
+
navy: {
|
|
440
|
+
Bic5iru: "f1nlym55"
|
|
441
|
+
},
|
|
442
|
+
lavender: {
|
|
443
|
+
Bic5iru: "f62vk8h"
|
|
444
|
+
},
|
|
445
|
+
purple: {
|
|
446
|
+
Bic5iru: "f15zl69q"
|
|
447
|
+
},
|
|
448
|
+
grape: {
|
|
449
|
+
Bic5iru: "f53w4j7"
|
|
450
|
+
},
|
|
451
|
+
lilac: {
|
|
452
|
+
Bic5iru: "fu2771t"
|
|
453
|
+
},
|
|
454
|
+
pink: {
|
|
455
|
+
Bic5iru: "fzflscs"
|
|
456
|
+
},
|
|
457
|
+
magenta: {
|
|
458
|
+
Bic5iru: "fb6rmqc"
|
|
459
|
+
},
|
|
460
|
+
plum: {
|
|
461
|
+
Bic5iru: "f1a4gm5b"
|
|
462
|
+
},
|
|
463
|
+
beige: {
|
|
464
|
+
Bic5iru: "f1qpf9z1"
|
|
465
|
+
},
|
|
466
|
+
mink: {
|
|
467
|
+
Bic5iru: "f1l7or83"
|
|
468
|
+
},
|
|
469
|
+
platinum: {
|
|
470
|
+
Bic5iru: "fzrj0iu"
|
|
471
|
+
},
|
|
472
|
+
anchor: {
|
|
473
|
+
Bic5iru: "f8oz6wf"
|
|
474
|
+
}
|
|
475
|
+
}, {
|
|
476
|
+
d: [".f1uuiafn::before{color:var(--colorBrandStroke1);}", ".f1t2x9on::before{color:var(--colorPaletteDarkRedBorderActive);}", ".f1pvshc9::before{color:var(--colorPaletteCranberryBorderActive);}", ".f1ectbk9::before{color:var(--colorPaletteRedBorderActive);}", ".fvzpl0b::before{color:var(--colorPalettePumpkinBorderActive);}", ".fwj2kd7::before{color:var(--colorPalettePeachBorderActive);}", ".fr120vy::before{color:var(--colorPaletteMarigoldBorderActive);}", ".f8xmmar::before{color:var(--colorPaletteGoldBorderActive);}", ".f1hbety2::before{color:var(--colorPaletteBrassBorderActive);}", ".f1vg3s4g::before{color:var(--colorPaletteBrownBorderActive);}", ".f1m3olm5::before{color:var(--colorPaletteForestBorderActive);}", ".f17xiqtr::before{color:var(--colorPaletteSeafoamBorderActive);}", ".fx32vyh::before{color:var(--colorPaletteDarkGreenBorderActive);}", ".f1mkihwv::before{color:var(--colorPaletteLightTealBorderActive);}", ".fecnooh::before{color:var(--colorPaletteTealBorderActive);}", ".f15hfgzm::before{color:var(--colorPaletteSteelBorderActive);}", ".fqproka::before{color:var(--colorPaletteBlueBorderActive);}", ".f17v2w59::before{color:var(--colorPaletteRoyalBlueBorderActive);}", ".fp0q1mo::before{color:var(--colorPaletteCornflowerBorderActive);}", ".f1nlym55::before{color:var(--colorPaletteNavyBorderActive);}", ".f62vk8h::before{color:var(--colorPaletteLavenderBorderActive);}", ".f15zl69q::before{color:var(--colorPalettePurpleBorderActive);}", ".f53w4j7::before{color:var(--colorPaletteGrapeBorderActive);}", ".fu2771t::before{color:var(--colorPaletteLilacBorderActive);}", ".fzflscs::before{color:var(--colorPalettePinkBorderActive);}", ".fb6rmqc::before{color:var(--colorPaletteMagentaBorderActive);}", ".f1a4gm5b::before{color:var(--colorPalettePlumBorderActive);}", ".f1qpf9z1::before{color:var(--colorPaletteBeigeBorderActive);}", ".f1l7or83::before{color:var(--colorPaletteMinkBorderActive);}", ".fzrj0iu::before{color:var(--colorPalettePlatinumBorderActive);}", ".f8oz6wf::before{color:var(--colorPaletteAnchorBorderActive);}"]
|
|
477
|
+
});
|
|
478
|
+
export const useAvatarStyles_unstable = state => {
|
|
479
|
+
const {
|
|
480
|
+
size,
|
|
481
|
+
shape,
|
|
482
|
+
active,
|
|
483
|
+
activeAppearance,
|
|
484
|
+
color
|
|
485
|
+
} = state;
|
|
486
|
+
const rootClassName = useRootClassName();
|
|
487
|
+
const imageClassName = useImageClassName();
|
|
488
|
+
const iconInitialsClassName = useIconInitialsClassName();
|
|
489
|
+
const styles = useStyles();
|
|
490
|
+
const sizeStyles = useSizeStyles();
|
|
491
|
+
const colorStyles = useColorStyles();
|
|
492
|
+
const ringColorStyles = useRingColorStyles();
|
|
493
|
+
const rootClasses = [rootClassName, size !== 32 && sizeStyles[size]];
|
|
494
|
+
if (state.badge) {
|
|
495
|
+
rootClasses.push(styles.badgeAlign, styles[state.badge.size || 'medium']);
|
|
496
|
+
}
|
|
497
|
+
if (size <= 24) {
|
|
498
|
+
rootClasses.push(styles.textCaption2Strong);
|
|
499
|
+
} else if (size <= 28) {
|
|
500
|
+
rootClasses.push(styles.textCaption1Strong);
|
|
501
|
+
} else if (size <= 40) {
|
|
502
|
+
// Default text size included in useRootClassName
|
|
503
|
+
} else if (size <= 56) {
|
|
504
|
+
rootClasses.push(styles.textSubtitle2);
|
|
505
|
+
} else if (size <= 96) {
|
|
506
|
+
rootClasses.push(styles.textSubtitle1);
|
|
507
|
+
} else {
|
|
508
|
+
rootClasses.push(styles.textTitle3);
|
|
509
|
+
}
|
|
510
|
+
if (shape === 'square') {
|
|
511
|
+
if (size <= 24) {
|
|
512
|
+
rootClasses.push(styles.squareSmall);
|
|
513
|
+
} else if (size <= 48) {
|
|
514
|
+
rootClasses.push(styles.squareMedium);
|
|
515
|
+
} else if (size <= 72) {
|
|
516
|
+
rootClasses.push(styles.squareLarge);
|
|
517
|
+
} else {
|
|
518
|
+
rootClasses.push(styles.squareXLarge);
|
|
519
|
+
}
|
|
520
|
+
}
|
|
521
|
+
if (active === 'active' || active === 'inactive') {
|
|
522
|
+
rootClasses.push(styles.activeOrInactive);
|
|
523
|
+
if (activeAppearance === 'ring' || activeAppearance === 'ring-shadow') {
|
|
524
|
+
rootClasses.push(styles.ring, ringColorStyles[color]);
|
|
525
|
+
if (state.badge) {
|
|
526
|
+
rootClasses.push(styles.ringBadgeCutout);
|
|
527
|
+
}
|
|
528
|
+
if (size <= 48) {
|
|
529
|
+
rootClasses.push(styles.ringThick);
|
|
530
|
+
} else if (size <= 64) {
|
|
531
|
+
rootClasses.push(styles.ringThicker);
|
|
532
|
+
} else {
|
|
533
|
+
rootClasses.push(styles.ringThickest);
|
|
534
|
+
}
|
|
535
|
+
}
|
|
536
|
+
if (activeAppearance === 'shadow' || activeAppearance === 'ring-shadow') {
|
|
537
|
+
rootClasses.push(styles.shadow);
|
|
538
|
+
if (size <= 28) {
|
|
539
|
+
rootClasses.push(styles.shadow4);
|
|
540
|
+
} else if (size <= 48) {
|
|
541
|
+
rootClasses.push(styles.shadow8);
|
|
542
|
+
} else if (size <= 64) {
|
|
543
|
+
rootClasses.push(styles.shadow16);
|
|
544
|
+
} else {
|
|
545
|
+
rootClasses.push(styles.shadow28);
|
|
546
|
+
}
|
|
547
|
+
}
|
|
548
|
+
// Note: The inactive style overrides some of the activeAppearance styles and must be applied after them
|
|
549
|
+
if (active === 'inactive') {
|
|
550
|
+
rootClasses.push(styles.inactive);
|
|
551
|
+
}
|
|
552
|
+
}
|
|
553
|
+
state.root.className = mergeClasses(avatarClassNames.root, ...rootClasses, state.root.className);
|
|
554
|
+
if (state.badge) {
|
|
555
|
+
state.badge.className = mergeClasses(avatarClassNames.badge, styles.badge, state.badge.className);
|
|
556
|
+
}
|
|
557
|
+
if (state.image) {
|
|
558
|
+
state.image.className = mergeClasses(avatarClassNames.image, imageClassName, colorStyles[color], state.badge && styles.badgeCutout, state.image.className);
|
|
559
|
+
}
|
|
560
|
+
if (state.initials) {
|
|
561
|
+
state.initials.className = mergeClasses(avatarClassNames.initials, iconInitialsClassName, colorStyles[color], state.badge && styles.badgeCutout, state.initials.className);
|
|
562
|
+
}
|
|
563
|
+
if (state.icon) {
|
|
564
|
+
let iconSizeClass;
|
|
565
|
+
if (size <= 16) {
|
|
566
|
+
iconSizeClass = styles.icon12;
|
|
567
|
+
} else if (size <= 24) {
|
|
568
|
+
iconSizeClass = styles.icon16;
|
|
569
|
+
} else if (size <= 40) {
|
|
570
|
+
iconSizeClass = styles.icon20;
|
|
571
|
+
} else if (size <= 48) {
|
|
572
|
+
iconSizeClass = styles.icon24;
|
|
573
|
+
} else if (size <= 56) {
|
|
574
|
+
iconSizeClass = styles.icon28;
|
|
575
|
+
} else if (size <= 72) {
|
|
576
|
+
iconSizeClass = styles.icon32;
|
|
577
|
+
} else {
|
|
578
|
+
iconSizeClass = styles.icon48;
|
|
579
|
+
}
|
|
580
|
+
state.icon.className = mergeClasses(avatarClassNames.icon, iconInitialsClassName, iconSizeClass, colorStyles[color], state.badge && styles.badgeCutout, state.icon.className);
|
|
581
|
+
}
|
|
582
|
+
return state;
|
|
583
|
+
};
|
|
584
|
+
//# sourceMappingURL=useAvatarStyles.styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["tokens","__resetStyles","__styles","mergeClasses","shorthands","avatarClassNames","root","image","initials","icon","badge","vars","badgeRadius","badgeGap","badgeAlign","ringWidth","useRootClassName","useImageClassName","useIconInitialsClassName","badgeMask","margin","centerOffset","innerRadius","outerRadius","useStyles","textCaption2Strong","Be2twd7","textCaption1Strong","textSubtitle2","textSubtitle1","textTitle3","squareSmall","Bbmb7ep","Beyfa6y","B7oj6ja","Btl43ni","squareMedium","squareLarge","squareXLarge","activeOrInactive","Bz10aip","Bmy1vo4","B3o57yi","Bkqvd7p","Hwfdqs","ring","Ftih45","ringBadgeCutout","f4a502","ringThick","of393c","ringThicker","ringThickest","shadow","Bsft5z2","shadow4","Be6vj1x","shadow8","shadow16","shadow28","inactive","abs64n","Bucmhp4","b2tv09","Bfgortx","Bnvr3x9","b6ubon","Bqinb2h","qhf8xq","B5kzvoi","j35jbq","badgeCutout","btxmck","Dnlfbu","tiny","Bdjeniz","niu6jh","small","medium","large","icon12","icon16","icon20","icon24","icon28","icon32","icon48","d","m","useSizeStyles","a9b677","Bqenvij","useColorStyles","neutral","sj55zd","De3pzq","brand","cranberry","red","pumpkin","peach","marigold","gold","brass","brown","forest","seafoam","teal","steel","blue","cornflower","navy","lavender","purple","grape","lilac","pink","magenta","plum","beige","mink","platinum","anchor","useRingColorStyles","Bic5iru","useAvatarStyles_unstable","state","size","shape","active","activeAppearance","color","rootClassName","imageClassName","iconInitialsClassName","styles","sizeStyles","colorStyles","ringColorStyles","rootClasses","push","className","iconSizeClass"],"sources":["../../../src/components/Avatar/useAvatarStyles.styles.ts"],"sourcesContent":["import { tokens } from '@fluentui/react-theme';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport { makeResetStyles, makeStyles, mergeClasses, shorthands } from '@griffel/react';\nimport type { AvatarSlots, AvatarState } from './Avatar.types';\n\nexport const avatarClassNames: SlotClassNames<AvatarSlots> = {\n root: 'fui-Avatar',\n image: 'fui-Avatar__image',\n initials: 'fui-Avatar__initials',\n icon: 'fui-Avatar__icon',\n badge: 'fui-Avatar__badge',\n};\n\n// CSS variables used internally in Avatar's styles\nconst vars = {\n badgeRadius: '--fui-Avatar-badgeRadius',\n badgeGap: '--fui-Avatar-badgeGap',\n badgeAlign: '--fui-Avatar-badgeAlign',\n ringWidth: '--fui-Avatar-ringWidth',\n};\n\nconst useRootClassName = makeResetStyles({\n display: 'inline-block',\n flexShrink: 0,\n position: 'relative',\n verticalAlign: 'middle',\n borderRadius: tokens.borderRadiusCircular,\n fontFamily: tokens.fontFamilyBase,\n fontWeight: tokens.fontWeightSemibold,\n fontSize: tokens.fontSizeBase300,\n width: '32px',\n height: '32px',\n\n // ::before is the ring, and ::after is the shadow.\n // These are not displayed by default; the ring and shadow clases set content: \"\" to display them when appropriate.\n '::before,::after': {\n position: 'absolute',\n top: 0,\n left: 0,\n bottom: 0,\n right: 0,\n zIndex: -1,\n margin: `calc(-2 * var(${vars.ringWidth}, 0px))`,\n borderRadius: 'inherit',\n transitionProperty: 'margin, opacity',\n transitionTimingFunction: `${tokens.curveEasyEaseMax}, ${tokens.curveLinear}`,\n transitionDuration: `${tokens.durationUltraSlow}, ${tokens.durationSlower}`,\n '@media screen and (prefers-reduced-motion: reduce)': {\n transitionDuration: '0.01ms',\n },\n },\n '::before': {\n borderStyle: 'solid',\n borderWidth: `var(${vars.ringWidth})`,\n },\n});\n\nconst useImageClassName = makeResetStyles({\n position: 'absolute',\n top: 0,\n left: 0,\n width: '100%',\n height: '100%',\n\n borderRadius: 'inherit',\n objectFit: 'cover',\n verticalAlign: 'top',\n});\n\nconst useIconInitialsClassName = makeResetStyles({\n position: 'absolute',\n boxSizing: 'border-box',\n top: 0,\n left: 0,\n width: '100%',\n height: '100%',\n lineHeight: '1',\n border: `${tokens.strokeWidthThin} solid ${tokens.colorTransparentStroke}`,\n\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n verticalAlign: 'center',\n textAlign: 'center',\n userSelect: 'none',\n borderRadius: 'inherit',\n});\n\n/**\n * Helper to create a maskImage that punches out a circle larger than the badge by `badgeGap`.\n * This creates a transparent gap between the badge and Avatar.\n *\n * Used by the icon, initials, and image slots, as well as the ring ::before pseudo-element.\n */\nconst badgeMask = (margin?: string) => {\n // Center the cutout at the badge's radius away from the edge.\n // The ring (::before) also has a 2 * ringWidth margin that also needs to be offset.\n const centerOffset = margin ? `calc(var(${vars.badgeRadius}) + ${margin})` : `var(${vars.badgeRadius})`;\n // radial-gradient does not have anti-aliasing, so the transparent and opaque gradient stops are offset by +/- 0.25px\n // to \"fade\" from transparent to opaque over a half-pixel and ease the transition.\n const innerRadius = `calc(var(${vars.badgeRadius}) + var(${vars.badgeGap}) - 0.25px)`;\n const outerRadius = `calc(var(${vars.badgeRadius}) + var(${vars.badgeGap}) + 0.25px)`;\n\n return (\n `radial-gradient(circle at bottom ${centerOffset} var(${vars.badgeAlign}) ${centerOffset}, ` +\n `transparent ${innerRadius}, white ${outerRadius})`\n );\n};\n\nconst useStyles = makeStyles({\n textCaption2Strong: { fontSize: tokens.fontSizeBase100 },\n textCaption1Strong: { fontSize: tokens.fontSizeBase200 },\n textSubtitle2: { fontSize: tokens.fontSizeBase400 },\n textSubtitle1: { fontSize: tokens.fontSizeBase500 },\n textTitle3: { fontSize: tokens.fontSizeBase600 },\n\n squareSmall: {\n ...shorthands.borderRadius(tokens.borderRadiusSmall),\n },\n squareMedium: {\n ...shorthands.borderRadius(tokens.borderRadiusMedium),\n },\n squareLarge: {\n ...shorthands.borderRadius(tokens.borderRadiusLarge),\n },\n squareXLarge: {\n ...shorthands.borderRadius(tokens.borderRadiusXLarge),\n },\n\n activeOrInactive: {\n transform: 'perspective(1px)', // Work-around for text pixel snapping at the end of the animation\n transitionProperty: 'transform, opacity',\n transitionDuration: `${tokens.durationUltraSlow}, ${tokens.durationFaster}`,\n transitionTimingFunction: `${tokens.curveEasyEaseMax}, ${tokens.curveLinear}`,\n\n '@media screen and (prefers-reduced-motion: reduce)': {\n transitionDuration: '0.01ms',\n },\n },\n\n ring: {\n // Show the ::before pseudo-element, which is the ring\n '::before': { content: '\"\"' },\n },\n ringBadgeCutout: {\n '::before': { maskImage: badgeMask(/*margin =*/ `2 * var(${vars.ringWidth})`) },\n },\n ringThick: {\n [vars.ringWidth]: tokens.strokeWidthThick,\n },\n ringThicker: {\n [vars.ringWidth]: tokens.strokeWidthThicker,\n },\n ringThickest: {\n [vars.ringWidth]: tokens.strokeWidthThickest,\n },\n\n shadow: {\n // Show the ::after pseudo-element, which is the shadow\n '::after': { content: '\"\"' },\n },\n shadow4: {\n '::after': { boxShadow: tokens.shadow4 },\n },\n shadow8: {\n '::after': { boxShadow: tokens.shadow8 },\n },\n shadow16: {\n '::after': { boxShadow: tokens.shadow16 },\n },\n shadow28: {\n '::after': { boxShadow: tokens.shadow28 },\n },\n\n inactive: {\n opacity: '0.8',\n transform: 'scale(0.875)',\n transitionTimingFunction: `${tokens.curveDecelerateMin}, ${tokens.curveLinear}`,\n\n '::before,::after': {\n ...shorthands.margin(0),\n opacity: 0,\n transitionTimingFunction: `${tokens.curveDecelerateMin}, ${tokens.curveLinear}`,\n },\n },\n\n // Applied to the badge slot\n badge: {\n position: 'absolute',\n bottom: 0,\n right: 0,\n },\n\n // Applied to the image, initials, or icon slot when there is a badge\n badgeCutout: {\n maskImage: badgeMask(),\n },\n\n // Applied to the root when there is a badge\n badgeAlign: {\n // Griffel won't auto-flip the \"right\" alignment to \"left\" in RTL if it is inline in the maskImage,\n // so split it out into a css variable that will auto-flip.\n [vars.badgeAlign]: 'right',\n },\n\n // Badge size: applied to root when there is a badge\n tiny: {\n [vars.badgeRadius]: '3px',\n [vars.badgeGap]: tokens.strokeWidthThin,\n },\n 'extra-small': {\n [vars.badgeRadius]: '5px',\n [vars.badgeGap]: tokens.strokeWidthThin,\n },\n small: {\n [vars.badgeRadius]: '6px',\n [vars.badgeGap]: tokens.strokeWidthThin,\n },\n medium: {\n [vars.badgeRadius]: '8px',\n [vars.badgeGap]: tokens.strokeWidthThin,\n },\n large: {\n [vars.badgeRadius]: '10px',\n [vars.badgeGap]: tokens.strokeWidthThick,\n },\n 'extra-large': {\n [vars.badgeRadius]: '14px',\n [vars.badgeGap]: tokens.strokeWidthThick,\n },\n\n icon12: { fontSize: '12px' },\n icon16: { fontSize: '16px' },\n icon20: { fontSize: '20px' },\n icon24: { fontSize: '24px' },\n icon28: { fontSize: '28px' },\n icon32: { fontSize: '32px' },\n icon48: { fontSize: '48px' },\n});\n\nexport const useSizeStyles = makeStyles({\n 16: { width: '16px', height: '16px' },\n 20: { width: '20px', height: '20px' },\n 24: { width: '24px', height: '24px' },\n 28: { width: '28px', height: '28px' },\n 32: { width: '32px', height: '32px' },\n 36: { width: '36px', height: '36px' },\n 40: { width: '40px', height: '40px' },\n 48: { width: '48px', height: '48px' },\n 56: { width: '56px', height: '56px' },\n 64: { width: '64px', height: '64px' },\n 72: { width: '72px', height: '72px' },\n 96: { width: '96px', height: '96px' },\n 120: { width: '120px', height: '120px' },\n 128: { width: '128px', height: '128px' },\n});\n\nconst useColorStyles = makeStyles({\n neutral: {\n color: tokens.colorNeutralForeground3,\n backgroundColor: tokens.colorNeutralBackground6,\n },\n brand: {\n color: tokens.colorNeutralForegroundStaticInverted,\n backgroundColor: tokens.colorBrandBackgroundStatic,\n },\n 'dark-red': {\n color: tokens.colorPaletteDarkRedForeground2,\n backgroundColor: tokens.colorPaletteDarkRedBackground2,\n },\n cranberry: {\n color: tokens.colorPaletteCranberryForeground2,\n backgroundColor: tokens.colorPaletteCranberryBackground2,\n },\n red: {\n color: tokens.colorPaletteRedForeground2,\n backgroundColor: tokens.colorPaletteRedBackground2,\n },\n pumpkin: {\n color: tokens.colorPalettePumpkinForeground2,\n backgroundColor: tokens.colorPalettePumpkinBackground2,\n },\n peach: {\n color: tokens.colorPalettePeachForeground2,\n backgroundColor: tokens.colorPalettePeachBackground2,\n },\n marigold: {\n color: tokens.colorPaletteMarigoldForeground2,\n backgroundColor: tokens.colorPaletteMarigoldBackground2,\n },\n gold: {\n color: tokens.colorPaletteGoldForeground2,\n backgroundColor: tokens.colorPaletteGoldBackground2,\n },\n brass: {\n color: tokens.colorPaletteBrassForeground2,\n backgroundColor: tokens.colorPaletteBrassBackground2,\n },\n brown: {\n color: tokens.colorPaletteBrownForeground2,\n backgroundColor: tokens.colorPaletteBrownBackground2,\n },\n forest: {\n color: tokens.colorPaletteForestForeground2,\n backgroundColor: tokens.colorPaletteForestBackground2,\n },\n seafoam: {\n color: tokens.colorPaletteSeafoamForeground2,\n backgroundColor: tokens.colorPaletteSeafoamBackground2,\n },\n 'dark-green': {\n color: tokens.colorPaletteDarkGreenForeground2,\n backgroundColor: tokens.colorPaletteDarkGreenBackground2,\n },\n 'light-teal': {\n color: tokens.colorPaletteLightTealForeground2,\n backgroundColor: tokens.colorPaletteLightTealBackground2,\n },\n teal: {\n color: tokens.colorPaletteTealForeground2,\n backgroundColor: tokens.colorPaletteTealBackground2,\n },\n steel: {\n color: tokens.colorPaletteSteelForeground2,\n backgroundColor: tokens.colorPaletteSteelBackground2,\n },\n blue: {\n color: tokens.colorPaletteBlueForeground2,\n backgroundColor: tokens.colorPaletteBlueBackground2,\n },\n 'royal-blue': {\n color: tokens.colorPaletteRoyalBlueForeground2,\n backgroundColor: tokens.colorPaletteRoyalBlueBackground2,\n },\n cornflower: {\n color: tokens.colorPaletteCornflowerForeground2,\n backgroundColor: tokens.colorPaletteCornflowerBackground2,\n },\n navy: {\n color: tokens.colorPaletteNavyForeground2,\n backgroundColor: tokens.colorPaletteNavyBackground2,\n },\n lavender: {\n color: tokens.colorPaletteLavenderForeground2,\n backgroundColor: tokens.colorPaletteLavenderBackground2,\n },\n purple: {\n color: tokens.colorPalettePurpleForeground2,\n backgroundColor: tokens.colorPalettePurpleBackground2,\n },\n grape: {\n color: tokens.colorPaletteGrapeForeground2,\n backgroundColor: tokens.colorPaletteGrapeBackground2,\n },\n lilac: {\n color: tokens.colorPaletteLilacForeground2,\n backgroundColor: tokens.colorPaletteLilacBackground2,\n },\n pink: {\n color: tokens.colorPalettePinkForeground2,\n backgroundColor: tokens.colorPalettePinkBackground2,\n },\n magenta: {\n color: tokens.colorPaletteMagentaForeground2,\n backgroundColor: tokens.colorPaletteMagentaBackground2,\n },\n plum: {\n color: tokens.colorPalettePlumForeground2,\n backgroundColor: tokens.colorPalettePlumBackground2,\n },\n beige: {\n color: tokens.colorPaletteBeigeForeground2,\n backgroundColor: tokens.colorPaletteBeigeBackground2,\n },\n mink: {\n color: tokens.colorPaletteMinkForeground2,\n backgroundColor: tokens.colorPaletteMinkBackground2,\n },\n platinum: {\n color: tokens.colorPalettePlatinumForeground2,\n backgroundColor: tokens.colorPalettePlatinumBackground2,\n },\n anchor: {\n color: tokens.colorPaletteAnchorForeground2,\n backgroundColor: tokens.colorPaletteAnchorBackground2,\n },\n});\n\nconst useRingColorStyles = makeStyles({\n neutral: {\n '::before': { color: tokens.colorBrandStroke1 },\n },\n brand: {\n '::before': { color: tokens.colorBrandStroke1 },\n },\n 'dark-red': {\n '::before': { color: tokens.colorPaletteDarkRedBorderActive },\n },\n cranberry: {\n '::before': { color: tokens.colorPaletteCranberryBorderActive },\n },\n red: {\n '::before': { color: tokens.colorPaletteRedBorderActive },\n },\n pumpkin: {\n '::before': { color: tokens.colorPalettePumpkinBorderActive },\n },\n peach: {\n '::before': { color: tokens.colorPalettePeachBorderActive },\n },\n marigold: {\n '::before': { color: tokens.colorPaletteMarigoldBorderActive },\n },\n gold: {\n '::before': { color: tokens.colorPaletteGoldBorderActive },\n },\n brass: {\n '::before': { color: tokens.colorPaletteBrassBorderActive },\n },\n brown: {\n '::before': { color: tokens.colorPaletteBrownBorderActive },\n },\n forest: {\n '::before': { color: tokens.colorPaletteForestBorderActive },\n },\n seafoam: {\n '::before': { color: tokens.colorPaletteSeafoamBorderActive },\n },\n 'dark-green': {\n '::before': { color: tokens.colorPaletteDarkGreenBorderActive },\n },\n 'light-teal': {\n '::before': { color: tokens.colorPaletteLightTealBorderActive },\n },\n teal: {\n '::before': { color: tokens.colorPaletteTealBorderActive },\n },\n steel: {\n '::before': { color: tokens.colorPaletteSteelBorderActive },\n },\n blue: {\n '::before': { color: tokens.colorPaletteBlueBorderActive },\n },\n 'royal-blue': {\n '::before': { color: tokens.colorPaletteRoyalBlueBorderActive },\n },\n cornflower: {\n '::before': { color: tokens.colorPaletteCornflowerBorderActive },\n },\n navy: {\n '::before': { color: tokens.colorPaletteNavyBorderActive },\n },\n lavender: {\n '::before': { color: tokens.colorPaletteLavenderBorderActive },\n },\n purple: {\n '::before': { color: tokens.colorPalettePurpleBorderActive },\n },\n grape: {\n '::before': { color: tokens.colorPaletteGrapeBorderActive },\n },\n lilac: {\n '::before': { color: tokens.colorPaletteLilacBorderActive },\n },\n pink: {\n '::before': { color: tokens.colorPalettePinkBorderActive },\n },\n magenta: {\n '::before': { color: tokens.colorPaletteMagentaBorderActive },\n },\n plum: {\n '::before': { color: tokens.colorPalettePlumBorderActive },\n },\n beige: {\n '::before': { color: tokens.colorPaletteBeigeBorderActive },\n },\n mink: {\n '::before': { color: tokens.colorPaletteMinkBorderActive },\n },\n platinum: {\n '::before': { color: tokens.colorPalettePlatinumBorderActive },\n },\n anchor: {\n '::before': { color: tokens.colorPaletteAnchorBorderActive },\n },\n});\n\nexport const useAvatarStyles_unstable = (state: AvatarState): AvatarState => {\n const { size, shape, active, activeAppearance, color } = state;\n\n const rootClassName = useRootClassName();\n const imageClassName = useImageClassName();\n const iconInitialsClassName = useIconInitialsClassName();\n const styles = useStyles();\n const sizeStyles = useSizeStyles();\n const colorStyles = useColorStyles();\n const ringColorStyles = useRingColorStyles();\n\n const rootClasses = [rootClassName, size !== 32 && sizeStyles[size]];\n\n if (state.badge) {\n rootClasses.push(styles.badgeAlign, styles[state.badge.size || 'medium']);\n }\n\n if (size <= 24) {\n rootClasses.push(styles.textCaption2Strong);\n } else if (size <= 28) {\n rootClasses.push(styles.textCaption1Strong);\n } else if (size <= 40) {\n // Default text size included in useRootClassName\n } else if (size <= 56) {\n rootClasses.push(styles.textSubtitle2);\n } else if (size <= 96) {\n rootClasses.push(styles.textSubtitle1);\n } else {\n rootClasses.push(styles.textTitle3);\n }\n\n if (shape === 'square') {\n if (size <= 24) {\n rootClasses.push(styles.squareSmall);\n } else if (size <= 48) {\n rootClasses.push(styles.squareMedium);\n } else if (size <= 72) {\n rootClasses.push(styles.squareLarge);\n } else {\n rootClasses.push(styles.squareXLarge);\n }\n }\n\n if (active === 'active' || active === 'inactive') {\n rootClasses.push(styles.activeOrInactive);\n\n if (activeAppearance === 'ring' || activeAppearance === 'ring-shadow') {\n rootClasses.push(styles.ring, ringColorStyles[color]);\n if (state.badge) {\n rootClasses.push(styles.ringBadgeCutout);\n }\n\n if (size <= 48) {\n rootClasses.push(styles.ringThick);\n } else if (size <= 64) {\n rootClasses.push(styles.ringThicker);\n } else {\n rootClasses.push(styles.ringThickest);\n }\n }\n\n if (activeAppearance === 'shadow' || activeAppearance === 'ring-shadow') {\n rootClasses.push(styles.shadow);\n if (size <= 28) {\n rootClasses.push(styles.shadow4);\n } else if (size <= 48) {\n rootClasses.push(styles.shadow8);\n } else if (size <= 64) {\n rootClasses.push(styles.shadow16);\n } else {\n rootClasses.push(styles.shadow28);\n }\n }\n\n // Note: The inactive style overrides some of the activeAppearance styles and must be applied after them\n if (active === 'inactive') {\n rootClasses.push(styles.inactive);\n }\n }\n\n state.root.className = mergeClasses(avatarClassNames.root, ...rootClasses, state.root.className);\n\n if (state.badge) {\n state.badge.className = mergeClasses(avatarClassNames.badge, styles.badge, state.badge.className);\n }\n\n if (state.image) {\n state.image.className = mergeClasses(\n avatarClassNames.image,\n imageClassName,\n colorStyles[color],\n state.badge && styles.badgeCutout,\n state.image.className,\n );\n }\n\n if (state.initials) {\n state.initials.className = mergeClasses(\n avatarClassNames.initials,\n iconInitialsClassName,\n colorStyles[color],\n state.badge && styles.badgeCutout,\n state.initials.className,\n );\n }\n\n if (state.icon) {\n let iconSizeClass;\n if (size <= 16) {\n iconSizeClass = styles.icon12;\n } else if (size <= 24) {\n iconSizeClass = styles.icon16;\n } else if (size <= 40) {\n iconSizeClass = styles.icon20;\n } else if (size <= 48) {\n iconSizeClass = styles.icon24;\n } else if (size <= 56) {\n iconSizeClass = styles.icon28;\n } else if (size <= 72) {\n iconSizeClass = styles.icon32;\n } else {\n iconSizeClass = styles.icon48;\n }\n\n state.icon.className = mergeClasses(\n avatarClassNames.icon,\n iconInitialsClassName,\n iconSizeClass,\n colorStyles[color],\n state.badge && styles.badgeCutout,\n state.icon.className,\n );\n }\n\n return state;\n};\n"],"mappings":"AAAA,SAASA,MAAM,QAAQ;AAEvB,SAAAC,aAAA,EAAAC,QAAA,EAAsCC,YAAY,EAAEC,UAAU,QAAQ;AAGtE,OAAO,MAAM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