How enactjs/sandstone works
Main Components Structure
• Sandstone UI Library |
• Core Components| |Layout Components| |Input Components| |Decorator Components| |
Component Layer Details
Core Components:
• Button |
• Image |
• Text/BodyText |
• Heading |
Layout Components:
• Panels |
• Scroller |
• VirtualList |
• TabLayout |
• PopupPanels |
Input Components:
• Input |
• Checkbox |
• DatePicker |
• Slider |
• Switch |
Decorator Components:
• ThemeDecorator |
• Skinnable |
• SpotlightDec. |
• Theme System |
• Typography |
• Spacing |
• Animations |
• ↑
• Style Implementation |
• CSS Modules |
• LESS Variables |
• Theme Variables |
Integration Flow
• React App | → | ThemeDecorator | → | Sandstone |
• (Entry Point) | | (Configuration) | | Components |
• ↓
• I18n/Spotlight |
• Resolution |
Key Elements to Include:
• Component dependencies
• Theme inheritance
• Event flow
• Data flow
Testing integration
• Jest test runner
• Testing Library integration
• UI test specifications
The testing and quality assurance structure
This system design should help developers understand:
• How components are organized
• How themes and styles are applied
• How to integrate the library
• How testing is implemented
• The overall architecture of the system