react-modal-navigation 1.0.0 → 1.1.0

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/dist/style.css CHANGED
@@ -29,3 +29,31 @@
29
29
  @media (prefers-reduced-motion: reduce) {
30
30
  .pmn-spinner { animation-duration: 2s; }
31
31
  }
32
+
33
+ /* Placement-aware enter/exit transitions. No layout jumps, reduced-motion safe. */
34
+ @keyframes pmn-fade-in { from { opacity:0 } to { opacity:1 } }
35
+ @keyframes pmn-fade-out { from { opacity:1 } to { opacity:0 } }
36
+ @keyframes pmn-scale-in { from { opacity:0; transform:translateY(10px) scale(.97) } to { opacity:1; transform:none } }
37
+ @keyframes pmn-scale-out { from { opacity:1; transform:none } to { opacity:0; transform:translateY(10px) scale(.97) } }
38
+ @keyframes pmn-right-in { from { transform:translateX(105%) } to { transform:none } }
39
+ @keyframes pmn-right-out { from { transform:none } to { transform:translateX(105%) } }
40
+ @keyframes pmn-left-in { from { transform:translateX(-105%) } to { transform:none } }
41
+ @keyframes pmn-left-out { from { transform:none } to { transform:translateX(-105%) } }
42
+ @keyframes pmn-top-in { from { transform:translateY(-105%) } to { transform:none } }
43
+ @keyframes pmn-top-out { from { transform:none } to { transform:translateY(-105%) } }
44
+ @keyframes pmn-bottom-in { from { transform:translateY(105%) } to { transform:none } }
45
+ @keyframes pmn-bottom-out { from { transform:none } to { transform:translateY(105%) } }
46
+ .pmn-entering{animation:pmn-fade-in var(--pmn-animation-duration) ease-out both}
47
+ .pmn-exiting{animation:pmn-fade-out var(--pmn-animation-duration) ease-in both;pointer-events:none}
48
+ .pmn-entering .pmn-dialog{animation:pmn-scale-in var(--pmn-animation-duration) cubic-bezier(.2,.8,.2,1) both}
49
+ .pmn-exiting .pmn-dialog{animation:pmn-scale-out var(--pmn-animation-duration) ease-in both}
50
+ .pmn-entering.pmn-place-right .pmn-dialog{animation-name:pmn-right-in}
51
+ .pmn-exiting.pmn-place-right .pmn-dialog{animation-name:pmn-right-out}
52
+ .pmn-entering.pmn-place-left .pmn-dialog{animation-name:pmn-left-in}
53
+ .pmn-exiting.pmn-place-left .pmn-dialog{animation-name:pmn-left-out}
54
+ .pmn-entering.pmn-place-top .pmn-dialog{animation-name:pmn-top-in}
55
+ .pmn-exiting.pmn-place-top .pmn-dialog{animation-name:pmn-top-out}
56
+ .pmn-entering.pmn-place-bottom .pmn-dialog{animation-name:pmn-bottom-in}
57
+ .pmn-exiting.pmn-place-bottom .pmn-dialog{animation-name:pmn-bottom-out}
58
+ .pmn-no-animation,.pmn-no-animation .pmn-dialog{animation:none!important}
59
+ @media(prefers-reduced-motion:reduce){.pmn-entering,.pmn-exiting,.pmn-entering .pmn-dialog,.pmn-exiting .pmn-dialog{animation:none!important}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-modal-navigation",
3
- "version": "1.0.0",
3
+ "version": "1.1.0",
4
4
  "description": "React 19 modal navigation with automatic built-in CSS, Promise results and typed hooks",
5
5
  "type": "module",
6
6
  "license": "MIT",