feat: Implement Modular UI Package Architecture with Subpath Exports #446
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.
Overview
This PR restructures the Storacha UI packages into a modular architecture that provides better developer experience, tree-shaking support, and framework-agnostic utilities. The implementation introduces a meta-package system with subpath exports for granular imports.
Key Features
✅ Subpath Exports:
@storacha/ui/react/components/Authenticator
✅ Tree-Shakeable: Component-level imports for optimal bundle sizes
✅ TypeScript Project References: Improved build performance
✅ Tailwind Integration: Complete theming system with CSS custom properties
✅ Framework Agnostic: Core utilities work in any JavaScript framework
Usage Examples
Testing & Validation
Breaking Changes
Components moved from root to src/components/ directory
Test imports updated to reflect new component locations
Enhanced TypeScript configuration for composite builds
Note: Existing imports continue to work through backward compatibility in the meta-package.
Acceptance Criteria
npm install @storacha/ui
works with subpath exportsThis PR closes UI Packaging and Theming