@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.
@@ -296,13 +296,6 @@ var BlockContext = /*#__PURE__*/React.createContext({
296
296
  });
297
297
  var BlockProvider = BlockContext.Provider;
298
298
 
299
- var viewportSize = (function () {
300
- return {
301
- width: window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth,
302
- height: window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight
303
- };
304
- });
305
-
306
299
  var POST_MESSAGE_PREFIX = 'mdzKitMsg';
307
300
 
308
301
  var postMessage = function postMessage(category, element, action) {
@@ -318,29 +311,6 @@ var postMessage = function postMessage(category, element, action) {
318
311
  }
319
312
  };
320
313
 
321
- var MediaQuerySizes = {
322
- MOBILE: 512,
323
- PORTRAIT_TABLET: 768,
324
- LANDSCAPE_TABLET: 1024,
325
- DESKTOP: 1010,
326
- WIDE_DESKTOP: 1200
327
- };
328
- var imageBreakpoints = {
329
- 325: '(min-width: 0)',
330
- 520: '(min-width: 325px)',
331
- 600: '(min-width: 600px)',
332
- 650: '(min-width: 650px)',
333
- 980: '(min-width: 1000px)',
334
- 1335: '(min-width: 1000px)'
335
- };
336
- var imageConditionalKeys = {
337
- xs: [325],
338
- superFull: [1335, 650, 520, 325],
339
- full: [980, 650, 520, 325],
340
- "default": [650, 520, 325],
341
- narrow: [600, 325]
342
- };
343
-
344
314
  var styles$3 = {"root":"Lazy-module_root__2Z72l"};
345
315
 
346
316
  var Lazy = function Lazy(_ref) {
@@ -375,6 +345,29 @@ var Lazy = function Lazy(_ref) {
375
345
  }, visible && children);
376
346
  };
377
347
 
348
+ var MediaQuerySizes = {
349
+ MOBILE: 512,
350
+ PORTRAIT_TABLET: 768,
351
+ LANDSCAPE_TABLET: 1024,
352
+ DESKTOP: 1010,
353
+ WIDE_DESKTOP: 1200
354
+ };
355
+ var imageBreakpoints = {
356
+ 325: '(min-width: 0)',
357
+ 520: '(min-width: 325px)',
358
+ 600: '(min-width: 600px)',
359
+ 650: '(min-width: 650px)',
360
+ 980: '(min-width: 1000px)',
361
+ 1335: '(min-width: 1000px)'
362
+ };
363
+ var imageConditionalKeys = {
364
+ xs: [325],
365
+ superFull: [1335, 650, 520, 325],
366
+ full: [980, 650, 520, 325],
367
+ "default": [650, 520, 325],
368
+ narrow: [600, 325]
369
+ };
370
+
378
371
  var toCamel = function toCamel(s) {
379
372
  return s.replace(/([_][a-z])/gi, function (str) {
380
373
  return str.toUpperCase().replace('_', '');
@@ -455,17 +448,7 @@ var Image = function Image(_ref) {
455
448
  setIsLoaded = _useState[1];
456
449
 
457
450
  var handleClick = function handleClick() {
458
- if (!fullscreen || !lightBox || optimized && !optimized.original) {
459
- return;
460
- }
461
-
462
- var _viewportSize = viewportSize(),
463
- viewportWidth = _viewportSize.width;
464
-
465
- var disableFullscreenDesktop = viewportWidth >= MediaQuerySizes.LANDSCAPE_TABLET && !fullscreen.desktop;
466
- var disableFullscreenMobile = viewportWidth < MediaQuerySizes.LANDSCAPE_TABLET && !fullscreen.mobile;
467
-
468
- if (disableFullscreenDesktop || disableFullscreenMobile) {
451
+ if (!lightBox || optimized && !optimized.original) {
469
452
  return;
470
453
  }
471
454
 
@@ -636,6 +619,13 @@ var Footnote = function Footnote(_ref) {
636
619
  }, children));
637
620
  };
638
621
 
622
+ var viewportSize = (function () {
623
+ return {
624
+ width: window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth,
625
+ height: window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight
626
+ };
627
+ });
628
+
639
629
  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"};
640
630
 
641
631
  var DotsOnImage = function DotsOnImage(_ref) {