@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.
@@ -464,7 +464,7 @@ const RenderPicture = ({
464
464
  }));
465
465
  };
466
466
 
467
- 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"};
467
+ 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"};
468
468
 
469
469
  const Image = ({
470
470
  alt,
@@ -493,11 +493,11 @@ const Image = ({
493
493
  maxWidth: width <= 649 ? width : '100%'
494
494
  };
495
495
  const pictureStyles = {
496
- paddingBottom: `${100 / (ratio || width / height)}%`
496
+ paddingBottom: ratio === null ? 'unset' : `${100 / (ratio || width / height)}%`
497
497
  };
498
498
  /* fallback w325 url until w6 was released */
499
499
  const fallbackSource = source && source[0] || optimized.w325 && optimized.w325['1x'] || optimized.original;
500
- let classNames = [[styles$F.root, true], [styles$F.isLoaded, isLoaded], [styles$F.fullscreen, lightBox && optimized && optimized.original && fullscreen]];
500
+ let classNames = [[styles$F.root, true], [styles$F.isLoaded, isLoaded], [styles$F.fullscreen, lightBox && optimized && optimized.original && fullscreen], [styles$F.fullRatio, ratio === null]];
501
501
  if (styleContext) {
502
502
  classNames = makeStyleContext(classNames, styleContext, styles$F);
503
503
  }