@underverse-ui/underverse 0.2.7 → 0.2.9

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 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);
@@ -2330,6 +2332,7 @@ var Modal = ({
2330
2332
  if (!isMounted || !isOpen && !isVisible) {
2331
2333
  return null;
2332
2334
  }
2335
+ const maxWidthClass = width ? "max-w-none" : fullWidth ? "max-w-full" : sizeStyles3[size];
2333
2336
  const modalContent = /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("div", { className: cn("fixed inset-0 z-[9999] flex items-center justify-center", overlayClassName), onClick: handleOverlayClick, children: [
2334
2337
  /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
2335
2338
  "div",
@@ -2344,9 +2347,9 @@ var Modal = ({
2344
2347
  "div",
2345
2348
  {
2346
2349
  className: cn(
2347
- "relative w-full rounded-lg bg-card text-card-foreground shadow-xl",
2350
+ "relative w-full rounded-lg bg-card text-card-foreground shadow-xl",
2348
2351
  "transition-all duration-200 ease-out",
2349
- fullWidth ? "max-w-full" : sizeStyles3[size],
2352
+ maxWidthClass,
2350
2353
  fullWidth && "mx-0",
2351
2354
  className
2352
2355
  ),
@@ -2354,7 +2357,9 @@ var Modal = ({
2354
2357
  opacity: isOpen && !isAnimating ? 1 : 0,
2355
2358
  transform: isOpen && !isAnimating ? "scale(1)" : "scale(0.9)",
2356
2359
  // 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)"
2360
+ transition: "all 300ms cubic-bezier(0.34, 1.76, 0.64, 1)",
2361
+ width,
2362
+ height
2358
2363
  },
2359
2364
  onClick: (e) => e.stopPropagation(),
2360
2365
  children: [