@underverse-ui/underverse 0.2.7 → 0.2.8
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/index.cjs +6 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +6 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -2278,7 +2278,9 @@ var Modal = ({
|
|
|
2278
2278
|
closeOnEsc = true,
|
|
2279
2279
|
size = "md",
|
|
2280
2280
|
noPadding = false,
|
|
2281
|
-
fullWidth = false
|
|
2281
|
+
fullWidth = false,
|
|
2282
|
+
width,
|
|
2283
|
+
height
|
|
2282
2284
|
}) => {
|
|
2283
2285
|
const [isMounted, setIsMounted] = React9.useState(false);
|
|
2284
2286
|
const [isVisible, setIsVisible] = React9.useState(false);
|
|
@@ -2354,7 +2356,9 @@ var Modal = ({
|
|
|
2354
2356
|
opacity: isOpen && !isAnimating ? 1 : 0,
|
|
2355
2357
|
transform: isOpen && !isAnimating ? "scale(1)" : "scale(0.9)",
|
|
2356
2358
|
// Thêm dòng này để tạo hiệu ứng nảy
|
|
2357
|
-
transition: "all 300ms cubic-bezier(0.34, 1.76, 0.64, 1)"
|
|
2359
|
+
transition: "all 300ms cubic-bezier(0.34, 1.76, 0.64, 1)",
|
|
2360
|
+
width,
|
|
2361
|
+
height
|
|
2358
2362
|
},
|
|
2359
2363
|
onClick: (e) => e.stopPropagation(),
|
|
2360
2364
|
children: [
|