Paketstruktur
Diese Dokumentation beschreibt die Struktur und Organisation der Pakete in der Smolitux-UI-Bibliothek.
Übersicht
Smolitux-UI ist als Monorepo mit mehreren Paketen organisiert. Jedes Paket hat eine spezifische Verantwortung und kann unabhängig von den anderen Paketen verwendet werden.
smolitux-ui/
├── packages/
│ ├── @smolitux/
│ │ ├── ai/
│ │ ├── blockchain/
│ │ ├── charts/
│ │ ├── community/
│ │ ├── core/
│ │ ├── federation/
│ │ ├── layout/
│ │ ├── media/
│ │ ├── resonance/
│ │ ├── theme/
│ │ └── utils/
│ └── playground/
├── docs/
├── .github/
├── .storybook/
├── package.json
├── lerna.json
└── tsconfig.json
Pakete
@smolitux/utils
Das @smolitux/utils-Paket enthält grundlegende Utility-Funktionen und -Komponenten, die von anderen Paketen verwendet werden.
Struktur
@smolitux/utils/
├── src/
│ ├── components/
│ │ ├── primitives/
│ │ │ ├── Box/
│ │ │ ├── Flex/
│ │ │ ├── Grid/
│ │ │ └── Text/
│ │ └── patterns/
│ │ ├── Button/
│ │ ├── Card/
│ │ ├── Input/
│ │ └── Modal/
│ ├── styling/
│ │ ├── theme/
│ │ ├── colors/
│ │ ├── spacing/
│ │ ├── typography/
│ │ └── responsive/
│ ├── types/
│ │ ├── components/
│ │ ├── theme/
│ │ └── common/
│ └── index.ts
├── package.json
└── tsconfig.json
Verantwortlichkeiten
- Bereitstellung von grundlegenden UI-Primitiven
- Bereitstellung von wiederverwendbaren UI-Patterns
- Bereitstellung von Styling-Utilities
- Bereitstellung von Typdefinitionen
@smolitux/core
Das @smolitux/core-Paket enthält die Kernkomponenten der Smolitux-UI-Bibliothek.
Struktur
@smolitux/core/
├── src/
│ ├── components/
│ │ ├── Alert/
│ │ ├── Badge/
│ │ ├── Button/
│ │ ├── Checkbox/
│ │ ├── ColorPicker/
│ │ ├── FormControl/
│ │ ├── Input/
│ │ ├── Modal/
│ │ ├── Radio/
│ │ ├── Select/
│ │ ├── Switch/
│ │ └── Table/
│ ├── hooks/
│ │ ├── useForm/
│ │ ├── useModal/
│ │ └── useToast/
│ ├── context/
│ │ ├── ThemeContext/
│ │ └── ToastContext/