How youzan/zent works
High-Level Architecture
a. Core Layer (Bottom)
• Utils & Helpers (/src/utils)
• Theme System (/src/theme)
• I18n System (/src/i18n)
• Portal System (/src/portal)
b. Foundation Layer
• Base Components (buttons, inputs, etc.)
• Layout Components (/src/layout)
• Style System (assets/*.scss)
c. Complex Components Layer
• Form System (/src/form)
• Data Display Components (grid, table)
• Navigation Components (menu, tabs)
• Feedback Components (notify, alert)
d. Integration Layer (Top)
• Build System
• TypeScript Support
• Theming Integration
• Polyfills
Component Dependencies
• Related components (e.g., form-related components)
• Shared utilities and hooks
• Theme and i18n context providers
Build & Distribution Flow
• Source Files → TypeScript Compilation
• SCSS Processing
• Babel Transformation
• Package Distribution
• Documentation Generation
Important Relationships
• Component inheritance hierarchies
• Context providers and consumers
• Style dependencies
• Utility function usage