@meduza/ui-kit-2 0.8.690 → 0.8.691

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.
@@ -460,7 +460,7 @@ const RenderPicture = ({
460
460
  }));
461
461
  };
462
462
 
463
- var styles$F = {"root":"Image-module_root__H5wAh","isStatic":"Image-module_isStatic__TmQ1V","isLoaded":"Image-module_isLoaded__keFnD","wrapper":"Image-module_wrapper__gJtbB","fullscreen":"Image-module_fullscreen__4PU9c","dark":"Image-module_dark__qjo5O"};
463
+ var styles$F = {"root":"Image-module_root__H5wAh","fullRatio":"Image-module_fullRatio__q7QPa","isStatic":"Image-module_isStatic__TmQ1V","isLoaded":"Image-module_isLoaded__keFnD","wrapper":"Image-module_wrapper__gJtbB","fullscreen":"Image-module_fullscreen__4PU9c","dark":"Image-module_dark__qjo5O"};
464
464
 
465
465
  const Image = ({
466
466
  alt,
@@ -489,11 +489,11 @@ const Image = ({
489
489
  maxWidth: width <= 649 ? width : '100%'
490
490
  };
491
491
  const pictureStyles = {
492
- paddingBottom: `${100 / (ratio || width / height)}%`
492
+ paddingBottom: ratio === null ? 'unset' : `${100 / (ratio || width / height)}%`
493
493
  };
494
494
  /* fallback w325 url until w6 was released */
495
495
  const fallbackSource = source && source[0] || optimized.w325 && optimized.w325['1x'] || optimized.original;
496
- let classNames = [[styles$F.root, true], [styles$F.isLoaded, isLoaded], [styles$F.fullscreen, lightBox && optimized && optimized.original && fullscreen]];
496
+ let classNames = [[styles$F.root, true], [styles$F.isLoaded, isLoaded], [styles$F.fullscreen, lightBox && optimized && optimized.original && fullscreen], [styles$F.fullRatio, ratio === null]];
497
497
  if (styleContext) {
498
498
  classNames = makeStyleContext(classNames, styleContext, styles$F);
499
499
  }