@meduza/ui-kit-2 0.1.42 → 0.1.44

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.
@@ -303,13 +303,6 @@ var BlockContext = /*#__PURE__*/React__default.createContext({
303
303
  });
304
304
  var BlockProvider = BlockContext.Provider;
305
305
 
306
- var viewportSize = (function () {
307
- return {
308
- width: window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth,
309
- height: window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight
310
- };
311
- });
312
-
313
306
  var POST_MESSAGE_PREFIX = 'mdzKitMsg';
314
307
 
315
308
  var postMessage = function postMessage(category, element, action) {
@@ -325,29 +318,6 @@ var postMessage = function postMessage(category, element, action) {
325
318
  }
326
319
  };
327
320
 
328
- var MediaQuerySizes = {
329
- MOBILE: 512,
330
- PORTRAIT_TABLET: 768,
331
- LANDSCAPE_TABLET: 1024,
332
- DESKTOP: 1010,
333
- WIDE_DESKTOP: 1200
334
- };
335
- var imageBreakpoints = {
336
- 325: '(min-width: 0)',
337
- 520: '(min-width: 325px)',
338
- 600: '(min-width: 600px)',
339
- 650: '(min-width: 650px)',
340
- 980: '(min-width: 1000px)',
341
- 1335: '(min-width: 1000px)'
342
- };
343
- var imageConditionalKeys = {
344
- xs: [325],
345
- superFull: [1335, 650, 520, 325],
346
- full: [980, 650, 520, 325],
347
- "default": [650, 520, 325],
348
- narrow: [600, 325]
349
- };
350
-
351
321
  var styles$3 = {"root":"Lazy-module_root__2Z72l"};
352
322
 
353
323
  var Lazy = function Lazy(_ref) {
@@ -382,6 +352,29 @@ var Lazy = function Lazy(_ref) {
382
352
  }, visible && children);
383
353
  };
384
354
 
355
+ var MediaQuerySizes = {
356
+ MOBILE: 512,
357
+ PORTRAIT_TABLET: 768,
358
+ LANDSCAPE_TABLET: 1024,
359
+ DESKTOP: 1010,
360
+ WIDE_DESKTOP: 1200
361
+ };
362
+ var imageBreakpoints = {
363
+ 325: '(min-width: 0)',
364
+ 520: '(min-width: 325px)',
365
+ 600: '(min-width: 600px)',
366
+ 650: '(min-width: 650px)',
367
+ 980: '(min-width: 1000px)',
368
+ 1335: '(min-width: 1000px)'
369
+ };
370
+ var imageConditionalKeys = {
371
+ xs: [325],
372
+ superFull: [1335, 650, 520, 325],
373
+ full: [980, 650, 520, 325],
374
+ "default": [650, 520, 325],
375
+ narrow: [600, 325]
376
+ };
377
+
385
378
  var toCamel = function toCamel(s) {
386
379
  return s.replace(/([_][a-z])/gi, function (str) {
387
380
  return str.toUpperCase().replace('_', '');
@@ -462,17 +455,7 @@ var Image = function Image(_ref) {
462
455
  setIsLoaded = _useState[1];
463
456
 
464
457
  var handleClick = function handleClick() {
465
- if (!fullscreen || !lightBox || optimized && !optimized.original) {
466
- return;
467
- }
468
-
469
- var _viewportSize = viewportSize(),
470
- viewportWidth = _viewportSize.width;
471
-
472
- var disableFullscreenDesktop = viewportWidth >= MediaQuerySizes.LANDSCAPE_TABLET && !fullscreen.desktop;
473
- var disableFullscreenMobile = viewportWidth < MediaQuerySizes.LANDSCAPE_TABLET && !fullscreen.mobile;
474
-
475
- if (disableFullscreenDesktop || disableFullscreenMobile) {
458
+ if (!lightBox || optimized && !optimized.original) {
476
459
  return;
477
460
  }
478
461
 
@@ -643,6 +626,13 @@ var Footnote = function Footnote(_ref) {
643
626
  }, children));
644
627
  };
645
628
 
629
+ var viewportSize = (function () {
630
+ return {
631
+ width: window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth,
632
+ height: window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight
633
+ };
634
+ });
635
+
646
636
  var styles$7 = {"root":"DotsOnImage-module_root__2XP3Q","isVisible":"DotsOnImage-module_isVisible__Wqqqt","marker":"DotsOnImage-module_marker__lH5cP","show":"DotsOnImage-module_show__2TMBv","dot":"DotsOnImage-module_dot__H1wua","isActive":"DotsOnImage-module_isActive__3hh31","popover":"DotsOnImage-module_popover__35Cpj","isRight":"DotsOnImage-module_isRight__2RsJe","isTop":"DotsOnImage-module_isTop__3zmSK","isLeft":"DotsOnImage-module_isLeft__3quc9","isBottom":"DotsOnImage-module_isBottom__3Nk1T"};
647
637
 
648
638
  var DotsOnImage = function DotsOnImage(_ref) {