Skip to content

feat: update avatar component#150

Merged
mehdibha merged 11 commits intomainfrom
refactor/avatar-component
Mar 11, 2026
Merged

feat: update avatar component#150
mehdibha merged 11 commits intomainfrom
refactor/avatar-component

Conversation

@mehdibha
Copy link
Owner

Summary

  • refactor avatar component
  • added AvatarBadge and AvatarGroupCount

mehdibha and others added 4 commits March 6, 2026 03:26
…n slot

Replace data-slot attributes with data-alert-* attributes, rename base
slot to root, add styled action slot with responsive grid layout. Update
react-aria, react-aria-components, and @internationalized/date deps.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…k-only support

- add hasImage/setHasImage context to track AvatarImage mount state
- fix AvatarFallback to show when no AvatarImage is present or on error
- fix AvatarPlaceholder to only show when AvatarImage is mounted and loading
- update avatar/index.tsx to use createDynamicComponent pattern
- add missing AvatarBadgeProps and AvatarGroupCountProps to types.ts
- add missing AvatarFallback to account-menu, invite-members, and homepage
- add API references for all avatar sub-components in docs
- remove misleading react-aria link from avatar.mdx

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The V generic on VariantsMap and createDynamicComponent was unused
(_V was prefixed with underscore and the record key was always string).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@changeset-bot
Copy link

changeset-bot bot commented Mar 11, 2026

⚠️ No Changeset found

Latest commit: 6082c31

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@vercel
Copy link

vercel bot commented Mar 11, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
dotui Ready Ready Preview, Comment Mar 11, 2026 3:13pm

@github-actions github-actions bot added documentation Improvements or additions to documentation area: www labels Mar 11, 2026
mehdibha and others added 3 commits March 11, 2026 14:51
…g loading

Follow base-ui's approach where fallback displays whenever image status
is not "loaded", eliminating the need for a separate placeholder component
and hasImage context tracking.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Ensures workspace dependencies like starter-themes are built before
typecheck runs, so dist type declarations are available.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
mehdibha and others added 2 commits March 11, 2026 16:10
…enerated files

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@mehdibha mehdibha merged commit 32725cd into main Mar 11, 2026
9 of 10 checks passed
@mehdibha mehdibha deleted the refactor/avatar-component branch March 11, 2026 15:13
@mehdibha mehdibha restored the refactor/avatar-component branch March 11, 2026 15:32
@mehdibha mehdibha deleted the refactor/avatar-component branch March 11, 2026 15:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: www documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant