@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.d.cts CHANGED
@@ -351,6 +351,8 @@ interface ModalProps {
351
351
  size?: "sm" | "md" | "lg" | "xl" | "full";
352
352
  noPadding?: boolean;
353
353
  fullWidth?: boolean;
354
+ width?: string | number;
355
+ height?: string | number;
354
356
  }
355
357
  declare const Modal: React$1.FC<ModalProps>;
356
358
 
package/dist/index.d.ts CHANGED
@@ -351,6 +351,8 @@ interface ModalProps {
351
351
  size?: "sm" | "md" | "lg" | "xl" | "full";
352
352
  noPadding?: boolean;
353
353
  fullWidth?: boolean;
354
+ width?: string | number;
355
+ height?: string | number;
354
356
  }
355
357
  declare const Modal: React$1.FC<ModalProps>;
356
358
 
package/dist/index.js CHANGED
@@ -2123,7 +2123,9 @@ var Modal = ({
2123
2123
  closeOnEsc = true,
2124
2124
  size = "md",
2125
2125
  noPadding = false,
2126
- fullWidth = false
2126
+ fullWidth = false,
2127
+ width,
2128
+ height
2127
2129
  }) => {
2128
2130
  const [isMounted, setIsMounted] = React9.useState(false);
2129
2131
  const [isVisible, setIsVisible] = React9.useState(false);
@@ -2199,7 +2201,9 @@ var Modal = ({
2199
2201
  opacity: isOpen && !isAnimating ? 1 : 0,
2200
2202
  transform: isOpen && !isAnimating ? "scale(1)" : "scale(0.9)",
2201
2203
  // Thêm dòng này để tạo hiệu ứng nảy
2202
- transition: "all 300ms cubic-bezier(0.34, 1.76, 0.64, 1)"
2204
+ transition: "all 300ms cubic-bezier(0.34, 1.76, 0.64, 1)",
2205
+ width,
2206
+ height
2203
2207
  },
2204
2208
  onClick: (e) => e.stopPropagation(),
2205
2209
  children: [