@idds/react 1.4.10 → 1.4.11

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.es.js CHANGED
@@ -3533,7 +3533,8 @@ function Modal({
3533
3533
  children,
3534
3534
  closeOnBackdrop = true,
3535
3535
  container,
3536
- dialogClassname
3536
+ dialogClassname,
3537
+ size = ""
3537
3538
  }) {
3538
3539
  const [mounted, setMounted] = useState(false);
3539
3540
  const [shouldRender, setShouldRender] = useState(false);
@@ -3585,7 +3586,11 @@ function Modal({
3585
3586
  "ina-modal",
3586
3587
  isVisible ? "ina-modal--enter-active" : "ina-modal--enter"
3587
3588
  );
3588
- const dialogClasses = clsx("ina-modal__dialog", dialogClassname);
3589
+ const dialogClasses = clsx(
3590
+ "ina-modal__dialog",
3591
+ size && `ina-modal__dialog--size-${size}`,
3592
+ dialogClassname
3593
+ );
3589
3594
  const headerClasses = clsx(
3590
3595
  "ina-modal__header",
3591
3596
  title ? "ina-modal__header--with-title" : "ina-modal__header--no-border"