@zevra/ui 0.12.0 → 0.12.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.
Files changed (2) hide show
  1. package/package.json +3 -2
  2. package/src/motion.js +5 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zevra/ui",
3
- "version": "0.12.0",
3
+ "version": "0.12.2",
4
4
  "description": "Design system Zevra « Encre & Papier » — tokens, CSS des composants et logos officiels.",
5
5
  "license": "UNLICENSED",
6
6
  "private": false,
@@ -18,7 +18,8 @@
18
18
  "type": "module",
19
19
  "packageManager": "pnpm@10.29.3",
20
20
  "sideEffects": [
21
- "*.css"
21
+ "*.css",
22
+ "./src/motion.js"
22
23
  ],
23
24
  "exports": {
24
25
  ".": "./tokens/index.js",
package/src/motion.js CHANGED
@@ -34,9 +34,11 @@
34
34
  io.unobserve(e.target);
35
35
  }
36
36
  },
37
- /* Déclenche un peu AVANT que l'élément soit franchement visible :
38
- * l'entrée accompagne l'arrivée au lieu de la suivre. */
39
- { rootMargin: '0px 0px -8% 0px', threshold: 0.01 }
37
+ /* Déclenche un peu AVANT l'entrée au viewport (marge basse positive) :
38
+ * l'entrée accompagne l'arrivée, et un saut de page (ancre de
39
+ * sommaire, molette rapide) n'atterrit jamais sur un écran vide qui
40
+ * attendrait le prochain cran de défilement. */
41
+ { rootMargin: '0px 0px 12% 0px', threshold: 0.01 }
40
42
  );
41
43
 
42
44
  for (const el of document.querySelectorAll(ENTREES)) {