@edc-motor/ui 0.4.23 → 0.4.24

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@edc-motor/ui",
3
- "version": "0.4.23",
3
+ "version": "0.4.24",
4
4
  "description": "EdC Motor — componentes públicos Vue 3 + tokens SCSS para webs de juegos de mesa (paquete fuente: lo compila el consumidor con Vite)",
5
5
  "license": "GPL-3.0-only",
6
6
  "type": "module",
@@ -306,6 +306,7 @@
306
306
  font-family: var(--font-special, inherit);
307
307
  font-size: $fs-32;
308
308
  font-style: italic;
309
+ font-weight: $k-fw-semibold;
309
310
  color: $accent-500;
310
311
 
311
312
  // La cita llega como richtext y .rich-content fija su propio cuerpo
@@ -331,10 +332,16 @@
331
332
  padding-left: 1.2em;
332
333
  display: grid;
333
334
  gap: $space-1;
335
+ font-weight: $k-fw-medium;
334
336
 
335
337
  a { color: $accent-500; text-decoration: none; }
336
338
  a:hover { text-decoration: underline; }
337
339
 
340
+ // Tamaño por nivel: 24 → 22 (sin token entre 20 y 24) → 20 (3 o más).
341
+ .block__index-level-1 { font-size: $fs-24; }
342
+ .block__index-level-2 { font-size: 22px; }
343
+ .block__index-level-3 { font-size: $fs-20; }
344
+
338
345
  // Entradas de bloques hijos: sangradas bajo su padre.
339
346
  .block__index-child { margin-left: $space-5; }
340
347
  }
@@ -14,10 +14,14 @@ defineProps<{
14
14
  <h2 v-if="settings.title" class="block__title">{{ settings.title }}</h2>
15
15
  <p v-if="settings.subtitle" class="block__subtitle">{{ settings.subtitle }}</p>
16
16
  <component :is="settings.numbered ? 'ol' : 'ul'" class="block__index">
17
+ <!-- Nivel visual por profundidad (tamaños decrecientes; 3 = 3 o más) -->
17
18
  <li
18
19
  v-for="item in data.items ?? []"
19
20
  :key="item.id"
20
- :class="{ 'block__index-child': (item.depth ?? 0) > 0 }"
21
+ :class="[
22
+ `block__index-level-${Math.min((item.depth ?? 0) + 1, 3)}`,
23
+ { 'block__index-child': (item.depth ?? 0) > 0 },
24
+ ]"
21
25
  >
22
26
  <a :href="`#block-${item.id}`">{{ item.label }}</a>
23
27
  </li>