@eqtylab/equality 3.2.4 → 3.2.6
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/alert-dialog.module.module.css.module.css +0 -39
- package/dist/dialog.module.module.css.module.css +0 -39
- package/dist/drawer.module.module.css.module.css +2 -39
- package/dist/index.cjs +8 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +8 -1
- package/dist/index.js.map +1 -1
- package/dist/loading-overlay.module.module.css.module.css +0 -39
- package/dist/motion-collapsible.module.module.css.module.css +3 -0
- package/dist/sheet.module.module.css.module.css +0 -39
- package/dist/theme-utilities.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2329,6 +2329,7 @@ var MotionCollapsibleContent = ({
|
|
|
2329
2329
|
className
|
|
2330
2330
|
}) => {
|
|
2331
2331
|
const [contentHeight, setContentHeight] = useState(0);
|
|
2332
|
+
const [isSettled, setIsSettled] = useState(false);
|
|
2332
2333
|
const contentRef = useRef(null);
|
|
2333
2334
|
useEffect(() => {
|
|
2334
2335
|
if (contentRef.current) {
|
|
@@ -2349,7 +2350,13 @@ var MotionCollapsibleContent = ({
|
|
|
2349
2350
|
animate: { height: contentHeight, opacity: 1 },
|
|
2350
2351
|
exit: { height: 0, opacity: 0 },
|
|
2351
2352
|
transition: { duration: 0.3, ease: "easeInOut" },
|
|
2352
|
-
|
|
2353
|
+
onAnimationStart: () => setIsSettled(false),
|
|
2354
|
+
onAnimationComplete: () => setIsSettled(isOpen),
|
|
2355
|
+
className: cn(
|
|
2356
|
+
styles28["motion-collapsible"],
|
|
2357
|
+
isSettled && styles28["motion-collapsible--settled"],
|
|
2358
|
+
className
|
|
2359
|
+
),
|
|
2353
2360
|
children: /* @__PURE__ */ jsx("div", { ref: contentRef, children })
|
|
2354
2361
|
},
|
|
2355
2362
|
"motion-content"
|