@passui/react 0.1.15 → 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
|
@@ -90,7 +90,7 @@ function ConfirmCard({ dialog }: { dialog: PendingDialog }) {
|
|
|
90
90
|
initial={{ opacity: 0 }}
|
|
91
91
|
animate={{ opacity: 1 }}
|
|
92
92
|
exit={{ opacity: 0 }}
|
|
93
|
-
transition={
|
|
93
|
+
transition={spring.smooth}
|
|
94
94
|
onClick={() => settleDialog(false)}
|
|
95
95
|
/>
|
|
96
96
|
<motion.div
|
|
@@ -107,7 +107,7 @@ function ConfirmCard({ dialog }: { dialog: PendingDialog }) {
|
|
|
107
107
|
opacity: 0,
|
|
108
108
|
scale: 0.94,
|
|
109
109
|
y: 6,
|
|
110
|
-
transition:
|
|
110
|
+
transition: spring.snappy,
|
|
111
111
|
}}
|
|
112
112
|
transition={spring.bouncy}
|
|
113
113
|
>
|
|
@@ -7,6 +7,7 @@ import {
|
|
|
7
7
|
import { createPortal } from "react-dom"
|
|
8
8
|
import { Button } from "@passui/react/button"
|
|
9
9
|
import { cn } from "@passui/react/cn"
|
|
10
|
+
import { spring } from "../../motion/transitions"
|
|
10
11
|
import {
|
|
11
12
|
createContext,
|
|
12
13
|
useContext,
|
|
@@ -129,12 +130,11 @@ export function Dialog({
|
|
|
129
130
|
: 0,
|
|
130
131
|
opacity: 0,
|
|
131
132
|
}}
|
|
132
|
-
transition={
|
|
133
|
-
|
|
134
|
-
? 0
|
|
135
|
-
:
|
|
136
|
-
|
|
137
|
-
}}
|
|
133
|
+
transition={
|
|
134
|
+
reducedMotion
|
|
135
|
+
? { duration: 0 }
|
|
136
|
+
: spring.smooth
|
|
137
|
+
}
|
|
138
138
|
className="overflow-hidden"
|
|
139
139
|
>
|
|
140
140
|
{body}
|
|
@@ -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>
|