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

feat: Move components to @clayui/core #5783

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

matuzalemsteles
Copy link
Member

Closes #4191

Well basically this is a WIP to move the components to the same package @clayui/core, there is some care here because we want to keep the current packages working but without code duplication (this is being done in this PR but I'm discussing it further below.) and we will deprecate it and in the future major version we will no longer have support.

Another problem we have here is that the idea would be to slowly move packages to @clayui/core but we have some problems with this due to the dependency between clay packages which causes cyclical dependency, especially packages that depend on @clayui/ icon, @clayui/button and @clayui/drop-dropdown, because it is not enough to move the code to maintain support and avoid code duplication, we add the @clayui/core dependency in this package just by exporting the your component but this can cause a cyclical dependency, so we need to move some packages that do not cause cyclical dependency and at other times we will have to move more than one package at a time to not cause the cyclical dependency, this requires more work especially for the packages mentioned above because we have many packages with co-dependencies.

The commits are still duplicating the code because I still need to add checking if there is a cyclic dependency, I will update later. I'll use this PR to work on it slowly.

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.

Expose Clay's packages in the @clayui/core package
1 participant