@maboussoleaidant/design-system 0.1.36 → 0.1.37

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/AGENTS.md CHANGED
@@ -261,6 +261,8 @@ Liste des classes racines (les sous-éléments BEM `__*` sont internes et ne son
261
261
  - **Accordéons** : `.mba-accordion`, `.mba-accordion--full-width`, `.mba-accordion--line`, `.mba-accordion--open`, `.mba-accordion--partenaire`, `.mba-accordion-group`
262
262
  - **Pagination** : `.mba-dot`, `.mba-dots`, `.mba-pagination`, `.mba-pagination-arrow`, `.mba-pagination-ellipsis`, `.mba-pagination-item`
263
263
  - **Liens** : `.mba-link`
264
+ - **Tabs** : `.mba-tab`, `.mba-tab-partner`
265
+ - **Tags (badges)** : `.mba-tag`, `.mba-tag--bleuet`, `.mba-tag--green`, `.mba-tag--grey`, `.mba-tag--lavender`, `.mba-tag--narcisse`, `.mba-tag--oranger`, `.mba-tag--primary`, `.mba-tag--red`, `.mba-tag--rounded`, `.mba-tag--sm`, `.mba-tag--yellow`
264
266
  - **Flèches / Décorations** : `.mba-arrow`
265
267
  <!-- AUTO-GENERATED:components-list END -->
266
268
 
@@ -131,6 +131,17 @@
131
131
  --mba-color-pastel-narcisse-dark: #FFEBC3;
132
132
  --mba-color-pastel-oranger-dark: #FFDBC8;
133
133
 
134
+ /* ===========================================
135
+ TAG BACKGROUNDS
136
+ Fonds des tags/badges : plus foncés que les pastels
137
+ de base pour l'accessibilité (source Figma).
138
+ Primary/Grey réutilisent primary-100 / grey-50.
139
+ =========================================== */
140
+ --mba-color-tag-bleuet: #E0E9F8;
141
+ --mba-color-tag-lavender: #E3E1F8;
142
+ --mba-color-tag-oranger: #FCEAE0;
143
+ --mba-color-tag-narcisse: #F8EEDA;
144
+
134
145
  /* ===========================================
135
146
  CUSTOM - Beige (Background cards)
136
147
  =========================================== */
@@ -2947,7 +2958,227 @@ button.mba-input-icon__icon:hover {
2947
2958
 
2948
2959
  /* end @layer components */
2949
2960
 
2950
- /* @import "./_tags.css"; */
2961
+ /**
2962
+ * MBA Design System - Tabs
2963
+ *
2964
+ * Classes: .mba-tab, .mba-tab-partner, .mba-tabs
2965
+ * Usage: recherches populaires, badges de type article, filtres rapides
2966
+ * Couleurs: Primary 500 (MBA), Primary 900 (Partenaires)
2967
+ * Source: Design System Figma (Tabs - Lina-7347)
2968
+ */
2969
+
2970
+ @layer components {
2971
+
2972
+ /* ===========================================
2973
+ TAB (Enabled - état par défaut)
2974
+ height: 38px, padding: 8px 16px, pilule
2975
+ =========================================== */
2976
+ .mba-tab {
2977
+ position: relative;
2978
+ isolation: isolate;
2979
+ display: inline-flex;
2980
+ width: fit-content;
2981
+ height: 38px;
2982
+ padding: var(--mba-space-xs) var(--mba-space-sm);
2983
+ justify-content: center;
2984
+ align-items: center;
2985
+ gap: var(--mba-space-xs);
2986
+ font-family: var(--mba-font-family-text);
2987
+ font-size: var(--mba-font-size-xs);
2988
+ font-weight: var(--mba-font-weight-semibold);
2989
+ line-height: var(--mba-leading-snug);
2990
+ text-decoration: none;
2991
+ border: 1px solid transparent;
2992
+ border-radius: var(--mba-radius-full);
2993
+ cursor: pointer;
2994
+ transition: color var(--mba-transition-base);
2995
+ user-select: none;
2996
+ white-space: nowrap;
2997
+
2998
+ background-color: transparent;
2999
+ color: var(--mba-color-primary-900);
3000
+ }
3001
+
3002
+ /* Fond de la pilule active : s'étend en diagonale du centre vers les coins */
3003
+ .mba-tab::before {
3004
+ content: "";
3005
+ position: absolute;
3006
+ inset: 0;
3007
+ z-index: -1;
3008
+ border-radius: inherit;
3009
+ background-color: var(--mba-color-primary-500);
3010
+ transform: scale(0);
3011
+ transform-origin: center;
3012
+ transition: transform var(--mba-transition-base);
3013
+ }
3014
+
3015
+ /* ===========================================
3016
+ ACTIVATED (sélectionné)
3017
+ MBA: Primary 500
3018
+ =========================================== */
3019
+ .mba-tab.is-active,
3020
+ .mba-tab[aria-pressed="true"],
3021
+ .mba-tab[aria-selected="true"] {
3022
+ color: var(--mba-color-white);
3023
+ }
3024
+
3025
+ .mba-tab.is-active::before,
3026
+ .mba-tab[aria-pressed="true"]::before,
3027
+ .mba-tab[aria-selected="true"]::before {
3028
+ transform: scale(1);
3029
+ }
3030
+
3031
+ /* Variante Partenaires: Primary Pro 800 */
3032
+ .mba-tab-partner::before {
3033
+ background-color: var(--mba-color-primary-pro-800);
3034
+ }
3035
+
3036
+ /* ===========================================
3037
+ DISABLED
3038
+ =========================================== */
3039
+ .mba-tab:disabled,
3040
+ .mba-tab.is-disabled {
3041
+ background-color: var(--mba-color-grey-50);
3042
+ color: var(--mba-color-grey-400);
3043
+ cursor: not-allowed;
3044
+ pointer-events: none;
3045
+ }
3046
+
3047
+ /* ===========================================
3048
+ TABS - Groupe horizontal (gap SM)
3049
+ =========================================== */
3050
+ .mba-tabs {
3051
+ display: flex;
3052
+ flex-wrap: wrap;
3053
+ align-items: center;
3054
+ gap: var(--mba-space-sm);
3055
+ }
3056
+
3057
+ }
3058
+
3059
+ /* @layer components */
3060
+
3061
+ /**
3062
+ * MBA Design System - Tags (Badges)
3063
+ *
3064
+ * Étiquettes / badges. Peuvent contenir une icône à gauche et/ou à droite.
3065
+ *
3066
+ * Classes:
3067
+ * - .mba-tag - Tag de base (taille Md, couleur Primary)
3068
+ * - Tailles: .mba-tag--sm (12px) · défaut Md (14px)
3069
+ * - Forme: .mba-tag--rounded (pilule, radius 24px) · défaut carré (radius 8px)
3070
+ * - Couleurs pastel: .mba-tag--primary (défaut), --bleuet, --lavender,
3071
+ * --oranger, --narcisse, --grey
3072
+ * - Couleurs sémantiques: .mba-tag--red, --green, --yellow
3073
+ *
3074
+ * Icônes: ajouter un <span class="material-symbols-rounded"> avant/après le
3075
+ * label (16px, hérite de la couleur du texte).
3076
+ *
3077
+ * Usage:
3078
+ * <span class="mba-tag mba-tag--bleuet">
3079
+ * <span class="material-symbols-rounded" aria-hidden="true">location_on</span>
3080
+ * Label
3081
+ * </span>
3082
+ *
3083
+ * Note: fonds plus foncés que les pastels de base pour l'accessibilité.
3084
+ * Source: Design System Figma.
3085
+ */
3086
+
3087
+ @layer components {
3088
+
3089
+ .mba-tag {
3090
+ display: inline-flex;
3091
+ align-items: center;
3092
+ justify-content: center;
3093
+ gap: var(--mba-space-xxs);
3094
+ width: fit-content;
3095
+ max-width: 100%;
3096
+ padding: var(--mba-space-xxs) var(--mba-space-xs);
3097
+ border-radius: var(--mba-radius-xs);
3098
+ font-family: var(--mba-font-family-text);
3099
+ font-weight: var(--mba-font-weight-semibold);
3100
+ font-size: var(--mba-font-size-xxs); /* Md (défaut) = 14px */
3101
+ line-height: normal;
3102
+ white-space: nowrap;
3103
+ color: var(--mba-color-grey-800);
3104
+ background-color: var(--mba-color-primary-100);
3105
+ }
3106
+
3107
+ /* Icônes internes */
3108
+ .mba-tag .material-symbols-rounded {
3109
+ font-size: 16px;
3110
+ flex-shrink: 0;
3111
+ color: inherit;
3112
+ }
3113
+
3114
+ /* ===========================================
3115
+ TAILLES
3116
+ =========================================== */
3117
+ .mba-tag--sm {
3118
+ font-size: var(--mba-font-size-xxxs); /* 12px */
3119
+ }
3120
+
3121
+ /* ===========================================
3122
+ FORME - Rounded (pilule)
3123
+ =========================================== */
3124
+ .mba-tag--rounded {
3125
+ border-radius: var(--mba-radius-md);
3126
+ }
3127
+
3128
+ /* ===========================================
3129
+ COULEURS - Pastels
3130
+ =========================================== */
3131
+ .mba-tag--primary {
3132
+ background-color: var(--mba-color-primary-100);
3133
+ color: var(--mba-color-grey-800);
3134
+ }
3135
+
3136
+ .mba-tag--bleuet {
3137
+ background-color: var(--mba-color-tag-bleuet);
3138
+ color: var(--mba-color-grey-800);
3139
+ }
3140
+
3141
+ .mba-tag--lavender {
3142
+ background-color: var(--mba-color-tag-lavender);
3143
+ color: var(--mba-color-grey-800);
3144
+ }
3145
+
3146
+ .mba-tag--oranger {
3147
+ background-color: var(--mba-color-tag-oranger);
3148
+ color: var(--mba-color-grey-800);
3149
+ }
3150
+
3151
+ .mba-tag--narcisse {
3152
+ background-color: var(--mba-color-tag-narcisse);
3153
+ color: var(--mba-color-grey-800);
3154
+ }
3155
+
3156
+ .mba-tag--grey {
3157
+ background-color: var(--mba-color-grey-50);
3158
+ color: var(--mba-color-grey-800);
3159
+ }
3160
+
3161
+ /* ===========================================
3162
+ COULEURS - Sémantiques
3163
+ =========================================== */
3164
+ .mba-tag--red {
3165
+ background-color: var(--mba-color-error-100);
3166
+ color: var(--mba-color-error-800);
3167
+ }
3168
+
3169
+ .mba-tag--green {
3170
+ background-color: var(--mba-color-success-100);
3171
+ color: var(--mba-color-success-800);
3172
+ }
3173
+
3174
+ .mba-tag--yellow {
3175
+ background-color: var(--mba-color-warning-100);
3176
+ color: var(--mba-color-warning-800);
3177
+ }
3178
+
3179
+ }
3180
+
3181
+ /* end @layer components */
2951
3182
 
2952
3183
  /**
2953
3184
  * MBA Design System - Header