@passui/react 0.1.29 → 0.1.30
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
|
@@ -5,7 +5,7 @@ import { CheckIcon } from "../../icons/icons"
|
|
|
5
5
|
import { cn } from "../../lib/class-names"
|
|
6
6
|
import { belongsToFloatingSurface, registerFloatingLayer } from "../../lib/floating-layers"
|
|
7
7
|
import { screenEdges } from "../../lib/screen-edges"
|
|
8
|
-
import { spring } from "../../motion/transitions"
|
|
8
|
+
import { spring, fluidOvershoot } from "../../motion/transitions"
|
|
9
9
|
import { concealMenuSource } from "./conceal-menu-source"
|
|
10
10
|
import { findMenuTypeaheadIndex, isMenuNavigationKey, nextMenuIndex } from "./menu-navigation"
|
|
11
11
|
import { menuPosition } from "./menu-position"
|
|
@@ -288,7 +288,7 @@ function Menu({ menu }: { menu: OpenMenu }) {
|
|
|
288
288
|
transition={
|
|
289
289
|
reducedMotion
|
|
290
290
|
? { duration: 0 }
|
|
291
|
-
: { ...
|
|
291
|
+
: { ...fluidOvershoot, opacity: { duration: 0.16 } }
|
|
292
292
|
}
|
|
293
293
|
/>
|
|
294
294
|
)}
|
|
@@ -305,18 +305,23 @@ function Menu({ menu }: { menu: OpenMenu }) {
|
|
|
305
305
|
? false
|
|
306
306
|
: {
|
|
307
307
|
opacity: 0,
|
|
308
|
+
scale: 0.96,
|
|
308
309
|
y: menu.source && menu.source.top > position.top ? 4 : -4,
|
|
309
310
|
}
|
|
310
311
|
}
|
|
311
|
-
animate={{ opacity: 1, y: 0 }}
|
|
312
|
+
animate={{ opacity: 1, scale: 1, y: 0 }}
|
|
312
313
|
exit={{
|
|
313
314
|
opacity: 0,
|
|
315
|
+
scale: 0.98,
|
|
314
316
|
transition: {
|
|
315
317
|
duration: reducedMotion ? 0 : 0.06,
|
|
316
318
|
},
|
|
317
319
|
}}
|
|
318
320
|
transition={{
|
|
319
|
-
duration: reducedMotion ? 0 : 0.
|
|
321
|
+
duration: reducedMotion ? 0 : 0.2,
|
|
322
|
+
ease: reducedMotion
|
|
323
|
+
? undefined
|
|
324
|
+
: ([0.4, 0, 0.2, 1] as [number, number, number, number]),
|
|
320
325
|
delay: reducedMotion || !menu.source ? 0 : 0.06,
|
|
321
326
|
}}
|
|
322
327
|
>
|