mautourco-components 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -9
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
# Motorco - Bibliothèque de composants
|
|
2
2
|
|
|
3
|
-
Ce
|
|
3
|
+
Ce dépôt contient la bibliothèque de composants utilisée pour la refonte de B2B_react. Le package est publié sur npm afin de faciliter son intégration continue dans le projet.
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## Installation
|
|
6
6
|
|
|
7
|
-
### Dans
|
|
7
|
+
### Dans B2B_react
|
|
8
8
|
```bash
|
|
9
9
|
npm install mautourco-components
|
|
10
10
|
```
|
|
11
11
|
|
|
12
|
-
##
|
|
12
|
+
## Utilisation des composants
|
|
13
13
|
|
|
14
14
|
### 1. Importer les styles
|
|
15
15
|
```tsx
|
|
@@ -123,7 +123,7 @@ function App() {
|
|
|
123
123
|
}
|
|
124
124
|
```
|
|
125
125
|
|
|
126
|
-
##
|
|
126
|
+
## Composants disponibles
|
|
127
127
|
|
|
128
128
|
### Atoms (Composants de base)
|
|
129
129
|
- `Input` - Champ de saisie avec variantes
|
|
@@ -151,14 +151,14 @@ function App() {
|
|
|
151
151
|
- `CheckIcon`, `ChevronIcon`, `CloseIcon`
|
|
152
152
|
- `SearchIcon`, `SettingsIcon`, `UserIcon`
|
|
153
153
|
|
|
154
|
-
##
|
|
154
|
+
## Mise à jour du package
|
|
155
155
|
|
|
156
156
|
```bash
|
|
157
157
|
# Dans votre projet
|
|
158
158
|
npm update mautourco-components
|
|
159
159
|
```
|
|
160
160
|
|
|
161
|
-
##
|
|
161
|
+
## Développement du package
|
|
162
162
|
|
|
163
163
|
### Scripts disponibles
|
|
164
164
|
```bash
|
|
@@ -174,13 +174,13 @@ npm publish # Publication sur npm (après login)
|
|
|
174
174
|
3. `npm run build:package`
|
|
175
175
|
4. `npm publish`
|
|
176
176
|
|
|
177
|
-
##
|
|
177
|
+
## Notes importantes
|
|
178
178
|
|
|
179
179
|
- **Styles** : Les composants nécessitent l'import des fichiers CSS correspondants
|
|
180
180
|
- **TypeScript** : Tous les composants sont typés
|
|
181
181
|
- **Design tokens** : Générés automatiquement depuis le dossier `tokens/`
|
|
182
182
|
|
|
183
|
-
##
|
|
183
|
+
## Dépannage
|
|
184
184
|
|
|
185
185
|
- **Composant non trouvé** : Vérifiez qu'il est exporté dans `src/index.ts`
|
|
186
186
|
- **Styles manquants** : Assurez-vous d'importer les fichiers CSS nécessaires
|