# mohamedhemidi/vault-ui architecture

> Architecture diagram of the GitHub repository mohamedhemidi/vault-ui, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2024-12-28). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/mohamedhemidi/vault-ui
- Repository: https://github.com/mohamedhemidi/vault-ui

## Overview

##### Main System Components

a) Component Library Core
b) Individual Component Categories
c) Styling System
d) Build/Distribution System

**A. Core Container (Main boundary):**
- Vault UI Library

**B. Component Categories (Sub-containers):**
- Input Components
- TextField
- TextArea
- Interactive Components
- Button
- Select (Multi/Single)
- Feedback Components
- Toast
- Media Components
- LazyLoadImage

**C. Supporting Systems (Side containers):**
- Styling System (CSS Modules)
- Build System (Rollup)

##### Component Relationships

Key relationships:
- CSS Modules connection to each component
- Component exports to main entry point
- Type definitions flow (TypeScript)

##### Technical Details

Annotations for:
- TypeScript integration
- CSS Module implementation
- Component prop interfaces
- Build configuration

##### Implementation Notes

- Component independence (each component is self-contained)
- Shared styling patterns
- Type system integration
- Build/bundle configuration

## Diagram (Mermaid)

```mermaid
flowchart TB
    subgraph VaultUI["Vault UI Library"]
        direction TB
        
        subgraph Components["Component Categories"]
            direction TB
            
            subgraph InputComp["Input Components"]
                direction TB
                TextField["TextField"]:::input
                TextArea["TextArea"]:::input
            end
            
            subgraph InteractiveComp["Interactive Components"]
                direction TB
                Button["Button"]:::interactive
                Select["Select"]:::interactive
            end
            
            subgraph FeedbackComp["Feedback Components"]
                direction TB
                Toast["Toast"]:::feedback
            end
            
            subgraph MediaComp["Media Components"]
                direction TB
                LazyLoad["LazyLoadImage"]:::media
            end
        end
        
        subgraph Support["Supporting Systems"]
            direction TB
            CSS["CSS Modules"]:::system
            Build["Build System (Rollup)"]:::system
            TypeDef["TypeScript Definitions"]:::system
        end
        
        Entry["Main Entry Point"]:::core
        CompEntry["Components Entry"]:::core
    end
    
    %% Relationships
    Entry --> CompEntry
    CompEntry --> InputComp
    CompEntry --> InteractiveComp
    CompEntry --> FeedbackComp
    CompEntry --> MediaComp
    
    CSS --> TextField
    CSS --> TextArea
    CSS --> Button
    CSS --> Select
    CSS --> Toast
    CSS --> LazyLoad
    
    Build --> Entry
    TypeDef --> Components
    
    %% Click Events
    click TextField "https://github.com/mohamedhemidi/vault-ui/tree/master/src/components/Inputs/TextField/"
    click TextArea "https://github.com/mohamedhemidi/vault-ui/tree/master/src/components/Inputs/TextArea/"
    click Button "https://github.com/mohamedhemidi/vault-ui/tree/master/src/components/Button/"
    click Select "https://github.com/mohamedhemidi/vault-ui/tree/master/src/components/Select/"
    click Toast "https://github.com/mohamedhemidi/vault-ui/tree/master/src/components/Toast/"
    click LazyLoad "https://github.com/mohamedhemidi/vault-ui/tree/master/src/components/LazyLoadImage/"
    click CSS "https://github.com/mohamedhemidi/vault-ui/blob/master/css-module.d.ts"
    click Build "https://github.com/mohamedhemidi/vault-ui/blob/master/rollup.config.js"
    click TypeDef "https://github.com/mohamedhemidi/vault-ui/blob/master/tsconfig.json"
    click Entry "https://github.com/mohamedhemidi/vault-ui/blob/master/src/index.ts"
    click CompEntry "https://github.com/mohamedhemidi/vault-ui/blob/master/src/components/index.ts"
    
    %% Styles
    classDef core fill:#2196F3,stroke:#1976D2,color:white
    classDef input fill:#4CAF50,stroke:#388E3C,color:white
    classDef interactive fill:#FF9800,stroke:#F57C00,color:white
    classDef feedback fill:#9C27B0,stroke:#7B1FA2,color:white
    classDef media fill:#607D8B,stroke:#455A64,color:white
    classDef system fill:#9E9E9E,stroke:#757575,color:white
    
    %% Legend
    subgraph Legend
        direction TB
        L1["Core Components"]:::core
        L2["Input Components"]:::input
        L3["Interactive Components"]:::interactive
        L4["Feedback Components"]:::feedback
        L5["Media Components"]:::media
        L6["System Components"]:::system
    end
```
