feat(ui): add component registry - #987
Draft
janburzinski wants to merge 1 commit into
Draft
janburzinski wants to merge 1 commit into
janburzinski wants to merge 1 commit into
Conversation
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
React Doctor found 1 new issue in 1 file · 1 warning · score 87 / 100 (Great) · 0 fixed · vs 1 warning
Reviewed by React Doctor for commit |
| } | ||
|
|
||
| export { Input }; | ||
| export { Input, inputVariants }; |
There was a problem hiding this comment.
React Doctor · react-doctor/only-export-components (warning)
This file exports non-components, so Fast Refresh can't safely preserve component state.
Fix → Move non-component exports out of component files so Fast Refresh can preserve component state instead of full-reloading.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Give a short summary of what this PR does and why it's needed.
Screenshot/Recording (if applicable)
Attach a screenshot or recording of the change. This is optional, but can help reviewers understand the change. You can use Cap to record a video.
Checklist
Summary by cubic
Adds a shadcn registry for Notra UI components so any project can install them with
npx shadcn@latest add @notra/buttonand similar. The registry is generated from thepackages/uisource and served from theapps/uisite; the dashboard's local button wrapper is removed because the button now carries the squircle styling directly.Registry
packages/ui/scripts/build-registry.tsrunsshadcn buildand rewrites internal aliases to the consumer's@/paths.apps/ui/public/r/with a catalog at/r/registry.json.packages/uiandapps/dashboardregister@notraas a local registry URL (port 3006) incomponents.json.Component changes
[data-theme="dark"]as well as.dark.apps/ui/docsgains a page per primitive with live examples and an API reference.Written for commit c5cd5d5. Summary will update on new commits.