@eqtylab/equality 4.10.1 → 4.10.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.
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
Notable changes to Equality are recorded here, following [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
|
|
4
4
|
|
|
5
|
+
## 4.10.2 - 2026-10-06
|
|
6
|
+
|
|
7
|
+
### Fixed
|
|
8
|
+
|
|
9
|
+
- `Toast` slides in and out past the same viewport edge, fading as it goes, instead of rising
|
|
10
|
+
from the bottom and leaving to the right. It eases in over 400ms rather than snapping in at
|
|
11
|
+
150ms, and only fades when the user prefers reduced motion. A swiped-away toast fades where
|
|
12
|
+
it was released.
|
|
13
|
+
|
|
5
14
|
## 4.10.1 - 2026-10-02
|
|
6
15
|
|
|
7
16
|
### Fixed
|
|
@@ -50,34 +50,10 @@
|
|
|
50
50
|
border-radius: var(--radius-md, 0.375rem);
|
|
51
51
|
padding: calc(0.25rem * 4);
|
|
52
52
|
padding-right: calc(0.25rem * 8);
|
|
53
|
-
&[data-state="open"] {
|
|
54
|
-
animation: enter var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none);
|
|
55
|
-
}
|
|
56
|
-
&[data-state="open"] {
|
|
57
|
-
--tw-enter-translate-y: calc(1*-100%);
|
|
58
|
-
}
|
|
59
|
-
@media (width >= 40rem) {
|
|
60
|
-
&[data-state="open"] {
|
|
61
|
-
--tw-enter-translate-y: calc(1*100%);
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
&[data-state="closed"] {
|
|
65
|
-
animation: exit var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none);
|
|
66
|
-
}
|
|
67
|
-
&[data-state="closed"] {
|
|
68
|
-
--tw-exit-opacity: calc(80/100);
|
|
69
|
-
--tw-exit-opacity: .8;
|
|
70
|
-
}
|
|
71
|
-
&[data-state="closed"] {
|
|
72
|
-
--tw-exit-translate-x: calc(1*100%);
|
|
73
|
-
}
|
|
74
53
|
&[data-swipe="end"] {
|
|
75
54
|
--tw-translate-x: var(--radix-toast-swipe-end-x);
|
|
76
55
|
translate: var(--tw-translate-x) var(--tw-translate-y);
|
|
77
56
|
}
|
|
78
|
-
&[data-swipe="end"] {
|
|
79
|
-
animation: exit var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none);
|
|
80
|
-
}
|
|
81
57
|
&[data-swipe="move"] {
|
|
82
58
|
--tw-translate-x: var(--radix-toast-swipe-move-x);
|
|
83
59
|
translate: var(--tw-translate-x) var(--tw-translate-y);
|
|
@@ -89,6 +65,39 @@
|
|
|
89
65
|
--tw-translate-x: calc(0.25rem * 0);
|
|
90
66
|
translate: var(--tw-translate-x) var(--tw-translate-y);
|
|
91
67
|
}
|
|
68
|
+
--toast-offset: calc(-100% - 1rem);
|
|
69
|
+
@media (width >= 40rem) {
|
|
70
|
+
--toast-offset: calc(100% + 1rem);
|
|
71
|
+
}
|
|
72
|
+
@media (prefers-reduced-motion: reduce) {
|
|
73
|
+
--toast-offset: 0;
|
|
74
|
+
}
|
|
75
|
+
&[data-state='open'] {
|
|
76
|
+
animation: toast-in 400ms cubic-bezier(0.16, 1, 0.3, 1);
|
|
77
|
+
}
|
|
78
|
+
&[data-state='closed'] {
|
|
79
|
+
animation: toast-out 250ms cubic-bezier(0.4, 0, 1, 1) forwards;
|
|
80
|
+
}
|
|
81
|
+
&[data-swipe='end'] {
|
|
82
|
+
animation: toast-swipe-out 150ms ease-out forwards;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
@keyframes toast-in {
|
|
86
|
+
from {
|
|
87
|
+
opacity: 0;
|
|
88
|
+
transform: translateY(var(--toast-offset));
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
@keyframes toast-out {
|
|
92
|
+
to {
|
|
93
|
+
opacity: 0;
|
|
94
|
+
transform: translateY(var(--toast-offset));
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
@keyframes toast-swipe-out {
|
|
98
|
+
to {
|
|
99
|
+
opacity: 0;
|
|
100
|
+
}
|
|
92
101
|
}
|
|
93
102
|
.toast--default {
|
|
94
103
|
border-color: var(--color-badge-text-primary, color(display-p3 0.1608 0.1145 0.3417));
|
|
@@ -301,17 +310,3 @@
|
|
|
301
310
|
syntax: "*";
|
|
302
311
|
inherits: false;
|
|
303
312
|
}
|
|
304
|
-
@keyframes enter {
|
|
305
|
-
from {
|
|
306
|
-
opacity: var(--tw-enter-opacity,1);
|
|
307
|
-
transform: translate3d(var(--tw-enter-translate-x,0),var(--tw-enter-translate-y,0),0)scale3d(var(--tw-enter-scale,1),var(--tw-enter-scale,1),var(--tw-enter-scale,1))rotate(var(--tw-enter-rotate,0));
|
|
308
|
-
filter: blur(var(--tw-enter-blur,0));
|
|
309
|
-
}
|
|
310
|
-
}
|
|
311
|
-
@keyframes exit {
|
|
312
|
-
to {
|
|
313
|
-
opacity: var(--tw-exit-opacity,1);
|
|
314
|
-
transform: translate3d(var(--tw-exit-translate-x,0),var(--tw-exit-translate-y,0),0)scale3d(var(--tw-exit-scale,1),var(--tw-exit-scale,1),var(--tw-exit-scale,1))rotate(var(--tw-exit-rotate,0));
|
|
315
|
-
filter: blur(var(--tw-exit-blur,0));
|
|
316
|
-
}
|
|
317
|
-
}
|