How synetonet/compass-react works
Main System Components
a) Component Library Core
• Main component categories:
• Layout Components (Grid, SideNavigation, TitleBar)
• UI Components (Alert, Badge, Button, etc.)
• Form Components (Check, Switch, DatePicker, etc.)
• Data Display Components (Table, Chart, List)
• Overlay Components (Modal, Popover, Toast)
b) Base Architecture
• SCSS Variables and Mixins
c) Build & Distribution System
• Build pipeline:
• Source (src/)
• Compilation (Rollup/Babel)
• Distribution (lib/)
Component Architecture
• Component Structure Pattern:
• Component/
• Component.jsx
• Component.scss
• Component.md
• Component.spec.js
• __snapshots__/
Integration Points
External integration points:
• NPM Package System
• Consumer Applications
• Documentation System (React Styleguidist)
Detailed Component Flow
Component lifecycle:
Implementation Details
Technical specifications:
• React Components
• SCSS Styling System
• Jest Testing Framework
• Rollup Bundling
• Styleguidist Documentation
┌─────────────────────────────────────────────┐
• Consumer Applications │
• ┘
• ↑
┌─────────────────────────────────────────────┐
• NPM Package Distribution │
• ┘
• ↑
┌─────────────────────────────────────────────┐
• Component Library │
• ┬─────────────┬────────────────┤
• Layout │ UI │ Form │
• Components │ Components │ Components │
• ┴─────────────┴────────────────┤
• Base Architecture │
• ┘
• ↑
┌─────────────────────────────────────────────┐
• Build & Test Infrastructure │
• ┘