-
Notifications
You must be signed in to change notification settings - Fork 2.9k
react-avatar: Adding AvatarGroupItem implementation and AvatarGroup context #23310
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
react-avatar: Adding AvatarGroupItem implementation and AvatarGroup context #23310
Conversation
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 525bd0e:
|
📊 Bundle size reportUnchanged fixtures
|
Perf Analysis (
|
| Scenario | Render type | Master Ticks | PR Ticks | Iterations | Status |
|---|---|---|---|---|---|
| Avatar | mount | 1050 | 1115 | 5000 | |
| Button | mount | 676 | 679 | 5000 | |
| FluentProvider | mount | 2267 | 2282 | 5000 | |
| FluentProviderWithTheme | mount | 352 | 333 | 10 | |
| FluentProviderWithTheme | virtual-rerender | 296 | 300 | 10 | |
| FluentProviderWithTheme | virtual-rerender-with-unmount | 388 | 350 | 10 | |
| MakeStyles | mount | 1925 | 1888 | 50000 |
Asset size changesSize Auditor did not detect a change in bundle size for any component! Baseline commit: 143f4ac9fb4eef165e4975bcf3b113bc00680e03 (build) |
packages/react-components/react-avatar/src/components/AvatarGroupItem/AvatarGroupItem.types.ts
Outdated
Show resolved
Hide resolved
packages/react-components/react-avatar/src/components/AvatarGroupItem/useAvatarGroupItem.ts
Outdated
Show resolved
Hide resolved
packages/react-components/react-avatar/src/components/AvatarGroup/AvatarGroup.types.ts
Outdated
Show resolved
Hide resolved
packages/react-components/react-avatar/src/contexts/useAvatarGroupContextValues.tsx
Outdated
Show resolved
Hide resolved
packages/react-components/react-avatar/src/components/AvatarGroup/useAvatarGroup.ts
Show resolved
Hide resolved
packages/react-components/react-avatar/src/components/AvatarGroup/useAvatarGroup.ts
Show resolved
Hide resolved
packages/react-components/react-avatar/src/components/AvatarGroupItem/AvatarGroupItem.types.ts
Outdated
Show resolved
Hide resolved
packages/react-components/react-avatar/src/components/AvatarGroupItem/useAvatarGroupItem.ts
Outdated
Show resolved
Hide resolved
...ges/react-components/react-avatar/src/components/AvatarGroupItem/useAvatarGroupItemStyles.ts
Outdated
Show resolved
Hide resolved
behowell
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thanks for making the changes! Just a few more comments :)
packages/react-components/react-avatar/src/stories/AvatarGroupItemDefault.stories.tsx
Outdated
Show resolved
Hide resolved
packages/react-components/react-avatar/src/contexts/AvatarGroupContext.types.ts
Outdated
Show resolved
Hide resolved
packages/react-components/react-avatar/src/components/AvatarGroupItem/AvatarGroupItem.tsx
Show resolved
Hide resolved
packages/react-components/react-avatar/src/components/AvatarGroupItem/renderAvatarGroupItem.tsx
Outdated
Show resolved
Hide resolved
...ges/react-components/react-avatar/src/components/AvatarGroupItem/useAvatarGroupItemStyles.ts
Show resolved
Hide resolved
…vatargroupitem-implementation
…ontext (microsoft#23310) * Adding AvatarGroupItem implementation and AvatarGroup context. * change files * fixing lint errors * adding requested changes * updating types for root slot * updating name of overflowlabel styles * Adding requested changes
PR Details
This PR does the following:
AvatarGroupItem.AvatarGroupcontext to be consumed byAvatarGroupItem.NOTE: There are some changes, such as removing string from
AvatarGroup, that will be made in a separate PR #22736. This PR modifiesAvatarGrouponly to add the context sinceAvatarGroupItemrequires it for its functionality, and to pass build/tests.Related Issue(s)
#22240, #22736