@fluentui/react-avatar 9.0.4 → 9.1.1
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 +214 -6
- package/CHANGELOG.md +52 -7
- package/README-AvatarGroup.md +63 -39
- package/SPEC-AvatarGroup.md +103 -85
- package/dist/index.d.ts +97 -64
- package/lib/AvatarGroupPopover.js +2 -0
- package/lib/AvatarGroupPopover.js.map +1 -0
- package/lib/components/Avatar/useAvatar.js +3 -7
- package/lib/components/Avatar/useAvatar.js.map +1 -1
- package/lib/components/Avatar/useAvatarStyles.js +2 -2
- package/lib/components/Avatar/useAvatarStyles.js.map +1 -1
- package/lib/components/AvatarGroup/AvatarGroup.js +4 -2
- package/lib/components/AvatarGroup/AvatarGroup.js.map +1 -1
- package/lib/components/AvatarGroup/AvatarGroup.types.js.map +1 -1
- package/lib/components/AvatarGroup/index.js +1 -0
- package/lib/components/AvatarGroup/index.js.map +1 -1
- package/lib/components/AvatarGroup/renderAvatarGroup.js +5 -31
- package/lib/components/AvatarGroup/renderAvatarGroup.js.map +1 -1
- package/lib/components/AvatarGroup/useAvatarGroup.js +4 -62
- package/lib/components/AvatarGroup/useAvatarGroup.js.map +1 -1
- package/lib/components/AvatarGroup/useAvatarGroupContextValues.js +14 -0
- package/lib/components/AvatarGroup/useAvatarGroupContextValues.js.map +1 -0
- package/lib/components/AvatarGroup/useAvatarGroupStyles.js +5 -268
- package/lib/components/AvatarGroup/useAvatarGroupStyles.js.map +1 -1
- package/lib/components/AvatarGroupItem/AvatarGroupItem.js +1 -1
- package/lib/components/AvatarGroupItem/AvatarGroupItem.js.map +1 -1
- package/lib/components/AvatarGroupItem/AvatarGroupItem.types.js.map +1 -1
- package/lib/components/AvatarGroupItem/useAvatarGroupItem.js +10 -11
- package/lib/components/AvatarGroupItem/useAvatarGroupItem.js.map +1 -1
- package/lib/components/AvatarGroupItem/useAvatarGroupItemStyles.js +51 -59
- package/lib/components/AvatarGroupItem/useAvatarGroupItemStyles.js.map +1 -1
- package/lib/components/AvatarGroupPopover/AvatarGroupPopover.js +16 -0
- package/lib/components/AvatarGroupPopover/AvatarGroupPopover.js.map +1 -0
- package/lib/components/AvatarGroupPopover/AvatarGroupPopover.types.js +2 -0
- package/lib/components/AvatarGroupPopover/AvatarGroupPopover.types.js.map +1 -0
- package/lib/components/AvatarGroupPopover/index.js +6 -0
- package/lib/components/AvatarGroupPopover/index.js.map +1 -0
- package/lib/components/AvatarGroupPopover/renderAvatarGroupPopover.js +23 -0
- package/lib/components/AvatarGroupPopover/renderAvatarGroupPopover.js.map +1 -0
- package/lib/components/AvatarGroupPopover/useAvatarGroupPopover.js +102 -0
- package/lib/components/AvatarGroupPopover/useAvatarGroupPopover.js.map +1 -0
- package/lib/components/AvatarGroupPopover/useAvatarGroupPopoverContextValues.js +10 -0
- package/lib/components/AvatarGroupPopover/useAvatarGroupPopoverContextValues.js.map +1 -0
- package/lib/components/AvatarGroupPopover/useAvatarGroupPopoverStyles.js +307 -0
- package/lib/components/AvatarGroupPopover/useAvatarGroupPopoverStyles.js.map +1 -0
- package/lib/contexts/AvatarGroupContext.js +7 -4
- package/lib/contexts/AvatarGroupContext.js.map +1 -1
- package/lib/index.js +4 -3
- package/lib/index.js.map +1 -1
- package/lib/utils/index.js +1 -0
- package/lib/utils/index.js.map +1 -1
- package/lib/utils/partitionAvatarGroupItems.js +30 -0
- package/lib/utils/partitionAvatarGroupItems.js.map +1 -0
- package/lib-commonjs/{AvatarGroupOverflow.js → AvatarGroupPopover.js} +2 -2
- package/lib-commonjs/AvatarGroupPopover.js.map +1 -0
- package/lib-commonjs/components/Avatar/useAvatar.js +2 -7
- package/lib-commonjs/components/Avatar/useAvatar.js.map +1 -1
- package/lib-commonjs/components/Avatar/useAvatarStyles.js +2 -2
- package/lib-commonjs/components/Avatar/useAvatarStyles.js.map +1 -1
- package/lib-commonjs/components/AvatarGroup/AvatarGroup.js +5 -2
- package/lib-commonjs/components/AvatarGroup/AvatarGroup.js.map +1 -1
- package/lib-commonjs/components/AvatarGroup/index.js +2 -0
- package/lib-commonjs/components/AvatarGroup/index.js.map +1 -1
- package/lib-commonjs/components/AvatarGroup/renderAvatarGroup.js +4 -32
- package/lib-commonjs/components/AvatarGroup/renderAvatarGroup.js.map +1 -1
- package/lib-commonjs/components/AvatarGroup/useAvatarGroup.js +3 -64
- package/lib-commonjs/components/AvatarGroup/useAvatarGroup.js.map +1 -1
- package/lib-commonjs/components/AvatarGroup/useAvatarGroupContextValues.js +23 -0
- package/lib-commonjs/components/AvatarGroup/useAvatarGroupContextValues.js.map +1 -0
- package/lib-commonjs/components/AvatarGroup/useAvatarGroupStyles.js +3 -268
- package/lib-commonjs/components/AvatarGroup/useAvatarGroupStyles.js.map +1 -1
- package/lib-commonjs/components/AvatarGroupItem/AvatarGroupItem.js +2 -2
- package/lib-commonjs/components/AvatarGroupItem/AvatarGroupItem.js.map +1 -1
- package/lib-commonjs/components/AvatarGroupItem/useAvatarGroupItem.js +8 -9
- package/lib-commonjs/components/AvatarGroupItem/useAvatarGroupItem.js.map +1 -1
- package/lib-commonjs/components/AvatarGroupItem/useAvatarGroupItemStyles.js +52 -60
- package/lib-commonjs/components/AvatarGroupItem/useAvatarGroupItemStyles.js.map +1 -1
- package/lib-commonjs/components/AvatarGroupPopover/AvatarGroupPopover.js +29 -0
- package/lib-commonjs/components/AvatarGroupPopover/AvatarGroupPopover.js.map +1 -0
- package/lib-commonjs/{contexts/AvatarGroupContext.types.js → components/AvatarGroupPopover/AvatarGroupPopover.types.js} +1 -1
- package/lib-commonjs/{contexts/AvatarGroupContext.types.js.map → components/AvatarGroupPopover/AvatarGroupPopover.types.js.map} +0 -0
- package/lib-commonjs/components/AvatarGroupPopover/index.js +18 -0
- package/lib-commonjs/components/AvatarGroupPopover/index.js.map +1 -0
- package/lib-commonjs/components/AvatarGroupPopover/renderAvatarGroupPopover.js +36 -0
- package/lib-commonjs/components/AvatarGroupPopover/renderAvatarGroupPopover.js.map +1 -0
- package/lib-commonjs/components/AvatarGroupPopover/useAvatarGroupPopover.js +118 -0
- package/lib-commonjs/components/AvatarGroupPopover/useAvatarGroupPopover.js.map +1 -0
- package/lib-commonjs/components/AvatarGroupPopover/useAvatarGroupPopoverContextValues.js +19 -0
- package/lib-commonjs/components/AvatarGroupPopover/useAvatarGroupPopoverContextValues.js.map +1 -0
- package/lib-commonjs/components/AvatarGroupPopover/useAvatarGroupPopoverStyles.js +321 -0
- package/lib-commonjs/components/AvatarGroupPopover/useAvatarGroupPopoverStyles.js.map +1 -0
- package/lib-commonjs/contexts/AvatarGroupContext.js +10 -4
- package/lib-commonjs/contexts/AvatarGroupContext.js.map +1 -1
- package/lib-commonjs/index.js +60 -4
- package/lib-commonjs/index.js.map +1 -1
- package/lib-commonjs/utils/index.js +10 -1
- package/lib-commonjs/utils/index.js.map +1 -1
- package/lib-commonjs/utils/partitionAvatarGroupItems.js +39 -0
- package/lib-commonjs/utils/partitionAvatarGroupItems.js.map +1 -0
- package/package.json +14 -12
- package/MIGRATION-AvatarGroup.md +0 -35
- package/dist/tsdoc-metadata.json +0 -11
- package/lib/AvatarGroupOverflow.js +0 -2
- package/lib/AvatarGroupOverflow.js.map +0 -1
- package/lib/components/AvatarGroupOverflow/AvatarGroupOverflow.js +0 -15
- package/lib/components/AvatarGroupOverflow/AvatarGroupOverflow.js.map +0 -1
- package/lib/components/AvatarGroupOverflow/AvatarGroupOverflow.types.js +0 -2
- package/lib/components/AvatarGroupOverflow/AvatarGroupOverflow.types.js.map +0 -1
- package/lib/components/AvatarGroupOverflow/index.js +0 -6
- package/lib/components/AvatarGroupOverflow/index.js.map +0 -1
- package/lib/components/AvatarGroupOverflow/renderAvatarGroupOverflow.js +0 -16
- package/lib/components/AvatarGroupOverflow/renderAvatarGroupOverflow.js.map +0 -1
- package/lib/components/AvatarGroupOverflow/useAvatarGroupOverflow.js +0 -27
- package/lib/components/AvatarGroupOverflow/useAvatarGroupOverflow.js.map +0 -1
- package/lib/components/AvatarGroupOverflow/useAvatarGroupOverflowStyles.js +0 -27
- package/lib/components/AvatarGroupOverflow/useAvatarGroupOverflowStyles.js.map +0 -1
- package/lib/contexts/AvatarGroupContext.types.js +0 -2
- package/lib/contexts/AvatarGroupContext.types.js.map +0 -1
- package/lib-commonjs/AvatarGroupOverflow.js.map +0 -1
- package/lib-commonjs/components/AvatarGroupOverflow/AvatarGroupOverflow.js +0 -26
- package/lib-commonjs/components/AvatarGroupOverflow/AvatarGroupOverflow.js.map +0 -1
- package/lib-commonjs/components/AvatarGroupOverflow/AvatarGroupOverflow.types.js +0 -6
- package/lib-commonjs/components/AvatarGroupOverflow/AvatarGroupOverflow.types.js.map +0 -1
- package/lib-commonjs/components/AvatarGroupOverflow/index.js +0 -18
- package/lib-commonjs/components/AvatarGroupOverflow/index.js.map +0 -1
- package/lib-commonjs/components/AvatarGroupOverflow/renderAvatarGroupOverflow.js +0 -27
- package/lib-commonjs/components/AvatarGroupOverflow/renderAvatarGroupOverflow.js.map +0 -1
- package/lib-commonjs/components/AvatarGroupOverflow/useAvatarGroupOverflow.js +0 -37
- package/lib-commonjs/components/AvatarGroupOverflow/useAvatarGroupOverflow.js.map +0 -1
- package/lib-commonjs/components/AvatarGroupOverflow/useAvatarGroupOverflowStyles.js +0 -37
- package/lib-commonjs/components/AvatarGroupOverflow/useAvatarGroupOverflowStyles.js.map +0 -1
package/CHANGELOG.json
CHANGED
|
@@ -2,7 +2,215 @@
|
|
|
2
2
|
"name": "@fluentui/react-avatar",
|
|
3
3
|
"entries": [
|
|
4
4
|
{
|
|
5
|
-
"date": "
|
|
5
|
+
"date": "Tue, 20 Sep 2022 20:54:08 GMT",
|
|
6
|
+
"tag": "@fluentui/react-avatar_v9.1.1",
|
|
7
|
+
"version": "9.1.1",
|
|
8
|
+
"comments": {
|
|
9
|
+
"patch": [
|
|
10
|
+
{
|
|
11
|
+
"author": "beachball",
|
|
12
|
+
"package": "@fluentui/react-avatar",
|
|
13
|
+
"comment": "Bump @fluentui/react-badge to v9.0.6",
|
|
14
|
+
"commit": "9617a5a46ef4c5e310a066a5374ff2ed61db3c66"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"author": "beachball",
|
|
18
|
+
"package": "@fluentui/react-avatar",
|
|
19
|
+
"comment": "Bump @fluentui/react-popover to v9.1.1",
|
|
20
|
+
"commit": "9617a5a46ef4c5e310a066a5374ff2ed61db3c66"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"author": "beachball",
|
|
24
|
+
"package": "@fluentui/react-avatar",
|
|
25
|
+
"comment": "Bump @fluentui/react-tooltip to v9.0.6",
|
|
26
|
+
"commit": "9617a5a46ef4c5e310a066a5374ff2ed61db3c66"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"author": "beachball",
|
|
30
|
+
"package": "@fluentui/react-avatar",
|
|
31
|
+
"comment": "Bump @fluentui/react-conformance-griffel to v9.0.0-beta.14",
|
|
32
|
+
"commit": "9617a5a46ef4c5e310a066a5374ff2ed61db3c66"
|
|
33
|
+
}
|
|
34
|
+
]
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"date": "Thu, 15 Sep 2022 09:49:49 GMT",
|
|
39
|
+
"tag": "@fluentui/react-avatar_v9.1.0",
|
|
40
|
+
"version": "9.1.0",
|
|
41
|
+
"comments": {
|
|
42
|
+
"patch": [
|
|
43
|
+
{
|
|
44
|
+
"author": "esteban.230@hotmail.com",
|
|
45
|
+
"package": "@fluentui/react-avatar",
|
|
46
|
+
"commit": "5baea110a12d6c161c36b19b5b6768eeaa8370de",
|
|
47
|
+
"comment": "chore: Change content to render as ul and list item to render as li."
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"author": "esteban.230@hotmail.com",
|
|
51
|
+
"package": "@fluentui/react-avatar",
|
|
52
|
+
"commit": "abc61d6bf47190f96b5e32ed3b7df4b77614caaf",
|
|
53
|
+
"comment": "chore: Cleaning up use of AvatarGroup context."
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"author": "behowell@microsoft.com",
|
|
57
|
+
"package": "@fluentui/react-avatar",
|
|
58
|
+
"commit": "e598325b985cad3e5057f00893e0176416edd292",
|
|
59
|
+
"comment": "refactor: Replace useMergedEventCallbacks utility with mergeCallbacks"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"author": "esteban.230@hotmail.com",
|
|
63
|
+
"package": "@fluentui/react-avatar",
|
|
64
|
+
"commit": "4de0899dd07982aabdc611b1837bf9acfca44efc",
|
|
65
|
+
"comment": "fix: Making PopoverSurface focusable, moving Overflow aria-label to PopoverSurface, and moving content styles to PopoverSurface."
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"author": "esteban.230@hotmail.com",
|
|
69
|
+
"package": "@fluentui/react-avatar",
|
|
70
|
+
"commit": "a66448342c1f3e6a6911404486aef904529988c4",
|
|
71
|
+
"comment": "fix: Set aria-hidden to AvatarGroupItem's label."
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"author": "olfedias@microsoft.com",
|
|
75
|
+
"package": "@fluentui/react-avatar",
|
|
76
|
+
"commit": "e610024474cfe5d45f61501a8b6a21daf4c794a2",
|
|
77
|
+
"comment": "chore: Update Griffel to latest version"
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"author": "miroslav.stastny@microsoft.com",
|
|
81
|
+
"package": "@fluentui/react-avatar",
|
|
82
|
+
"commit": "0137f992b99b3b8ec927be8f7aef751d27cd5830",
|
|
83
|
+
"comment": "fix: Rename colorNeutralForegroundInvertedStatic token to colorNeutralForegroundStaticInverted"
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"author": "esteban.230@hotmail.com",
|
|
87
|
+
"package": "@fluentui/react-avatar",
|
|
88
|
+
"commit": "1542e766427a7f0b1ee122d507b7f50ebcb51a3c",
|
|
89
|
+
"comment": "chore: Update tests and add e2e tests."
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"author": "seanmonahan@microsoft.com",
|
|
93
|
+
"package": "@fluentui/react-avatar",
|
|
94
|
+
"commit": "1d0a72865a151962362aa3e5054ac9bf8178f09c",
|
|
95
|
+
"comment": "fix: update color tokens"
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"author": "lingfangao@hotmail.com",
|
|
99
|
+
"package": "@fluentui/react-avatar",
|
|
100
|
+
"commit": "a606fbedcf7d618d1a48706a5e15c26c4cd85ba6",
|
|
101
|
+
"comment": "chore: fix no-context-default-value lint violations for cxe"
|
|
102
|
+
}
|
|
103
|
+
],
|
|
104
|
+
"none": [
|
|
105
|
+
{
|
|
106
|
+
"author": "esteban.230@hotmail.com",
|
|
107
|
+
"package": "@fluentui/react-avatar",
|
|
108
|
+
"commit": "c5249ee380c5e17651b5122a716fcf5e4c477ad1",
|
|
109
|
+
"comment": "docs: Updating AvatarGroup's migration guide."
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"author": "martinhochel@microsoft.com",
|
|
113
|
+
"package": "@fluentui/react-avatar",
|
|
114
|
+
"commit": "ba9444d594f3a960cc590eae5237c08bf7c5a07f",
|
|
115
|
+
"comment": "chore: consume cypress.config from it's package boundary"
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
"author": "martinhochel@microsoft.com",
|
|
119
|
+
"package": "@fluentui/react-avatar",
|
|
120
|
+
"commit": "e6cf183695d6d67a24e038c49a876224e5ed35e5",
|
|
121
|
+
"comment": "chore: update package scaffold"
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"author": "esteban.230@hotmail.com",
|
|
125
|
+
"package": "@fluentui/react-avatar",
|
|
126
|
+
"commit": "ab54d44126b26316d662551bbdd93bf5b044b022",
|
|
127
|
+
"comment": "docs: Update spec to match implementation, add best practices, and update README."
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"author": "martinhochel@microsoft.com",
|
|
131
|
+
"package": "@fluentui/react-avatar",
|
|
132
|
+
"commit": "16aa65dcae8f75c6a221225fd0eb43800650ac66",
|
|
133
|
+
"comment": "docs: re-generate api.md files"
|
|
134
|
+
}
|
|
135
|
+
],
|
|
136
|
+
"minor": [
|
|
137
|
+
{
|
|
138
|
+
"author": "esteban.230@hotmail.com",
|
|
139
|
+
"package": "@fluentui/react-avatar",
|
|
140
|
+
"commit": "66762e1ca870a21db46b72c9b0848c5b107b8e09",
|
|
141
|
+
"comment": "feat: Adding functionality to AvatarGroupOverflow and updating AvatarGroup to use AvatarGroupOverflow."
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
"author": "esteban.230@hotmail.com",
|
|
145
|
+
"package": "@fluentui/react-avatar",
|
|
146
|
+
"commit": "84e2b1a8b1e8d2e9008297b6c35c76231ae3a31c",
|
|
147
|
+
"comment": "chore: Renaming AvatarGroupOverflow to AvatarGroupPopover."
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
"author": "esteban.230@hotmail.com",
|
|
151
|
+
"package": "@fluentui/react-avatar",
|
|
152
|
+
"commit": "27a3480f5361aa5d99f8978817d8395d9037e3b7",
|
|
153
|
+
"comment": "feat: Add pie layout implementation."
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
"author": "beachball",
|
|
157
|
+
"package": "@fluentui/react-avatar",
|
|
158
|
+
"comment": "Bump @fluentui/react-badge to v9.0.5",
|
|
159
|
+
"commit": "a33448fe4a0f4117686c378f80b893d1406d95a8"
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
"author": "beachball",
|
|
163
|
+
"package": "@fluentui/react-avatar",
|
|
164
|
+
"comment": "Bump @fluentui/react-context-selector to v9.0.3",
|
|
165
|
+
"commit": "a33448fe4a0f4117686c378f80b893d1406d95a8"
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
"author": "beachball",
|
|
169
|
+
"package": "@fluentui/react-avatar",
|
|
170
|
+
"comment": "Bump @fluentui/react-popover to v9.1.0",
|
|
171
|
+
"commit": "a33448fe4a0f4117686c378f80b893d1406d95a8"
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
"author": "beachball",
|
|
175
|
+
"package": "@fluentui/react-avatar",
|
|
176
|
+
"comment": "Bump @fluentui/react-shared-contexts to v9.0.1",
|
|
177
|
+
"commit": "a33448fe4a0f4117686c378f80b893d1406d95a8"
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
"author": "beachball",
|
|
181
|
+
"package": "@fluentui/react-avatar",
|
|
182
|
+
"comment": "Bump @fluentui/react-tabster to v9.1.1",
|
|
183
|
+
"commit": "a33448fe4a0f4117686c378f80b893d1406d95a8"
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
"author": "beachball",
|
|
187
|
+
"package": "@fluentui/react-avatar",
|
|
188
|
+
"comment": "Bump @fluentui/react-theme to v9.1.0",
|
|
189
|
+
"commit": "a33448fe4a0f4117686c378f80b893d1406d95a8"
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
"author": "beachball",
|
|
193
|
+
"package": "@fluentui/react-avatar",
|
|
194
|
+
"comment": "Bump @fluentui/react-tooltip to v9.0.5",
|
|
195
|
+
"commit": "a33448fe4a0f4117686c378f80b893d1406d95a8"
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
"author": "beachball",
|
|
199
|
+
"package": "@fluentui/react-avatar",
|
|
200
|
+
"comment": "Bump @fluentui/react-utilities to v9.1.0",
|
|
201
|
+
"commit": "a33448fe4a0f4117686c378f80b893d1406d95a8"
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
"author": "beachball",
|
|
205
|
+
"package": "@fluentui/react-avatar",
|
|
206
|
+
"comment": "Bump @fluentui/react-conformance-griffel to v9.0.0-beta.13",
|
|
207
|
+
"commit": "a33448fe4a0f4117686c378f80b893d1406d95a8"
|
|
208
|
+
}
|
|
209
|
+
]
|
|
210
|
+
}
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
"date": "Wed, 03 Aug 2022 16:03:37 GMT",
|
|
6
214
|
"tag": "@fluentui/react-avatar_v9.0.4",
|
|
7
215
|
"version": "9.0.4",
|
|
8
216
|
"comments": {
|
|
@@ -43,31 +251,31 @@
|
|
|
43
251
|
"author": "beachball",
|
|
44
252
|
"package": "@fluentui/react-avatar",
|
|
45
253
|
"comment": "Bump @fluentui/react-badge to v9.0.4",
|
|
46
|
-
"commit": "
|
|
254
|
+
"commit": "ee4a8be0d0831a6615f878f98db6a97cc61a802d"
|
|
47
255
|
},
|
|
48
256
|
{
|
|
49
257
|
"author": "beachball",
|
|
50
258
|
"package": "@fluentui/react-avatar",
|
|
51
259
|
"comment": "Bump @fluentui/react-popover to v9.0.4",
|
|
52
|
-
"commit": "
|
|
260
|
+
"commit": "ee4a8be0d0831a6615f878f98db6a97cc61a802d"
|
|
53
261
|
},
|
|
54
262
|
{
|
|
55
263
|
"author": "beachball",
|
|
56
264
|
"package": "@fluentui/react-avatar",
|
|
57
265
|
"comment": "Bump @fluentui/react-tabster to v9.1.0",
|
|
58
|
-
"commit": "
|
|
266
|
+
"commit": "ee4a8be0d0831a6615f878f98db6a97cc61a802d"
|
|
59
267
|
},
|
|
60
268
|
{
|
|
61
269
|
"author": "beachball",
|
|
62
270
|
"package": "@fluentui/react-avatar",
|
|
63
271
|
"comment": "Bump @fluentui/react-tooltip to v9.0.4",
|
|
64
|
-
"commit": "
|
|
272
|
+
"commit": "ee4a8be0d0831a6615f878f98db6a97cc61a802d"
|
|
65
273
|
},
|
|
66
274
|
{
|
|
67
275
|
"author": "beachball",
|
|
68
276
|
"package": "@fluentui/react-avatar",
|
|
69
277
|
"comment": "Bump @fluentui/react-conformance-griffel to v9.0.0-beta.12",
|
|
70
|
-
"commit": "
|
|
278
|
+
"commit": "ee4a8be0d0831a6615f878f98db6a97cc61a802d"
|
|
71
279
|
}
|
|
72
280
|
]
|
|
73
281
|
}
|
package/CHANGELOG.md
CHANGED
|
@@ -1,23 +1,68 @@
|
|
|
1
1
|
# Change Log - @fluentui/react-avatar
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Tue, 20 Sep 2022 20:54:08 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
+
## [9.1.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-avatar_v9.1.1)
|
|
8
|
+
|
|
9
|
+
Tue, 20 Sep 2022 20:54:08 GMT
|
|
10
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-avatar_v9.1.0..@fluentui/react-avatar_v9.1.1)
|
|
11
|
+
|
|
12
|
+
### Patches
|
|
13
|
+
|
|
14
|
+
- Bump @fluentui/react-badge to v9.0.6 ([PR #24870](https://github.com/microsoft/fluentui/pull/24870) by beachball)
|
|
15
|
+
- Bump @fluentui/react-popover to v9.1.1 ([PR #24870](https://github.com/microsoft/fluentui/pull/24870) by beachball)
|
|
16
|
+
- Bump @fluentui/react-tooltip to v9.0.6 ([PR #24870](https://github.com/microsoft/fluentui/pull/24870) by beachball)
|
|
17
|
+
- Bump @fluentui/react-conformance-griffel to v9.0.0-beta.14 ([PR #24870](https://github.com/microsoft/fluentui/pull/24870) by beachball)
|
|
18
|
+
|
|
19
|
+
## [9.1.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-avatar_v9.1.0)
|
|
20
|
+
|
|
21
|
+
Thu, 15 Sep 2022 09:49:49 GMT
|
|
22
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-avatar_v9.0.4..@fluentui/react-avatar_v9.1.0)
|
|
23
|
+
|
|
24
|
+
### Minor changes
|
|
25
|
+
|
|
26
|
+
- feat: Adding functionality to AvatarGroupOverflow and updating AvatarGroup to use AvatarGroupOverflow. ([PR #24115](https://github.com/microsoft/fluentui/pull/24115) by esteban.230@hotmail.com)
|
|
27
|
+
- chore: Renaming AvatarGroupOverflow to AvatarGroupPopover. ([PR #24338](https://github.com/microsoft/fluentui/pull/24338) by esteban.230@hotmail.com)
|
|
28
|
+
- feat: Add pie layout implementation. ([PR #24241](https://github.com/microsoft/fluentui/pull/24241) by esteban.230@hotmail.com)
|
|
29
|
+
- Bump @fluentui/react-badge to v9.0.5 ([PR #24808](https://github.com/microsoft/fluentui/pull/24808) by beachball)
|
|
30
|
+
- Bump @fluentui/react-context-selector to v9.0.3 ([PR #24808](https://github.com/microsoft/fluentui/pull/24808) by beachball)
|
|
31
|
+
- Bump @fluentui/react-popover to v9.1.0 ([PR #24808](https://github.com/microsoft/fluentui/pull/24808) by beachball)
|
|
32
|
+
- Bump @fluentui/react-shared-contexts to v9.0.1 ([PR #24808](https://github.com/microsoft/fluentui/pull/24808) by beachball)
|
|
33
|
+
- Bump @fluentui/react-tabster to v9.1.1 ([PR #24808](https://github.com/microsoft/fluentui/pull/24808) by beachball)
|
|
34
|
+
- Bump @fluentui/react-theme to v9.1.0 ([PR #24808](https://github.com/microsoft/fluentui/pull/24808) by beachball)
|
|
35
|
+
- Bump @fluentui/react-tooltip to v9.0.5 ([PR #24808](https://github.com/microsoft/fluentui/pull/24808) by beachball)
|
|
36
|
+
- Bump @fluentui/react-utilities to v9.1.0 ([PR #24808](https://github.com/microsoft/fluentui/pull/24808) by beachball)
|
|
37
|
+
- Bump @fluentui/react-conformance-griffel to v9.0.0-beta.13 ([PR #24808](https://github.com/microsoft/fluentui/pull/24808) by beachball)
|
|
38
|
+
|
|
39
|
+
### Patches
|
|
40
|
+
|
|
41
|
+
- chore: Change content to render as ul and list item to render as li. ([PR #24347](https://github.com/microsoft/fluentui/pull/24347) by esteban.230@hotmail.com)
|
|
42
|
+
- chore: Cleaning up use of AvatarGroup context. ([PR #24459](https://github.com/microsoft/fluentui/pull/24459) by esteban.230@hotmail.com)
|
|
43
|
+
- refactor: Replace useMergedEventCallbacks utility with mergeCallbacks ([PR #24152](https://github.com/microsoft/fluentui/pull/24152) by behowell@microsoft.com)
|
|
44
|
+
- fix: Making PopoverSurface focusable, moving Overflow aria-label to PopoverSurface, and moving content styles to PopoverSurface. ([PR #24417](https://github.com/microsoft/fluentui/pull/24417) by esteban.230@hotmail.com)
|
|
45
|
+
- fix: Set aria-hidden to AvatarGroupItem's label. ([PR #24359](https://github.com/microsoft/fluentui/pull/24359) by esteban.230@hotmail.com)
|
|
46
|
+
- chore: Update Griffel to latest version ([PR #24221](https://github.com/microsoft/fluentui/pull/24221) by olfedias@microsoft.com)
|
|
47
|
+
- fix: Rename colorNeutralForegroundInvertedStatic token to colorNeutralForegroundStaticInverted ([PR #24611](https://github.com/microsoft/fluentui/pull/24611) by miroslav.stastny@microsoft.com)
|
|
48
|
+
- chore: Update tests and add e2e tests. ([PR #24348](https://github.com/microsoft/fluentui/pull/24348) by esteban.230@hotmail.com)
|
|
49
|
+
- fix: update color tokens ([PR #24027](https://github.com/microsoft/fluentui/pull/24027) by seanmonahan@microsoft.com)
|
|
50
|
+
- chore: fix no-context-default-value lint violations for cxe ([PR #24277](https://github.com/microsoft/fluentui/pull/24277) by lingfangao@hotmail.com)
|
|
51
|
+
|
|
7
52
|
## [9.0.4](https://github.com/microsoft/fluentui/tree/@fluentui/react-avatar_v9.0.4)
|
|
8
53
|
|
|
9
|
-
Wed, 03 Aug 2022 16:
|
|
54
|
+
Wed, 03 Aug 2022 16:03:37 GMT
|
|
10
55
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-avatar_v9.0.3..@fluentui/react-avatar_v9.0.4)
|
|
11
56
|
|
|
12
57
|
### Patches
|
|
13
58
|
|
|
14
59
|
- bugfix: add reduced motion styles for avatar, spinner, switch, and input focus styles ([PR #23788](https://github.com/microsoft/fluentui/pull/23788) by sarah.higley@microsoft.com)
|
|
15
60
|
- chore: Bump Griffel dependencies ([PR #24114](https://github.com/microsoft/fluentui/pull/24114) by miroslav.stastny@microsoft.com)
|
|
16
|
-
- Bump @fluentui/react-badge to v9.0.4 ([PR #
|
|
17
|
-
- Bump @fluentui/react-popover to v9.0.4 ([PR #
|
|
18
|
-
- Bump @fluentui/react-tabster to v9.1.0 ([PR #
|
|
19
|
-
- Bump @fluentui/react-tooltip to v9.0.4 ([PR #
|
|
20
|
-
- Bump @fluentui/react-conformance-griffel to v9.0.0-beta.12 ([PR #
|
|
61
|
+
- Bump @fluentui/react-badge to v9.0.4 ([PR #24131](https://github.com/microsoft/fluentui/pull/24131) by beachball)
|
|
62
|
+
- Bump @fluentui/react-popover to v9.0.4 ([PR #24131](https://github.com/microsoft/fluentui/pull/24131) by beachball)
|
|
63
|
+
- Bump @fluentui/react-tabster to v9.1.0 ([PR #24131](https://github.com/microsoft/fluentui/pull/24131) by beachball)
|
|
64
|
+
- Bump @fluentui/react-tooltip to v9.0.4 ([PR #24131](https://github.com/microsoft/fluentui/pull/24131) by beachball)
|
|
65
|
+
- Bump @fluentui/react-conformance-griffel to v9.0.0-beta.12 ([PR #24131](https://github.com/microsoft/fluentui/pull/24131) by beachball)
|
|
21
66
|
|
|
22
67
|
## [9.0.3](https://github.com/microsoft/fluentui/tree/@fluentui/react-avatar_v9.0.3)
|
|
23
68
|
|
package/README-AvatarGroup.md
CHANGED
|
@@ -1,39 +1,63 @@
|
|
|
1
|
-
# @fluentui/react-avatar
|
|
2
|
-
|
|
3
|
-
**React AvatarGroup component for [Fluent UI](https://
|
|
4
|
-
|
|
5
|
-
The AvatarGroup component represents a group of multiple people or entities by taking care of the arrangement of individual Avatars in a spread, stack, or pie layout.
|
|
6
|
-
|
|
7
|
-
## STATUS: WIP 🚧
|
|
8
|
-
|
|
9
|
-
These are not production-ready components and **should never be used in product**. This space is useful for testing new components whose APIs might change before final release.
|
|
10
|
-
|
|
11
|
-
## Usage
|
|
12
|
-
|
|
13
|
-
To import AvatarGroup and
|
|
14
|
-
|
|
15
|
-
```js
|
|
16
|
-
import { AvatarGroup, AvatarGroupItem } from '@fluentui/react-avatar';
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
Once the AvatarGroup component graduates to a production release, the component will be available at:
|
|
20
|
-
|
|
21
|
-
```js
|
|
22
|
-
import {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
1
|
+
# @fluentui/react-avatar
|
|
2
|
+
|
|
3
|
+
**React AvatarGroup component for [Fluent UI](https://react.fluentui.dev)**
|
|
4
|
+
|
|
5
|
+
The AvatarGroup component represents a group of multiple people or entities by taking care of the arrangement of individual Avatars in a spread, stack, or pie layout.
|
|
6
|
+
|
|
7
|
+
## STATUS: WIP 🚧
|
|
8
|
+
|
|
9
|
+
These are not production-ready components and **should never be used in product**. This space is useful for testing new components whose APIs might change before final release.
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
To import AvatarGroup, AvatarGroupItem, AvatarGroupPopover, and partitionAvatarGroupItems:
|
|
14
|
+
|
|
15
|
+
```js
|
|
16
|
+
import { AvatarGroup, AvatarGroupItem, AvatarGroupPopover, partitionAvatarGroupItems } from '@fluentui/react-avatar';
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
Once the AvatarGroup component graduates to a production release, the component will be available at:
|
|
20
|
+
|
|
21
|
+
```js
|
|
22
|
+
import {
|
|
23
|
+
AvatarGroup,
|
|
24
|
+
AvatarGroupItem,
|
|
25
|
+
AvatarGroupPopover,
|
|
26
|
+
partitionAvatarGroupItems,
|
|
27
|
+
} from '@fluentui/react-components';
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
### Examples
|
|
31
|
+
|
|
32
|
+
```jsx
|
|
33
|
+
const names = [
|
|
34
|
+
'Johnie McConnell',
|
|
35
|
+
'Allan Munger',
|
|
36
|
+
'Erik Nason',
|
|
37
|
+
'Kristin Patterson',
|
|
38
|
+
'Daisy Phillips',
|
|
39
|
+
'Carole Poland',
|
|
40
|
+
'Carlos Slattery',
|
|
41
|
+
'Robert Tolbert',
|
|
42
|
+
'Kevin Sturgis',
|
|
43
|
+
'Charlotte Waltson',
|
|
44
|
+
'Elliot Woodward',
|
|
45
|
+
];
|
|
46
|
+
|
|
47
|
+
const AvatarGroup = () => {
|
|
48
|
+
const { inlineItems, overflowItems } = partitionAvatarGroupItems({ items: names });
|
|
49
|
+
|
|
50
|
+
return (
|
|
51
|
+
<AvatarGroup {...props}>
|
|
52
|
+
{inlineItems.map(name => (
|
|
53
|
+
<AvatarGroupItem name={name} key={name} />
|
|
54
|
+
))}
|
|
55
|
+
<AvatarGroupPopover>
|
|
56
|
+
{overflowItems.map(name => (
|
|
57
|
+
<AvatarGroupItem name={name} key={name} />
|
|
58
|
+
))}
|
|
59
|
+
</AvatarGroupPopover>
|
|
60
|
+
</AvatarGroup>
|
|
61
|
+
);
|
|
62
|
+
};
|
|
63
|
+
```
|