@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.
- package/dist/ui-kit-2.cjs.development.js +3 -3
- package/dist/ui-kit-2.cjs.development.js.map +1 -1
- package/dist/ui-kit-2.cjs.production.min.js +1 -1
- package/dist/ui-kit-2.cjs.production.min.js.map +1 -1
- package/dist/ui-kit-2.esm.js +3 -3
- package/dist/ui-kit-2.esm.js.map +1 -1
- package/dist/ui-kit-game.css +6 -0
- package/dist/ui-kit.css +6 -0
- package/package.json +1 -1
- package/src/Image/Image.module.css +6 -0
- package/src/Image/index.tsx +4 -2
package/dist/ui-kit-2.esm.js
CHANGED
|
@@ -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
|
}
|