@maboussoleaidant/design-system 0.1.5 → 0.1.7

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 CHANGED
@@ -23,24 +23,23 @@ Ou en import CSS :
23
23
  @import "@maboussoleaidant/design-system";
24
24
  ```
25
25
 
26
- ### Option 2 : Avec Tailwind JIT (recommandé pour les apps)
26
+ ### Option 2 : Avec Tailwind v4 (recommandé pour les apps)
27
27
 
28
- Pour les applications Angular/React/Astro qui utilisent Tailwind, **utilisez le JIT** pour avoir accès à toutes les classes Tailwind avec les tokens MBA :
28
+ Pour les applications Angular/React/Astro qui utilisent Tailwind v4, importez le **preset** pour avoir accès à toutes les classes Tailwind JIT avec les tokens MBA :
29
29
 
30
30
  ```css
31
31
  /* styles.css */
32
32
  @import "@maboussoleaidant/design-system";
33
33
  @import "tailwindcss";
34
-
35
- @theme {
36
- /* Copier le mapping depuis src/tailwind.css ou voir la doc Storybook */
37
- --color-primary-500: var(--mba-color-primary-500);
38
- --spacing-sm: var(--mba-space-sm);
39
- /* ... */
40
- }
34
+ @import "@maboussoleaidant/design-system/preset";
41
35
  ```
42
36
 
43
- > **Note :** Le fichier `mba-tailwind.css` pré-compilé ne contient que les classes Tailwind utilisées dans le Storybook du DS. Pour un projet réel, utilisez le JIT ci-dessus.
37
+ Cela vous donne accès à :
38
+ - Toutes les classes Tailwind générées par le JIT (h-screen, animate-spin, etc.)
39
+ - Les tokens MBA mappés : `bg-primary-500`, `p-sm`, `rounded-xs`, `shadow-md`, etc.
40
+ - Les composants `.mba-*` du Design System
41
+
42
+ > **Note :** Le fichier `mba-tailwind.css` est pré-compilé pour le Storybook uniquement. Utilisez le preset ci-dessus pour vos projets.
44
43
 
45
44
  ### Option 3 : Tokens uniquement
46
45
 
@@ -1841,6 +1841,7 @@ button.mba-input-icon__icon:hover {
1841
1841
  --radius-sm: var(--mba-radius-sm);
1842
1842
  --radius-md: var(--mba-radius-md);
1843
1843
  --radius-lg: var(--mba-radius-lg);
1844
+ --animate-spin: spin 1s linear infinite;
1844
1845
  --default-transition-duration: 150ms;
1845
1846
  --default-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
1846
1847
  --default-font-family: var(--font-sans);
@@ -2241,6 +2242,9 @@ button.mba-input-icon__icon:hover {
2241
2242
  .h-32 {
2242
2243
  height: var(--spacing-32);
2243
2244
  }
2245
+ .h-screen {
2246
+ height: 100vh;
2247
+ }
2244
2248
  .w-4 {
2245
2249
  width: var(--spacing-4);
2246
2250
  }
@@ -2327,6 +2331,9 @@ button.mba-input-icon__icon:hover {
2327
2331
  --tw-translate-y: calc(calc(1/2 * 100%) * -1);
2328
2332
  translate: var(--tw-translate-x) var(--tw-translate-y);
2329
2333
  }
2334
+ .animate-spin {
2335
+ animation: var(--animate-spin);
2336
+ }
2330
2337
  .cursor-pointer {
2331
2338
  cursor: pointer;
2332
2339
  }
@@ -2553,6 +2560,9 @@ button.mba-input-icon__icon:hover {
2553
2560
  .px-sm {
2554
2561
  padding-inline: var(--spacing-sm);
2555
2562
  }
2563
+ .px-xs {
2564
+ padding-inline: var(--spacing-xs);
2565
+ }
2556
2566
  .px-xxs {
2557
2567
  padding-inline: var(--spacing-xxs);
2558
2568
  }
@@ -2571,6 +2581,9 @@ button.mba-input-icon__icon:hover {
2571
2581
  .pb-sm {
2572
2582
  padding-bottom: var(--spacing-sm);
2573
2583
  }
2584
+ .pl-md {
2585
+ padding-left: var(--spacing-md);
2586
+ }
2574
2587
  .text-center {
2575
2588
  text-align: center;
2576
2589
  }
@@ -2917,6 +2930,11 @@ button.mba-input-icon__icon:hover {
2917
2930
  syntax: "*";
2918
2931
  inherits: false;
2919
2932
  }
2933
+ @keyframes spin {
2934
+ to {
2935
+ transform: rotate(360deg);
2936
+ }
2937
+ }
2920
2938
  @layer properties {
2921
2939
  @supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {
2922
2940
  *, ::before, ::after, ::backdrop {