Skip to content
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

Update VariantProp type merging logic for Compose interface #276

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

lunelson
Copy link

@lunelson lunelson commented Apr 3, 2024

Description

This PR primarily addresses the following issue, updating the variant prop merging logic that is applied by the Compose interface, so that the union of available variant prop names is correct.

#256

There are also some secondary simplifications of types, and application of unknown in place of any.


What is the purpose of this pull request?

  • Bug fix
  • New Feature
  • Documentation update
  • Other

Before submitting the PR, please make sure you do the following

  • Read the Contributing Guidelines.
  • Follow the Style Guide.
  • Check that there isn't already a PR that solves the problem the same way to avoid creating a duplicate.
  • Provide a description in this PR that addresses what the PR is solving, or reference the issue that it solves (e.g. fixes #123).

Copy link

vercel bot commented Apr 3, 2024

@lunelson is attempting to deploy a commit to the cva Team on Vercel.

A member of the Team first needs to authorize it.

@joe-bell
Copy link
Owner

joe-bell commented Apr 4, 2024

Thanks @lunelson! Bit stretched for time at the moment but I'll try to get around to testing this. Really appreciate the contribution 🙏

packages/cva/src/index.ts Outdated Show resolved Hide resolved
- update Compose interface to use new MergeVariantProp utility type
- clean up some other types
@lunelson lunelson force-pushed the variant-prop-type-merging-logic branch from 506d2ad to b61bf93 Compare April 7, 2024 16:18
@kaelansmith
Copy link

@lunelson glad to see this getting pushed forward, thanks! @joe-bell are you still too busy to push this over the finish line? Any way I can help?

@tronikelis
Copy link

Any plans to merge? Seems like a must have feature for typescript ppl

packages/cva/src/index.ts Outdated Show resolved Hide resolved
Copy link

vercel bot commented Dec 5, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
docs ✅ Ready (Inspect) Visit Preview Dec 5, 2024 4:19pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants