@meduza/ui-kit-2 0.1.39 → 0.1.41
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 -1
- 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 -1
- package/dist/ui-kit-2.esm.js.map +1 -1
- package/dist/ui-kit.css +720 -720
- package/package.json +1 -1
- package/src/Image/index.tsx +1 -1
- package/src/Popover/index.tsx +4 -0
|
@@ -480,7 +480,7 @@ var Image = function Image(_ref) {
|
|
|
480
480
|
|
|
481
481
|
var fallbackSource = source && source[0] || optimized.w325 && optimized.w325['1x'] || optimized.original;
|
|
482
482
|
return React__default.createElement("div", {
|
|
483
|
-
className: makeClassName([[styles$4.root, true], [styles$4.isLoaded,
|
|
483
|
+
className: makeClassName([[styles$4.root, true], [styles$4.isLoaded, isLoaded], [styles$4.fullscreen, fullscreen && fullscreen.desktop]]),
|
|
484
484
|
style: blockStyles,
|
|
485
485
|
"data-testid": "image"
|
|
486
486
|
}, React__default.createElement("div", {
|
|
@@ -542,9 +542,11 @@ var Popover = function Popover(_ref) {
|
|
|
542
542
|
};
|
|
543
543
|
|
|
544
544
|
React.useEffect(function () {
|
|
545
|
+
document.body.dataset.popover = 'true';
|
|
545
546
|
window.addEventListener('keydown', escFunction, false);
|
|
546
547
|
window.addEventListener('scroll', handleScroll, false);
|
|
547
548
|
return function () {
|
|
549
|
+
document.body.removeAttribute('data-popover');
|
|
548
550
|
window.removeEventListener('keydown', escFunction, false);
|
|
549
551
|
window.removeEventListener('scroll', handleScroll, false);
|
|
550
552
|
};
|