origam 2.37.34 → 2.37.36

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.
Files changed (34) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/dist/src/assets/css/main.css +1 -1
  3. package/dist/src/assets/css/tokens/dark.css +4 -0
  4. package/dist/src/assets/css/tokens/light.css +2 -0
  5. package/dist/src/assets/scss/tokens/_dark.scss +4 -0
  6. package/dist/src/assets/scss/tokens/_light.scss +2 -0
  7. package/dist/src/components/Alert/OrigamAlert.vue +4 -4
  8. package/dist/src/components/Badge/OrigamBadge.vue +4 -4
  9. package/dist/src/components/Btn/OrigamBtn.vue +2 -2
  10. package/dist/src/components/Chart/OrigamChartBoxPlot.vue +2 -1
  11. package/dist/src/components/Chart/OrigamChartBullet.vue +2 -1
  12. package/dist/src/components/Chart/OrigamChartCandlestick.vue +2 -1
  13. package/dist/src/components/Chart/OrigamChartCartesian.vue +2 -2
  14. package/dist/src/components/Chart/OrigamChartHeatmap.vue +2 -1
  15. package/dist/src/components/Chart/OrigamChartHoneycomb.vue +2 -1
  16. package/dist/src/components/Chart/OrigamChartMap.vue +2 -1
  17. package/dist/src/components/Chart/OrigamChartPareto.vue +2 -1
  18. package/dist/src/components/Chart/OrigamChartPictorial.vue +2 -1
  19. package/dist/src/components/Chart/OrigamChartPolar.vue +2 -1
  20. package/dist/src/components/Chart/OrigamChartPolarBar.vue +2 -1
  21. package/dist/src/components/Chart/OrigamChartPyramid.vue +2 -1
  22. package/dist/src/components/Chart/OrigamChartRadar.vue +2 -1
  23. package/dist/src/components/Chart/OrigamChartSankey.vue +2 -1
  24. package/dist/src/components/Chart/OrigamChartSparkline.vue +2 -1
  25. package/dist/src/components/Chart/OrigamChartStreamgraph.vue +2 -1
  26. package/dist/src/components/Chart/OrigamChartSunburst.vue +2 -1
  27. package/dist/src/components/Chart/OrigamChartTreemap.vue +2 -1
  28. package/dist/src/components/Chart/OrigamChartVariwide.vue +2 -1
  29. package/dist/src/components/Chart/OrigamChartWordCloud.vue +2 -1
  30. package/dist/src/consts/Chart/chart.const.cjs +3 -2
  31. package/dist/src/consts/Chart/chart.const.d.ts +13 -0
  32. package/dist/src/consts/Chart/chart.const.js +1 -0
  33. package/dist/src/types/tokens.type.d.ts +1 -1
  34. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -18,6 +18,34 @@ This project follows [Semantic Versioning](https://semver.org).
18
18
 
19
19
  ## [Unreleased]
20
20
 
21
+ ## [2.37.36] - 2026-11-04
22
+
23
+ ### Fixed — Charts : le `<svg>` porte `role="group"` au lieu de `role="img"` (#1318, #1153)
24
+
25
+ `role="img"` rend ses descendants présentationnels. Or les points des charts sont des `role="button"` focusables : axe signalait `nested-interactive`, et un lecteur d'écran pouvait ne jamais annoncer ces points.
26
+
27
+ - Nouvelle constante `CHART_SVG_ROLE = 'group'` (`consts/Chart/chart.const.ts`), appliquée au `<svg>` racine des 20 charts qui ont des points focusables. `OrigamChartGauge` garde `role="img"`, car il n'a aucun point focusable.
28
+ - Le nom accessible (`aria-labelledby`) et la navigation clavier (Tab par point, Entrée / Espace) sont inchangés.
29
+ - Vérifié : nouvelle spec `chart-nested-interactive.spec.ts`, inscrite dans `GREEN_SPECS`, qui balaie 22 stories × 4 Variants. Rouge sur le parent pour 21 stories sur 22, Gauge étant la seule verte ; vert pour les 22 avec le correctif. axe donne 0 `nested-interactive`. TU Chart 537/537 (PR #1326).
30
+ - Limite : un chart reste un arrêt de tabulation par point (de 52 à 504 arrêts). L'ergonomie clavier au niveau du chart n'est pas traitée ici.
31
+
32
+ ## [2.37.35] - 2026-11-04
33
+
34
+ ### Fixed — `OrigamAlert` / `OrigamBadge` : la visibilité n'est plus lue comme un état hover/active au repos (#1307)
35
+
36
+ `OrigamAlert` avait `hover` à `true` par défaut et passait `modelValue` (la visibilité) à `useStateEffect` comme état actif : au repos, le fond utilisait donc `bgHover` / `bgActive`. `OrigamBadge` avait le même câblage `modelValue` → active.
37
+
38
+ - Alert : `hover` vaut désormais `false` par défaut, et la visibilité n'émet plus ni classe `--active` ni effet.
39
+ - Badge : la classe marqueur `--active` est conservée, mais elle ne pilote plus l'effet de couleur.
40
+ - Vérifié : la spec e2e `alert-rest-state.spec.ts` est rouge sur le parent (classes `--hover --active` au repos) et verte avec le correctif (PR #1320). Pour Badge, la règle `bgActive` a été mesurée sur le parent, mais son A/B n'a pas été rejoué.
41
+
42
+ ### Added — `OrigamBtn` : jetons d'alignement du contenu (#1304)
43
+
44
+ - `--origam-btn__content---justify-content` et `--origam-btn__content---text-align`, déclarés à `center` (light, dark, bloc media, jumeaux SCSS, `tokens.type.ts`). Le rendu par défaut est inchangé.
45
+ - Vérifié : la spec `btn-content-align.spec.ts` est rouge sur le parent et verte avec le correctif ; les baselines VRT Btn sont inchangées en CI (PR #1322).
46
+
47
+ > Exception à la règle « un ticket = un patch » : #1307 et #1304 ont été mergés à la suite avant le bump, ils sortent donc ensemble dans cette version.
48
+
21
49
  ## [2.37.34] - 2026-11-04
22
50
 
23
51
  ### Security — `origam/nuxt` : le cookie de marque est validé contre les thèmes installés (#1120)