How aquarela-io/sso-ui-components works
Main Component Structure
a) Core Library Components
• Subdivide into two main component categories:
• UI Components (from /src/components/ui)
b) Build & Development Infrastructure
• This on the left side
• Include:
• Vite Development Server
• Rollup Build System
• Storybook Documentation
c) External Dependencies
• This on the right side
• Into:
• Core Dependencies (React, React-DOM)
• UI Utilities (class-variance-authority, tailwind-merge, clsx)
• Component Libraries (Radix UI)
Component Relationships
a) Internal Dependencies
• How UI components utilize the utils library
• Button component to its constants and stories
b) External Dependencies
• How components consume Radix UI primitives
• Tailwind CSS integration
• React dependency connections
Development Tools Integration
• Storybook integration for component documentation
• Build process flow from source to distribution
• Development environment setup
Use the following visual elements:
• Rectangles: Main components and modules
• Rounded rectangles: External dependencies
• Hexagons: Build tools and infrastructure
• Blue: Core components
• Green: External dependencies
• Orange: Build tools
• Purple: Documentation tools
Component Flow
• Component initialization
• Prop flow
• Style application
• Variant handling through class-variance-authority
Remember to:
Build/publish workflow
For tools, I recommend using:
• Exportable versions for documentation