-
Notifications
You must be signed in to change notification settings - Fork 25
Feat/Avatar builder and component #16
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
Conversation
🦋 Changeset detectedLatest commit: 3a7317e The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
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.
Thank you so much! Left a few comments, and I believe we can change the bg of the input for controls to be a lighter color. Nonetheless the change is very welcome!
Instead of calling `getters` with the props for the Avatar builder, wrap the entire `new Avatar()` call in `$derived`. Causes a new instance to be created if the props change, resetting the loading status. call in `$derived`
- Previous commit only reset loading status and reloaded the image correctly if the `src` prop was changed. If `delayMs` wash change, the loading status was reset, but `onload()` never fired. Reverting to using `getters` - Add `MaybeGetter` to Avatar props
- Remove MaybeGetter from onLoadingStatusChange - Remove Synced from loadingStatus - Put onLoadingStatusChange into an $effect - Added `dark:` to example inputs and removed the explicit text color
An Avatar builder and component, ported from melt-ui:
A couple additional items that were related (let me know if you would like these broken out in a different PR):
src
proptext-gray-100
(it was black on dark gray when not in dark mode)