@passui/react 0.1.16 → 0.1.17
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
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { AnimatePresence, motion } from "motion/react"
|
|
2
|
+
import { spring } from "../../motion/transitions"
|
|
2
3
|
import { useEffect, useState } from "react"
|
|
3
4
|
|
|
4
5
|
interface Tip {
|
|
@@ -140,13 +141,11 @@ export function TooltipHost() {
|
|
|
140
141
|
animate={{ opacity: 1, scale: 1, y: 0 }}
|
|
141
142
|
exit={{
|
|
142
143
|
opacity: 0,
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
type: "spring",
|
|
147
|
-
stiffness: 520,
|
|
148
|
-
damping: 34,
|
|
144
|
+
scale: 0.96,
|
|
145
|
+
y: tip.above ? 2 : -2,
|
|
146
|
+
transition: spring.snappy,
|
|
149
147
|
}}
|
|
148
|
+
transition={spring.snappy}
|
|
150
149
|
>
|
|
151
150
|
{tip.text}
|
|
152
151
|
</motion.div>
|