@meduza/ui-kit-2 0.1.8 → 0.1.10

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.
Files changed (153) hide show
  1. package/dist/Footnote/Footnote.stories.d.ts +10 -0
  2. package/dist/Footnote/Footnote.types.d.ts +5 -0
  3. package/dist/Footnote/index.d.ts +3 -0
  4. package/dist/Image/Image.types.d.ts +2 -2
  5. package/dist/MaterialNote/MaterialNote.stories.d.ts +2 -1
  6. package/dist/MaterialNote/MaterialNote.types.d.ts +2 -1
  7. package/dist/index.d.ts +1 -0
  8. package/dist/ui-kit-2.cjs.development.js +238 -210
  9. package/dist/ui-kit-2.cjs.development.js.map +1 -1
  10. package/dist/ui-kit-2.cjs.production.min.js +1 -1
  11. package/dist/ui-kit-2.cjs.production.min.js.map +1 -1
  12. package/dist/ui-kit-2.esm.js +238 -211
  13. package/dist/ui-kit-2.esm.js.map +1 -1
  14. package/dist/ui-kit.css +684 -577
  15. package/dist/utils/makeClassName.d.ts +2 -1
  16. package/dist/utils/makeStyleContext.d.ts +2 -1
  17. package/package.json +12 -4
  18. package/src/BookmarkButton/BookmarkButton.stories.tsx +1 -1
  19. package/src/BookmarkButton/index.tsx +2 -4
  20. package/src/Button/Button.stories.tsx +2 -2
  21. package/src/Button/Button.test.tsx +3 -3
  22. package/src/Button/index.tsx +3 -3
  23. package/src/CardTitle/CardTitle.stories.tsx +1 -1
  24. package/src/CardTitle/CardTitle.test.tsx +1 -1
  25. package/src/CardTitle/index.tsx +1 -2
  26. package/src/ChapterBlock/ChapterBlock.stories.tsx +1 -1
  27. package/src/ChapterBlock/ChapterBlock.test.tsx +1 -1
  28. package/src/ChapterBlock/index.tsx +1 -2
  29. package/src/Cover/Cover.stories.tsx +1 -1
  30. package/src/Cover/Cover.test.tsx +1 -1
  31. package/src/Cover/index.tsx +5 -6
  32. package/src/DocumentItemsCount/DocumentItemsCount.stories.tsx +1 -1
  33. package/src/DocumentItemsCount/DocumentItemsCount.test.tsx +1 -1
  34. package/src/DocumentItemsCount/index.tsx +0 -1
  35. package/src/DotsOnImage/DotsOnImage.module.css +13 -9
  36. package/src/DotsOnImage/DotsOnImage.stories.tsx +1 -1
  37. package/src/DotsOnImage/DotsOnImage.test.tsx +2 -1
  38. package/src/DotsOnImage/index.tsx +29 -17
  39. package/src/DotsOnImage/mock.json +4 -4
  40. package/src/Dropdown/index.tsx +2 -2
  41. package/src/EmbedBlock/EmbedBlock.module.css +1 -1
  42. package/src/EmbedBlock/EmbedBlock.stories.tsx +2 -2
  43. package/src/EmbedBlock/EmbedBlock.test.tsx +1 -1
  44. package/src/EmbedBlock/EmbedBlock.tsx +3 -8
  45. package/src/EmbedBlock/EmbedGif.tsx +0 -3
  46. package/src/EmbedBlock/IframeBlock.tsx +0 -1
  47. package/src/EmbedBlock/index.tsx +0 -1
  48. package/src/Footnote/Footnote.module.css +70 -0
  49. package/src/Footnote/Footnote.stories.module.css +5 -0
  50. package/src/Footnote/Footnote.stories.tsx +43 -0
  51. package/src/Footnote/Footnote.test.tsx +20 -0
  52. package/src/Footnote/Footnote.types.ts +5 -0
  53. package/src/Footnote/index.tsx +26 -0
  54. package/src/GroupedBlock/GroupedBlock.stories.tsx +1 -1
  55. package/src/GroupedBlock/GroupedBlock.test.tsx +1 -1
  56. package/src/GroupedBlock/index.tsx +4 -6
  57. package/src/HalfBlock/HalfBlock.stories.tsx +1 -1
  58. package/src/HalfBlock/HalfBlock.test.tsx +1 -1
  59. package/src/HalfBlock/index.tsx +3 -5
  60. package/src/Image/Image.stories.tsx +1 -1
  61. package/src/Image/Image.test.tsx +1 -1
  62. package/src/Image/Image.types.ts +2 -2
  63. package/src/Image/RenderPicture.tsx +1 -2
  64. package/src/Image/index.tsx +1 -4
  65. package/src/ImportantLead/ImportantLead.stories.tsx +1 -1
  66. package/src/ImportantLead/ImportantLead.test.tsx +1 -1
  67. package/src/ImportantLead/index.tsx +3 -5
  68. package/src/Lazy/Lazy.stories.tsx +3 -2
  69. package/src/Lazy/Lazy.test.tsx +1 -1
  70. package/src/Lazy/index.tsx +2 -4
  71. package/src/ListBlock/ListBlock.stories.tsx +2 -2
  72. package/src/ListBlock/ListBlock.test.tsx +1 -1
  73. package/src/ListBlock/index.tsx +2 -3
  74. package/src/MaterialNote/MaterialNote.stories.tsx +4 -3
  75. package/src/MaterialNote/MaterialNote.test.tsx +1 -1
  76. package/src/MaterialNote/MaterialNote.types.ts +2 -1
  77. package/src/MaterialNote/index.tsx +3 -3
  78. package/src/MaterialTitle/MaterialTitle.stories.tsx +1 -1
  79. package/src/MaterialTitle/MaterialTitle.test.tsx +1 -1
  80. package/src/MediaCaption/MediaCaption.stories.tsx +1 -1
  81. package/src/MediaCaption/MediaCaption.test.tsx +1 -1
  82. package/src/MediaCaption/index.tsx +2 -2
  83. package/src/Meta/Meta.stories.tsx +1 -1
  84. package/src/Meta/Meta.test.tsx +1 -1
  85. package/src/Meta/MetaContainer.tsx +2 -4
  86. package/src/Meta/index.tsx +2 -3
  87. package/src/MetaItem/MetaItem.stories.tsx +2 -2
  88. package/src/MetaItem/MetaItem.test.tsx +1 -1
  89. package/src/MetaItem/index.tsx +1 -3
  90. package/src/MetaItemLive/MetaItemLive.stories.tsx +2 -2
  91. package/src/MetaItemLive/MetaItemLive.test.tsx +1 -1
  92. package/src/MetaItemLive/index.tsx +1 -3
  93. package/src/Popover/Popover.module.css +36 -2
  94. package/src/Popover/Popover.stories.tsx +1 -1
  95. package/src/Popover/Popover.test.tsx +1 -1
  96. package/src/Popover/index.tsx +2 -3
  97. package/src/QuoteBlock/QuoteBlock.stories.tsx +1 -1
  98. package/src/QuoteBlock/QuoteBlock.test.tsx +1 -1
  99. package/src/QuoteBlock/index.tsx +2 -3
  100. package/src/RawHtmlBlock/RawHtmlBlock.stories.tsx +2 -2
  101. package/src/RawHtmlBlock/RawHtmlBlock.test.tsx +1 -1
  102. package/src/RawHtmlBlock/index.tsx +0 -2
  103. package/src/RelatedBlock/RelatedBlock.stories.tsx +1 -1
  104. package/src/RelatedBlock/RelatedBlock.test.tsx +1 -1
  105. package/src/RelatedBlock/index.tsx +2 -3
  106. package/src/RenderBlocks/RenderBlocks.stories.tsx +1 -1
  107. package/src/RenderBlocks/RenderBlocks.test.tsx +1 -1
  108. package/src/RenderBlocks/index.tsx +0 -1
  109. package/src/RichTitle/RichTitle.stories.tsx +1 -1
  110. package/src/RichTitle/RichTitle.test.tsx +1 -1
  111. package/src/RichTitle/index.tsx +2 -3
  112. package/src/SimpleBlock/FootnoteLink.css +7 -0
  113. package/src/SimpleBlock/SimpleBlock.stories.tsx +2 -2
  114. package/src/SimpleBlock/SimpleBlock.test.tsx +1 -1
  115. package/src/SimpleBlock/index.tsx +2 -3
  116. package/src/SimpleTitle/SimpleTitle.stories.tsx +1 -1
  117. package/src/SimpleTitle/SimpleTitle.test.tsx +1 -1
  118. package/src/SimpleTitle/index.tsx +2 -2
  119. package/src/SourceBlock/SourceBlock.stories.tsx +6 -6
  120. package/src/SourceBlock/SourceBlock.test.tsx +1 -1
  121. package/src/SourceBlock/index.tsx +6 -4
  122. package/src/SourceBlock/mock.json +15 -0
  123. package/src/Spoiler/Spoiler.stories.tsx +1 -1
  124. package/src/Spoiler/Spoiler.test.tsx +1 -1
  125. package/src/Spoiler/index.tsx +4 -5
  126. package/src/SvgSymbol/SvgSymbol.stories.tsx +6 -6
  127. package/src/SvgSymbol/SvgSymbol.test.tsx +1 -1
  128. package/src/SvgSymbol/index.tsx +2 -2
  129. package/src/Switcher/Switcher.stories.tsx +4 -4
  130. package/src/Switcher/Switcher.test.tsx +1 -1
  131. package/src/Switcher/index.tsx +1 -2
  132. package/src/Table/Table.stories.tsx +1 -1
  133. package/src/Table/Table.test.tsx +1 -1
  134. package/src/Table/index.tsx +2 -2
  135. package/src/Tag/Tag.stories.tsx +1 -3
  136. package/src/Tag/Tag.test.tsx +4 -4
  137. package/src/Tag/index.tsx +2 -2
  138. package/src/Timestamp/Timestamp.stories.tsx +1 -1
  139. package/src/Timestamp/Timestamp.test.tsx +1 -1
  140. package/src/Timestamp/index.tsx +0 -2
  141. package/src/Toolbar/Toolbar.stories.tsx +0 -1
  142. package/src/Toolbar/Toolbar.test.tsx +1 -1
  143. package/src/Toolbar/index.tsx +2 -3
  144. package/src/ToolbarButton/ToolbarButton.stories.tsx +2 -2
  145. package/src/ToolbarButton/ToolbarButton.test.tsx +1 -1
  146. package/src/ToolbarButton/index.tsx +2 -3
  147. package/src/_storybook/PreviewWrapper/index.tsx +1 -1
  148. package/src/index.tsx +1 -0
  149. package/src/utils/DangerousHtml.tsx +5 -7
  150. package/src/utils/generateGradient.ts +1 -1
  151. package/src/utils/makeClassName.ts +3 -1
  152. package/src/utils/makeStyleContext.ts +8 -4
  153. package/src/utils/toCamel.ts +1 -1
@@ -73,8 +73,6 @@ var Button = function Button(_ref) {
73
73
  }, React.createElement(Loader, null)) : children);
74
74
  };
75
75
 
76
- var styles$1 = {"root":"SvgSymbol-module_root__2CsRW","small":"SvgSymbol-module_small__2g6oR","normal":"SvgSymbol-module_normal__9lFn1","medium":"SvgSymbol-module_medium__2eF5L","large":"SvgSymbol-module_large__2kQrt","adaptive":"SvgSymbol-module_adaptive__3_68T","fb":"SvgSymbol-module_fb__1whmw","vk":"SvgSymbol-module_vk__3VEuu","ok":"SvgSymbol-module_ok__2_1Qb","tw":"SvgSymbol-module_tw__2VRG5","tg":"SvgSymbol-module_tg__2xe2f","reaction":"SvgSymbol-module_reaction__rrJvf","card":"SvgSymbol-module_card__1XAqw","podcast":"SvgSymbol-module_podcast__3oPoo","read":"SvgSymbol-module_read__2V82i","listened":"SvgSymbol-module_listened__1oMFV","menu":"SvgSymbol-module_menu__2iYFt","cross":"SvgSymbol-module_cross__J2lCN","isInFeature":"SvgSymbol-module_isInFeature__cDeTI","isInCard":"SvgSymbol-module_isInCard__pKq4e","isInTopicBlockItem":"SvgSymbol-module_isInTopicBlockItem__3Te91","isInPageStatic":"SvgSymbol-module_isInPageStatic__H31Rd","isInMaterialMeta":"SvgSymbol-module_isInMaterialMeta__2IbAw","isInAudioPlayer":"SvgSymbol-module_isInAudioPlayer__2xlzW","isInEpisodeBlock":"SvgSymbol-module_isInEpisodeBlock__2vY3o","isInButtonPlaybackRate":"SvgSymbol-module_isInButtonPlaybackRate__1L3TW","isInButtonBackward":"SvgSymbol-module_isInButtonBackward__1Grf9","isInButtonForward":"SvgSymbol-module_isInButtonForward__D1AFL","isInToolbar":"SvgSymbol-module_isInToolbar__3SaIh","play":"SvgSymbol-module_play__pM-qY","meduzaLogo":"SvgSymbol-module_meduzaLogo__2Ouzp","arrow":"SvgSymbol-module_arrow__11naX","oil":"SvgSymbol-module_oil__hvHE5","search":"SvgSymbol-module_search__VK6p3","user":"SvgSymbol-module_user__1MGim","bookmark":"SvgSymbol-module_bookmark__2z7tX","receipt":"SvgSymbol-module_receipt__3Eqow","isInHeader":"SvgSymbol-module_isInHeader__1QHjL"};
77
-
78
76
  var icons = {
79
77
  meduzaLogo: {
80
78
  width: 544,
@@ -233,6 +231,8 @@ var icons = {
233
231
  }
234
232
  };
235
233
 
234
+ var styles$1 = {"root":"SvgSymbol-module_root__2CsRW","small":"SvgSymbol-module_small__2g6oR","normal":"SvgSymbol-module_normal__9lFn1","medium":"SvgSymbol-module_medium__2eF5L","large":"SvgSymbol-module_large__2kQrt","adaptive":"SvgSymbol-module_adaptive__3_68T","fb":"SvgSymbol-module_fb__1whmw","vk":"SvgSymbol-module_vk__3VEuu","ok":"SvgSymbol-module_ok__2_1Qb","tw":"SvgSymbol-module_tw__2VRG5","tg":"SvgSymbol-module_tg__2xe2f","reaction":"SvgSymbol-module_reaction__rrJvf","card":"SvgSymbol-module_card__1XAqw","podcast":"SvgSymbol-module_podcast__3oPoo","read":"SvgSymbol-module_read__2V82i","listened":"SvgSymbol-module_listened__1oMFV","menu":"SvgSymbol-module_menu__2iYFt","cross":"SvgSymbol-module_cross__J2lCN","isInFeature":"SvgSymbol-module_isInFeature__cDeTI","isInCard":"SvgSymbol-module_isInCard__pKq4e","isInTopicBlockItem":"SvgSymbol-module_isInTopicBlockItem__3Te91","isInPageStatic":"SvgSymbol-module_isInPageStatic__H31Rd","isInMaterialMeta":"SvgSymbol-module_isInMaterialMeta__2IbAw","isInAudioPlayer":"SvgSymbol-module_isInAudioPlayer__2xlzW","isInEpisodeBlock":"SvgSymbol-module_isInEpisodeBlock__2vY3o","isInButtonPlaybackRate":"SvgSymbol-module_isInButtonPlaybackRate__1L3TW","isInButtonBackward":"SvgSymbol-module_isInButtonBackward__1Grf9","isInButtonForward":"SvgSymbol-module_isInButtonForward__D1AFL","isInToolbar":"SvgSymbol-module_isInToolbar__3SaIh","play":"SvgSymbol-module_play__pM-qY","meduzaLogo":"SvgSymbol-module_meduzaLogo__2Ouzp","arrow":"SvgSymbol-module_arrow__11naX","oil":"SvgSymbol-module_oil__hvHE5","search":"SvgSymbol-module_search__VK6p3","user":"SvgSymbol-module_user__1MGim","bookmark":"SvgSymbol-module_bookmark__2z7tX","receipt":"SvgSymbol-module_receipt__3Eqow","isInHeader":"SvgSymbol-module_isInHeader__1QHjL"};
235
+
236
236
  var SvgSymbol = function SvgSymbol(_ref) {
237
237
  var icon = _ref.icon,
238
238
  size = _ref.size,
@@ -488,7 +488,116 @@ var Image = function Image(_ref) {
488
488
  })));
489
489
  };
490
490
 
491
- var styles$5 = {"root":"DotsOnImage-module_root__2XP3Q","dot":"DotsOnImage-module_dot__H1wua","popover":"DotsOnImage-module_popover__35Cpj","popoverTitle":"DotsOnImage-module_popoverTitle__343d8","dismiss":"DotsOnImage-module_dismiss__1EWXd"};
491
+ var styles$5 = {"root":"Popover-module_root__1v6f_","fadeOut":"Popover-module_fadeOut__3EZhx","visible":"Popover-module_visible__eK5ZQ","fadeIn":"Popover-module_fadeIn__AkrSN","overlay":"Popover-module_overlay__2SBL0","container":"Popover-module_container__FnZT-","disappear":"Popover-module_disappear__3Q9LI","dismiss":"Popover-module_dismiss__3RnLj","background":"Popover-module_background__1KKaP","appear":"Popover-module_appear__37vPd","body":"Popover-module_body__3h5UO"};
492
+
493
+ var Popover = function Popover(_ref) {
494
+ var children = _ref.children,
495
+ onClose = _ref.onClose;
496
+
497
+ var _useState = useState(true),
498
+ visible = _useState[0],
499
+ setVisible = _useState[1];
500
+
501
+ var handleClose = function handleClose() {
502
+ setVisible(false);
503
+ setTimeout(onClose, 350);
504
+ };
505
+
506
+ var handleScroll = function handleScroll() {
507
+ handleClose();
508
+ };
509
+
510
+ var escFunction = function escFunction(event) {
511
+ if (event.key === 'Escape') {
512
+ handleClose();
513
+ }
514
+ };
515
+
516
+ useEffect(function () {
517
+ window.addEventListener('keydown', escFunction, false);
518
+ window.addEventListener('scroll', handleScroll, false);
519
+ return function () {
520
+ window.removeEventListener('keydown', escFunction, false);
521
+ window.removeEventListener('scroll', handleScroll, false);
522
+ };
523
+ }, [visible]);
524
+ /* eslint-disable jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions */
525
+
526
+ return React.createElement("div", {
527
+ "data-testid": "popover",
528
+ className: makeClassName([[styles$5.root, true], [styles$5.visible, visible]])
529
+ }, React.createElement("div", {
530
+ className: styles$5.overlay,
531
+ onClick: function onClick() {
532
+ return handleClose();
533
+ }
534
+ }), React.createElement("div", {
535
+ className: styles$5.container
536
+ }, React.createElement("button", {
537
+ type: "button",
538
+ className: styles$5.dismiss,
539
+ onClick: function onClick() {
540
+ return handleClose();
541
+ },
542
+ "aria-label": "dismiss"
543
+ }), React.createElement("svg", {
544
+ width: "100%",
545
+ className: styles$5.background
546
+ }, React.createElement("defs", null, React.createElement("mask", {
547
+ id: "myMask",
548
+ x: "0",
549
+ y: "0",
550
+ width: "100%",
551
+ height: "100%"
552
+ }, React.createElement("rect", {
553
+ fill: "white",
554
+ y: "0",
555
+ width: "100%",
556
+ height: "100%",
557
+ x: "0"
558
+ }), React.createElement("svg", {
559
+ x: "50%",
560
+ overflow: "visible"
561
+ }, React.createElement("g", {
562
+ transform: "translate(-12 0)"
563
+ }, React.createElement("path", {
564
+ d: "M4.61852778e-14,9.76996262e-15 L9.84597532,5.80270273 C11.0992017,6.54128882 12.6546044,6.54128882 13.9078308,5.80270273 L23.7538061,9.76996262e-15 L4.61852778e-14,9.76996262e-15 Z"
565
+ }))))), React.createElement("rect", {
566
+ fill: "#F7F7F7",
567
+ id: "base-mask",
568
+ mask: "url(#myMask)",
569
+ x: "0",
570
+ y: "0",
571
+ width: "100%",
572
+ height: "100%"
573
+ })), React.createElement("div", {
574
+ className: styles$5.body
575
+ }, children)));
576
+ };
577
+
578
+ var styles$6 = {"root":"Footnote-module_root__2a0-B","body":"Footnote-module_body__259Ly","dismiss":"Footnote-module_dismiss__1HKG5"};
579
+
580
+ var Footnote = function Footnote(_ref) {
581
+ var children = _ref.children,
582
+ onClose = _ref.onClose;
583
+ return React.createElement("div", {
584
+ "data-testid": "footnote",
585
+ className: makeClassName([[styles$6.root, true]])
586
+ }, React.createElement("button", {
587
+ className: styles$6.dismiss,
588
+ type: "button",
589
+ onClick: function onClick() {
590
+ return onClose();
591
+ }
592
+ }, React.createElement(SvgSymbol, {
593
+ icon: "cross",
594
+ size: "unset"
595
+ })), React.createElement("div", {
596
+ className: styles$6.body
597
+ }, children));
598
+ };
599
+
600
+ var styles$7 = {"root":"DotsOnImage-module_root__2XP3Q","dot":"DotsOnImage-module_dot__H1wua","popover":"DotsOnImage-module_popover__35Cpj","popoverTitle":"DotsOnImage-module_popoverTitle__343d8","popoverBody":"DotsOnImage-module_popoverBody__2MSn7","popoverText":"DotsOnImage-module_popoverText__3v02w","dismiss":"DotsOnImage-module_dismiss__1EWXd"};
492
601
 
493
602
  var DotsOnImage = function DotsOnImage(_ref) {
494
603
  var _ref$block = _ref.block,
@@ -520,12 +629,12 @@ var DotsOnImage = function DotsOnImage(_ref) {
520
629
 
521
630
  return React.createElement("div", {
522
631
  "data-testid": "dots-on-image",
523
- className: styles$5.root
632
+ className: styles$7.root
524
633
  }, React.createElement("div", {
525
- className: styles$5.dots
634
+ className: styles$7.dots
526
635
  }, dots.map(function (dot) {
527
636
  return React.createElement("button", {
528
- className: styles$5.dot,
637
+ className: styles$7.dot,
529
638
  type: "button",
530
639
  key: dot.id,
531
640
  style: {
@@ -537,40 +646,42 @@ var DotsOnImage = function DotsOnImage(_ref) {
537
646
  return handleDotClick(dot);
538
647
  }
539
648
  }, dot.icon.type === 'svg' && React.createElement("div", {
540
- className: styles$5.icon,
649
+ className: styles$7.icon,
541
650
  dangerouslySetInnerHTML: {
542
651
  __html: dot.icon.svg_string
543
652
  }
544
653
  }), dot.icon.type === 'number' && dot.icon.number);
545
654
  })), React.createElement("div", {
546
- className: styles$5.image
655
+ className: styles$7.image
547
656
  }, React.createElement(Image, {
548
657
  optimized: optimized,
549
658
  width: width,
550
659
  height: height,
551
660
  alt: credit,
552
661
  display: display
553
- })), popover.show && React.createElement("div", {
554
- className: styles$5.popover
555
- }, React.createElement("button", {
556
- className: styles$5.dismiss,
557
- type: "button",
558
- onClick: function onClick() {
559
- return setPopover({
662
+ })), popover.show && React.createElement(React.Fragment, null, viewportSize().width >= MediaQuerySizes.LANDSCAPE_TABLET ? React.createElement("div", {
663
+ className: styles$7.popover
664
+ }, React.createElement(Footnote, {
665
+ onClose: function onClose() {
666
+ setPopover({
560
667
  show: false
561
668
  });
562
669
  }
563
- }, React.createElement(SvgSymbol, {
564
- icon: "cross",
565
- size: "unset"
566
- })), React.createElement("div", {
567
- className: styles$5.popoverTitle
568
- }, popover.title), React.createElement("div", {
569
- className: styles$5.popoverBody,
670
+ }, React.createElement("h3", null, popover.title), React.createElement("div", {
570
671
  dangerouslySetInnerHTML: {
571
672
  __html: popover.body
572
673
  }
573
- })));
674
+ }))) : React.createElement(Popover, {
675
+ onClose: function onClose() {
676
+ setPopover({
677
+ show: false
678
+ });
679
+ }
680
+ }, React.createElement("h3", null, popover.title), React.createElement("div", {
681
+ dangerouslySetInnerHTML: {
682
+ __html: popover.body
683
+ }
684
+ }))));
574
685
  };
575
686
 
576
687
  var makeStyleContext = function makeStyleContext(classNames, styleContext, styles) {
@@ -582,7 +693,7 @@ var makeStyleContext = function makeStyleContext(classNames, styleContext, style
582
693
  return classNames.concat(context);
583
694
  };
584
695
 
585
- var styles$6 = {"root":"Tag-module_root__3IqWC","small":"Tag-module_small__2IAb7","large":"Tag-module_large__22z_o","dark":"Tag-module_dark__sgnt1","light":"Tag-module_light__1zUhp","gold":"Tag-module_gold__2ksA7","gray":"Tag-module_gray__mGAO_","inherit":"Tag-module_inherit__2QB5U","is1to1":"Tag-module_is1to1__3EDbC","is1to2":"Tag-module_is1to2__3xbC6","isInSuperBlock":"Tag-module_isInSuperBlock__38JE0","is1to3":"Tag-module_is1to3__3j5K-","is1to4":"Tag-module_is1to4__2vq4r","slide":"Tag-module_slide__2nMDw","game":"Tag-module_game__3j5yG","card":"Tag-module_card__1EAeF","live":"Tag-module_live__rwXuR","episode":"Tag-module_episode__3o6gg","podcast":"Tag-module_podcast__VPoll","rich":"Tag-module_rich__2URd9","isInDynamicBlock":"Tag-module_isInDynamicBlock__1YM9I","mobile":"Tag-module_mobile__QQxuv","desktop":"Tag-module_desktop__1Bjsy"};
696
+ var styles$8 = {"root":"Tag-module_root__3IqWC","small":"Tag-module_small__2IAb7","large":"Tag-module_large__22z_o","dark":"Tag-module_dark__sgnt1","light":"Tag-module_light__1zUhp","gold":"Tag-module_gold__2ksA7","gray":"Tag-module_gray__mGAO_","inherit":"Tag-module_inherit__2QB5U","is1to1":"Tag-module_is1to1__3EDbC","is1to2":"Tag-module_is1to2__3xbC6","isInSuperBlock":"Tag-module_isInSuperBlock__38JE0","is1to3":"Tag-module_is1to3__3j5K-","is1to4":"Tag-module_is1to4__2vq4r","slide":"Tag-module_slide__2nMDw","game":"Tag-module_game__3j5yG","card":"Tag-module_card__1EAeF","live":"Tag-module_live__rwXuR","episode":"Tag-module_episode__3o6gg","podcast":"Tag-module_podcast__VPoll","rich":"Tag-module_rich__2URd9","isInDynamicBlock":"Tag-module_isInDynamicBlock__1YM9I","mobile":"Tag-module_mobile__QQxuv","desktop":"Tag-module_desktop__1Bjsy"};
586
697
 
587
698
  var Tag = function Tag(_ref) {
588
699
  var children = _ref.children,
@@ -593,10 +704,10 @@ var Tag = function Tag(_ref) {
593
704
  styleContext = _ref.styleContext,
594
705
  correlation = _ref.correlation,
595
706
  onlyOn = _ref.onlyOn;
596
- var classNames = [[styles$6.root, true], [styles$6[size], !!size && !!styles$6[size]], [styles$6[theme], !!theme && !!styles$6[theme]], [styles$6[onlyOn], !!onlyOn && !!styles$6[onlyOn]], [styles$6[correlation], !!correlation && !!styles$6[correlation]]];
707
+ var classNames = [[styles$8.root, true], [styles$8[size], !!size && !!styles$8[size]], [styles$8[theme], !!theme && !!styles$8[theme]], [styles$8[onlyOn], !!onlyOn && !!styles$8[onlyOn]], [styles$8[correlation], !!correlation && !!styles$8[correlation]]];
597
708
 
598
709
  if (styleContext) {
599
- classNames = makeStyleContext(classNames, styleContext, styles$6);
710
+ classNames = makeStyleContext(classNames, styleContext, styles$8);
600
711
  }
601
712
 
602
713
  return React.createElement("div", {
@@ -605,35 +716,35 @@ var Tag = function Tag(_ref) {
605
716
  }, children);
606
717
  };
607
718
 
608
- var styles$7 = {"root":"MediaCaption-module_root__KqTdw","caption":"MediaCaption-module_caption__1hr7Y","credit":"MediaCaption-module_credit__3ehAP","dark":"MediaCaption-module_dark__3tL1u","video":"MediaCaption-module_video__1KZ6k","picture":"MediaCaption-module_picture__3AAMH","desktop":"MediaCaption-module_desktop__3Saev"};
719
+ var styles$9 = {"root":"MediaCaption-module_root__KqTdw","caption":"MediaCaption-module_caption__1hr7Y","credit":"MediaCaption-module_credit__3ehAP","dark":"MediaCaption-module_dark__3tL1u","video":"MediaCaption-module_video__1KZ6k","picture":"MediaCaption-module_picture__3AAMH","desktop":"MediaCaption-module_desktop__3Saev"};
609
720
 
610
721
  var MediaCaption = function MediaCaption(_ref) {
611
722
  var credit = _ref.credit,
612
723
  caption = _ref.caption,
613
724
  styleContext = _ref.styleContext;
614
- var classNames = [[styles$7.root, true]];
725
+ var classNames = [[styles$9.root, true]];
615
726
 
616
727
  if (styleContext) {
617
- classNames = makeStyleContext(classNames, styleContext, styles$7);
728
+ classNames = makeStyleContext(classNames, styleContext, styles$9);
618
729
  }
619
730
 
620
731
  return React.createElement("div", {
621
732
  "data-testid": "media-caption",
622
733
  className: makeClassName(classNames)
623
734
  }, caption && React.createElement("div", {
624
- className: styles$7.caption,
735
+ className: styles$9.caption,
625
736
  dangerouslySetInnerHTML: {
626
737
  __html: caption
627
738
  }
628
739
  }), credit && React.createElement("div", {
629
- className: styles$7.credit,
740
+ className: styles$9.credit,
630
741
  dangerouslySetInnerHTML: {
631
742
  __html: credit
632
743
  }
633
744
  }));
634
745
  };
635
746
 
636
- var styles$8 = {"root":"Table-module_root__1VsG6","card":"Table-module_card__3gbok","table":"Table-module_table__nZIkV","slide":"Table-module_slide__nSGPC","wrapper":"Table-module_wrapper__1YTKM","tracks":"Table-module_tracks__2wrDB","default":"Table-module_default__3CGeE","full":"Table-module_full__S5pDB","row":"Table-module_row__3TH83","cell":"Table-module_cell__EFKDW","fixedColumn":"Table-module_fixedColumn__E1hN5","white":"Table-module_white__gzvo0","gray":"Table-module_gray__3da6S","pink":"Table-module_pink__3oH1l","blue":"Table-module_blue__GM27F","yellow":"Table-module_yellow__2jhvA","orange":"Table-module_orange__1c-oM","green":"Table-module_green__13OIM","violet":"Table-module_violet__2W-kO","header":"Table-module_header__1exlo","s":"Table-module_s__Vl_Eg","m":"Table-module_m__29G9r","l":"Table-module_l__1ZSMc","xs":"Table-module_xs__au2Oe"};
747
+ var styles$a = {"root":"Table-module_root__1VsG6","card":"Table-module_card__3gbok","table":"Table-module_table__nZIkV","slide":"Table-module_slide__nSGPC","wrapper":"Table-module_wrapper__1YTKM","tracks":"Table-module_tracks__2wrDB","default":"Table-module_default__3CGeE","full":"Table-module_full__S5pDB","row":"Table-module_row__3TH83","cell":"Table-module_cell__EFKDW","fixedColumn":"Table-module_fixedColumn__E1hN5","white":"Table-module_white__gzvo0","gray":"Table-module_gray__3da6S","pink":"Table-module_pink__3oH1l","blue":"Table-module_blue__GM27F","yellow":"Table-module_yellow__2jhvA","orange":"Table-module_orange__1c-oM","green":"Table-module_green__13OIM","violet":"Table-module_violet__2W-kO","header":"Table-module_header__1exlo","s":"Table-module_s__Vl_Eg","m":"Table-module_m__29G9r","l":"Table-module_l__1ZSMc","xs":"Table-module_xs__au2Oe"};
637
748
 
638
749
  var Table = function Table(_ref) {
639
750
  var styleContext = _ref.styleContext,
@@ -653,29 +764,29 @@ var Table = function Table(_ref) {
653
764
  '#e7f2ef': 'green',
654
765
  '#f4f0f8': 'violet'
655
766
  };
656
- var classNames = [[styles$8.root, true], [styles$8[display], !!display && !!styles$8[display]]];
767
+ var classNames = [[styles$a.root, true], [styles$a[display], !!display && !!styles$a[display]]];
657
768
 
658
769
  if (styleContext) {
659
- classNames = makeStyleContext(classNames, styleContext, styles$8);
770
+ classNames = makeStyleContext(classNames, styleContext, styles$a);
660
771
  }
661
772
 
662
773
  return React.createElement("div", {
663
774
  "data-testid": "table",
664
775
  className: makeClassName(classNames)
665
776
  }, React.createElement("div", {
666
- className: styles$8.wrapper
777
+ className: styles$a.wrapper
667
778
  }, React.createElement("div", {
668
- className: styles$8.table
779
+ className: styles$a.table
669
780
  }, React.createElement("div", {
670
- className: styles$8.tracks
781
+ className: styles$a.tracks
671
782
  }, rows.map(function (row, i) {
672
783
  return React.createElement("div", {
673
784
  key: row.key,
674
- className: styles$8.row
785
+ className: styles$a.row
675
786
  }, row.cells.map(function (cell, j) {
676
787
  return React.createElement("div", {
677
788
  key: cell.key,
678
- className: makeClassName([[styles$8.cell, true], [styles$8.header, options.header && i === 0], [styles$8[colors[cell.color]], true], [styles$8[columnsWidth[j]], true], [styles$8.fixedColumn, options.fixed_first_column && j === 0]]),
789
+ className: makeClassName([[styles$a.cell, true], [styles$a.header, options.header && i === 0], [styles$a[colors[cell.color]], true], [styles$a[columnsWidth[j]], true], [styles$a.fixedColumn, options.fixed_first_column && j === 0]]),
679
790
  dangerouslySetInnerHTML: {
680
791
  __html: cell.val
681
792
  }
@@ -687,15 +798,15 @@ var Table = function Table(_ref) {
687
798
  }));
688
799
  };
689
800
 
690
- var styles$9 = {"root":"MaterialNote-module_root__1AcYe","dark":"MaterialNote-module_dark__xCry-","note_credit":"MaterialNote-module_note_credit__PuFyX","note_caption":"MaterialNote-module_note_caption__1ezSo","center":"MaterialNote-module_center__18RxI","default":"MaterialNote-module_default__1lQPl","card":"MaterialNote-module_card__OWXbQ","slide":"MaterialNote-module_slide__1ZBBq","game":"MaterialNote-module_game__cADMe","gameSurvey":"MaterialNote-module_gameSurvey__3SiG-"};
801
+ var styles$b = {"root":"MaterialNote-module_root__1AcYe","dark":"MaterialNote-module_dark__xCry-","note_credit":"MaterialNote-module_note_credit__PuFyX","note_caption":"MaterialNote-module_note_caption__1ezSo","center":"MaterialNote-module_center__18RxI","default":"MaterialNote-module_default__1lQPl","card":"MaterialNote-module_card__OWXbQ","slide":"MaterialNote-module_slide__1ZBBq","game":"MaterialNote-module_game__cADMe","gameSurvey":"MaterialNote-module_gameSurvey__3SiG-"};
691
802
 
692
803
  var MaterialNote = function MaterialNote(_ref) {
693
804
  var data = _ref.block.data,
694
805
  styleContext = _ref.styleContext;
695
- var classNames = [[styles$9.root, true]];
806
+ var classNames = [[styles$b.root, true]];
696
807
 
697
808
  if (styleContext) {
698
- classNames = makeStyleContext(classNames, styleContext, styles$9);
809
+ classNames = makeStyleContext(classNames, styleContext, styles$b);
699
810
  }
700
811
 
701
812
  return React.createElement("div", {
@@ -703,7 +814,7 @@ var MaterialNote = function MaterialNote(_ref) {
703
814
  className: makeClassName(classNames)
704
815
  }, data && data.map(function (item) {
705
816
  return React.createElement("p", {
706
- className: styles$9[item.type],
817
+ className: styles$b[item.type],
707
818
  key: item.id,
708
819
  dangerouslySetInnerHTML: {
709
820
  __html: item.data
@@ -712,24 +823,24 @@ var MaterialNote = function MaterialNote(_ref) {
712
823
  }));
713
824
  };
714
825
 
715
- var styles$a = {"root":"BookmarkButton-module_root__3KmuY","control":"BookmarkButton-module_control__1A0ea","dark":"BookmarkButton-module_dark__1cwyi","light":"BookmarkButton-module_light__1uQyH","isInBookmarks":"BookmarkButton-module_isInBookmarks__1_5kB","isInGrid":"BookmarkButton-module_isInGrid__2pQ2B"};
826
+ var styles$c = {"root":"BookmarkButton-module_root__3KmuY","control":"BookmarkButton-module_control__1A0ea","dark":"BookmarkButton-module_dark__1cwyi","light":"BookmarkButton-module_light__1uQyH","isInBookmarks":"BookmarkButton-module_isInBookmarks__1_5kB","isInGrid":"BookmarkButton-module_isInGrid__2pQ2B"};
716
827
 
717
828
  var BookmarkButton = function BookmarkButton(_ref) {
718
829
  var styleContext = _ref.styleContext,
719
830
  theme = _ref.theme,
720
831
  isInBookmarks = _ref.isInBookmarks,
721
832
  _onClick = _ref.onClick;
722
- var classNames = [[styles$a.root, true], [styles$a.isInBookmarks, isInBookmarks], [styles$a[theme], !!theme && !!styles$a[theme]]];
833
+ var classNames = [[styles$c.root, true], [styles$c.isInBookmarks, isInBookmarks], [styles$c[theme], !!theme && !!styles$c[theme]]];
723
834
 
724
835
  if (styleContext) {
725
- classNames = makeStyleContext(classNames, styleContext, styles$a);
836
+ classNames = makeStyleContext(classNames, styleContext, styles$c);
726
837
  }
727
838
 
728
839
  return React.createElement("div", {
729
840
  "data-testid": "bookmark-button",
730
841
  className: makeClassName(classNames)
731
842
  }, React.createElement("button", {
732
- className: styles$a.control,
843
+ className: styles$c.control,
733
844
  onClick: function onClick() {
734
845
  return _onClick();
735
846
  },
@@ -740,45 +851,45 @@ var BookmarkButton = function BookmarkButton(_ref) {
740
851
  })));
741
852
  };
742
853
 
743
- var styles$b = {"root":"MaterialTitle-module_root__18ku-","primary":"MaterialTitle-module_primary__2Sfmx","secondary":"MaterialTitle-module_secondary__3uDp4"};
854
+ var styles$d = {"root":"MaterialTitle-module_root__18ku-","primary":"MaterialTitle-module_primary__2Sfmx","secondary":"MaterialTitle-module_secondary__3uDp4"};
744
855
 
745
856
  var Primary = function Primary(_ref) {
746
857
  var children = _ref.children;
747
858
  return React.createElement("span", {
748
- className: styles$b.primary
859
+ className: styles$d.primary
749
860
  }, children);
750
861
  };
751
862
  var Secondary = function Secondary(_ref2) {
752
863
  var children = _ref2.children;
753
864
  return React.createElement("span", {
754
- className: styles$b.secondary
865
+ className: styles$d.secondary
755
866
  }, children);
756
867
  };
757
868
  var MaterialTitle = function MaterialTitle(_ref3) {
758
869
  var children = _ref3.children;
759
870
  return React.createElement("h1", {
760
- className: styles$b.root,
871
+ className: styles$d.root,
761
872
  "data-testid": "material-title"
762
873
  }, children);
763
874
  };
764
875
 
765
- var styles$c = {"root":"Dropdown-module_root__11PNk","active":"Dropdown-module_active__3IwAl","menu":"Dropdown-module_menu__3PIqD","isInAudioPanel":"Dropdown-module_isInAudioPanel__1zv7F"};
876
+ var styles$e = {"root":"Dropdown-module_root__11PNk","active":"Dropdown-module_active__3IwAl","menu":"Dropdown-module_menu__3PIqD","isInAudioPanel":"Dropdown-module_isInAudioPanel__1zv7F"};
766
877
 
767
878
  var Menu = function Menu(_ref) {
768
879
  var children = _ref.children;
769
880
  return React.createElement("div", {
770
881
  "data-testid": "dropdown",
771
- className: styles$c.menu
882
+ className: styles$e.menu
772
883
  }, children);
773
884
  };
774
885
  var Dropdown = function Dropdown(_ref2) {
775
886
  var children = _ref2.children,
776
887
  active = _ref2.active,
777
888
  styleContext = _ref2.styleContext;
778
- var classNames = [[styles$c.root, true], [styles$c.active, !!active && !!styles$c.active]];
889
+ var classNames = [[styles$e.root, true], [styles$e.active, !!active && !!styles$e.active]];
779
890
 
780
891
  if (styleContext) {
781
- classNames = makeStyleContext(classNames, styleContext, styles$c);
892
+ classNames = makeStyleContext(classNames, styleContext, styles$e);
782
893
  }
783
894
 
784
895
  return React.createElement("div", {
@@ -787,21 +898,21 @@ var Dropdown = function Dropdown(_ref2) {
787
898
  }, children);
788
899
  };
789
900
 
790
- var styles$d = {"root":"Toolbar-module_root__2HF2r","list":"Toolbar-module_list__1n5ny","item":"Toolbar-module_item__36x7d","isInTopbar":"Toolbar-module_isInTopbar__223iP","center":"Toolbar-module_center__3_H8M","game":"Toolbar-module_game__5-jY_","gameSurvey":"Toolbar-module_gameSurvey__1hQEz","dark":"Toolbar-module_dark__2Ejc9"};
901
+ var styles$f = {"root":"Toolbar-module_root__2HF2r","list":"Toolbar-module_list__1n5ny","item":"Toolbar-module_item__36x7d","isInTopbar":"Toolbar-module_isInTopbar__223iP","center":"Toolbar-module_center__3_H8M","game":"Toolbar-module_game__5-jY_","gameSurvey":"Toolbar-module_gameSurvey__1hQEz","dark":"Toolbar-module_dark__2Ejc9"};
791
902
 
792
903
  var Toolbar = function Toolbar(_ref) {
793
904
  var children = _ref.children,
794
905
  styleContext = _ref.styleContext;
795
- var classNames = [[styles$d.root, true]];
906
+ var classNames = [[styles$f.root, true]];
796
907
 
797
908
  if (styleContext) {
798
- classNames = makeStyleContext(classNames, styleContext, styles$d);
909
+ classNames = makeStyleContext(classNames, styleContext, styles$f);
799
910
  }
800
911
 
801
912
  var renderItems = function renderItems() {
802
913
  return Children.map(children, function (item, index) {
803
914
  return React.createElement("li", {
804
- className: styles$d.item,
915
+ className: styles$f.item,
805
916
  key: index + "-" + item.props.type
806
917
  }, React.cloneElement(item));
807
918
  });
@@ -811,96 +922,11 @@ var Toolbar = function Toolbar(_ref) {
811
922
  "data-testid": "toolbar",
812
923
  className: makeClassName(classNames)
813
924
  }, React.createElement("ul", {
814
- className: styles$d.list
925
+ className: styles$f.list
815
926
  }, renderItems()));
816
927
  };
817
928
 
818
- var styles$e = {"root":"Popover-module_root__1v6f_","fadeOut":"Popover-module_fadeOut__3EZhx","visible":"Popover-module_visible__eK5ZQ","fadeIn":"Popover-module_fadeIn__AkrSN","overlay":"Popover-module_overlay__2SBL0","container":"Popover-module_container__FnZT-","disappear":"Popover-module_disappear__3Q9LI","dismiss":"Popover-module_dismiss__3RnLj","background":"Popover-module_background__1KKaP","appear":"Popover-module_appear__37vPd"};
819
-
820
- var Popover = function Popover(_ref) {
821
- var children = _ref.children,
822
- onClose = _ref.onClose;
823
-
824
- var _useState = useState(true),
825
- visible = _useState[0],
826
- setVisible = _useState[1];
827
-
828
- var handleClose = function handleClose() {
829
- setVisible(false);
830
- setTimeout(onClose, 350);
831
- };
832
-
833
- var handleScroll = function handleScroll() {
834
- handleClose();
835
- };
836
-
837
- var escFunction = function escFunction(event) {
838
- if (event.key === 'Escape') {
839
- handleClose();
840
- }
841
- };
842
-
843
- useEffect(function () {
844
- window.addEventListener('keydown', escFunction, false);
845
- window.addEventListener('scroll', handleScroll, false);
846
- return function () {
847
- window.removeEventListener('keydown', escFunction, false);
848
- window.removeEventListener('scroll', handleScroll, false);
849
- };
850
- }, [visible]);
851
- /* eslint-disable jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions */
852
-
853
- return React.createElement("div", {
854
- "data-testid": "popover",
855
- className: makeClassName([[styles$e.root, true], [styles$e.visible, visible]])
856
- }, React.createElement("div", {
857
- className: styles$e.overlay,
858
- onClick: function onClick() {
859
- return handleClose();
860
- }
861
- }), React.createElement("div", {
862
- className: styles$e.container
863
- }, React.createElement("button", {
864
- type: "button",
865
- className: styles$e.dismiss,
866
- onClick: function onClick() {
867
- return handleClose();
868
- },
869
- "aria-label": "dismiss"
870
- }), React.createElement("svg", {
871
- width: "100%",
872
- className: styles$e.background
873
- }, React.createElement("defs", null, React.createElement("mask", {
874
- id: "myMask",
875
- x: "0",
876
- y: "0",
877
- width: "100%",
878
- height: "100%"
879
- }, React.createElement("rect", {
880
- fill: "white",
881
- y: "0",
882
- width: "100%",
883
- height: "100%",
884
- x: "0"
885
- }), React.createElement("svg", {
886
- x: "50%",
887
- overflow: "visible"
888
- }, React.createElement("g", {
889
- transform: "translate(-12 0)"
890
- }, React.createElement("path", {
891
- d: "M4.61852778e-14,9.76996262e-15 L9.84597532,5.80270273 C11.0992017,6.54128882 12.6546044,6.54128882 13.9078308,5.80270273 L23.7538061,9.76996262e-15 L4.61852778e-14,9.76996262e-15 Z"
892
- }))))), React.createElement("rect", {
893
- fill: "#F7F7F7",
894
- id: "base-mask",
895
- mask: "url(#myMask)",
896
- x: "0",
897
- y: "0",
898
- width: "100%",
899
- height: "100%"
900
- })), children));
901
- };
902
-
903
- var styles$f = {"root":"Meta-module_root__12AG7","rich":"Meta-module_rich__1XBtZ","podcast":"Meta-module_podcast__1m4zo","episode":"Meta-module_episode__1K2Xv","simple":"Meta-module_simple__3vUiI","slide":"Meta-module_slide__3g6fG","card":"Meta-module_card__LE1RK","game":"Meta-module_game__3aNlZ","isInMaterial":"Meta-module_isInMaterial__zaYMy","isInSearchItem":"Meta-module_isInSearchItem__1wbpx","center":"Meta-module_center__3BBPr","half":"Meta-module_half__1xRkT","light":"Meta-module_light__2baE-","dark":"Meta-module_dark__24y9m","hasSource":"Meta-module_hasSource__2lXiN","bookmark":"Meta-module_bookmark__3ot3k","mobile":"Meta-module_mobile__22LGV","desktop":"Meta-module_desktop__1ZGUS"};
929
+ var styles$g = {"root":"Meta-module_root__12AG7","rich":"Meta-module_rich__1XBtZ","podcast":"Meta-module_podcast__1m4zo","episode":"Meta-module_episode__1K2Xv","simple":"Meta-module_simple__3vUiI","slide":"Meta-module_slide__3g6fG","card":"Meta-module_card__LE1RK","game":"Meta-module_game__3aNlZ","isInMaterial":"Meta-module_isInMaterial__zaYMy","isInSearchItem":"Meta-module_isInSearchItem__1wbpx","center":"Meta-module_center__3BBPr","half":"Meta-module_half__1xRkT","light":"Meta-module_light__2baE-","dark":"Meta-module_dark__24y9m","hasSource":"Meta-module_hasSource__2lXiN","bookmark":"Meta-module_bookmark__3ot3k","mobile":"Meta-module_mobile__22LGV","desktop":"Meta-module_desktop__1ZGUS"};
904
930
 
905
931
  var Meta = function Meta(_ref) {
906
932
  var hasSource = _ref.hasSource,
@@ -908,10 +934,10 @@ var Meta = function Meta(_ref) {
908
934
  children = _ref.children,
909
935
  onlyOn = _ref.onlyOn,
910
936
  styleContext = _ref.styleContext;
911
- var classNames = [[styles$f.root, true], [styles$f[theme], !!theme && !!styles$f[theme]], [styles$f[onlyOn], !!onlyOn], [styles$f.hasSource, hasSource]];
937
+ var classNames = [[styles$g.root, true], [styles$g[theme], !!theme && !!styles$g[theme]], [styles$g[onlyOn], !!onlyOn], [styles$g.hasSource, hasSource]];
912
938
 
913
939
  if (styleContext) {
914
- classNames = makeStyleContext(classNames, styleContext, styles$f);
940
+ classNames = makeStyleContext(classNames, styleContext, styles$g);
915
941
  }
916
942
 
917
943
  return React.createElement("div", {
@@ -920,7 +946,7 @@ var Meta = function Meta(_ref) {
920
946
  }, children);
921
947
  };
922
948
 
923
- var styles$g = {"root":"Timestamp-module_root__coOvT"};
949
+ var styles$h = {"root":"Timestamp-module_root__coOvT"};
924
950
 
925
951
  var Timestamp = function Timestamp(_ref) {
926
952
  var publishedAt = _ref.publishedAt,
@@ -945,7 +971,7 @@ var Timestamp = function Timestamp(_ref) {
945
971
 
946
972
  return React.createElement("time", {
947
973
  "data-testid": "timestamp",
948
- className: styles$g.root
974
+ className: styles$h.root
949
975
  }, published);
950
976
  };
951
977
 
@@ -996,9 +1022,9 @@ var DangerousHTML = function DangerousHTML(_ref) {
996
1022
  });
997
1023
  }, []);
998
1024
  useEffect(function () {
999
- if (canRenderHtml && html.indexOf('script') > -1 && element.current.firstChild) {
1025
+ if (canRenderHtml && html.indexOf('script') > -1 && element.current.firstElementChild) {
1000
1026
  element.current.firstElementChild.innerHTML = html;
1001
- replaceScriptElementsRecursive(element.current.firstChild);
1027
+ replaceScriptElementsRecursive(element.current.firstElementChild);
1002
1028
  prepareAnchors();
1003
1029
  }
1004
1030
  }, [canRenderHtml, element, html, replaceScriptElementsRecursive, prepareAnchors]);
@@ -1012,7 +1038,7 @@ var DangerousHTML = function DangerousHTML(_ref) {
1012
1038
  }));
1013
1039
  };
1014
1040
 
1015
- var styles$h = {"root":"EmbedBlock-module_root__28k9U","object":"EmbedBlock-module_object__2_UZ7","objectWrap":"EmbedBlock-module_objectWrap__1aDVd","proportional":"EmbedBlock-module_proportional__3lAv4","attachment":"EmbedBlock-module_attachment__2pE0t","default":"EmbedBlock-module_default__LSDny","xs":"EmbedBlock-module_xs__1hFgW","full":"EmbedBlock-module_full__1TEjx","super_full":"EmbedBlock-module_super_full__1Fn9A","figure":"EmbedBlock-module_figure__vAvcN","dark":"EmbedBlock-module_dark__1be2G","isInGroupedBlock":"EmbedBlock-module_isInGroupedBlock__3r_i-","gameEmbed":"EmbedBlock-module_gameEmbed__AZQSo","mobile":"EmbedBlock-module_mobile__1P-eo","desktop":"EmbedBlock-module_desktop__SF5a_","control":"EmbedBlock-module_control__xr8dZ","raw_html":"EmbedBlock-module_raw_html__MQoAA","mobileFullwidth":"EmbedBlock-module_mobileFullwidth__QFFLH","card":"EmbedBlock-module_card__KTbvp","slide":"EmbedBlock-module_slide__3cL3M","cc":"EmbedBlock-module_cc__1BQ5g","isInAnswer":"EmbedBlock-module_isInAnswer__tLlgs","picture":"EmbedBlock-module_picture__186q0","wrapper":"EmbedBlock-module_wrapper__33XvX"};
1041
+ var styles$i = {"root":"EmbedBlock-module_root__28k9U","object":"EmbedBlock-module_object__2_UZ7","objectWrap":"EmbedBlock-module_objectWrap__1aDVd","proportional":"EmbedBlock-module_proportional__3lAv4","attachment":"EmbedBlock-module_attachment__2pE0t","default":"EmbedBlock-module_default__LSDny","xs":"EmbedBlock-module_xs__1hFgW","full":"EmbedBlock-module_full__1TEjx","super_full":"EmbedBlock-module_super_full__1Fn9A","figure":"EmbedBlock-module_figure__vAvcN","dark":"EmbedBlock-module_dark__1be2G","isInGroupedBlock":"EmbedBlock-module_isInGroupedBlock__3r_i-","gameEmbed":"EmbedBlock-module_gameEmbed__AZQSo","mobile":"EmbedBlock-module_mobile__1P-eo","desktop":"EmbedBlock-module_desktop__SF5a_","control":"EmbedBlock-module_control__xr8dZ","raw_html":"EmbedBlock-module_raw_html__MQoAA","mobileFullwidth":"EmbedBlock-module_mobileFullwidth__QFFLH","card":"EmbedBlock-module_card__KTbvp","slide":"EmbedBlock-module_slide__3cL3M","cc":"EmbedBlock-module_cc__1BQ5g","isInAnswer":"EmbedBlock-module_isInAnswer__tLlgs","picture":"EmbedBlock-module_picture__186q0","wrapper":"EmbedBlock-module_wrapper__33XvX"};
1016
1042
 
1017
1043
  var EmbedGif = function EmbedGif(_ref) {
1018
1044
  var gif = _ref.gif,
@@ -1060,9 +1086,9 @@ var EmbedGif = function EmbedGif(_ref) {
1060
1086
  };
1061
1087
  }, []);
1062
1088
  return React.createElement("div", {
1063
- className: styles$h.figure
1089
+ className: styles$i.figure
1064
1090
  }, React.createElement("div", {
1065
- className: styles$h.objectWrap,
1091
+ className: styles$i.objectWrap,
1066
1092
  style: style,
1067
1093
  "data-frozen": videoFrozen
1068
1094
  }, React.createElement("video", {
@@ -1128,7 +1154,7 @@ var EmbedBlock = function EmbedBlock(_ref) {
1128
1154
  case 'image':
1129
1155
  {
1130
1156
  return React.createElement("div", {
1131
- className: styles$h.figure
1157
+ className: styles$i.figure
1132
1158
  }, (small || optimized) && React.createElement(Image, {
1133
1159
  fullscreen: block.data.fullscreen,
1134
1160
  source: !optimized && [small, large],
@@ -1144,7 +1170,7 @@ var EmbedBlock = function EmbedBlock(_ref) {
1144
1170
  case 'game_embed':
1145
1171
  {
1146
1172
  return React.createElement("div", {
1147
- className: styles$h.gameEmbed
1173
+ className: styles$i.gameEmbed
1148
1174
  }, React.createElement("iframe", {
1149
1175
  src: block.data.game_src,
1150
1176
  id: block.data.game_id,
@@ -1155,7 +1181,7 @@ var EmbedBlock = function EmbedBlock(_ref) {
1155
1181
  case 'dots_on_image':
1156
1182
  {
1157
1183
  return React.createElement("div", {
1158
- className: styles$h.figure
1184
+ className: styles$i.figure
1159
1185
  }, React.createElement(DotsOnImage, {
1160
1186
  block: data
1161
1187
  }));
@@ -1164,12 +1190,12 @@ var EmbedBlock = function EmbedBlock(_ref) {
1164
1190
  default:
1165
1191
  {
1166
1192
  return React.createElement("div", {
1167
- className: styles$h.object
1193
+ className: styles$i.object
1168
1194
  }, React.createElement("div", {
1169
- className: styles$h.wrapper,
1195
+ className: styles$i.wrapper,
1170
1196
  style: style
1171
1197
  }, React.createElement(DangerousHTML, {
1172
- className: styles$h.objectWrap,
1198
+ className: styles$i.objectWrap,
1173
1199
  html: html
1174
1200
  })));
1175
1201
  }
@@ -1181,31 +1207,31 @@ var EmbedBlock = function EmbedBlock(_ref) {
1181
1207
  style.height = 0;
1182
1208
  }
1183
1209
 
1184
- var classNames = [[styles$h.root, true], [styles$h.cc, cc], [styles$h[display], !!display && styles$h[display]], [styles$h[provider], !!provider && !!styles$h[provider]], [styles$h[onlyOn], !!onlyOn && styles$h[onlyOn]], [styles$h.mobileFullwidth, mobileFullwidth], [styles$h.proportional, isProportional]]; // Убираем из контекста все, что не начинается с приставки isIn,
1210
+ var classNames = [[styles$i.root, true], [styles$i.cc, cc], [styles$i[display], !!display && styles$i[display]], [styles$i[provider], !!provider && !!styles$i[provider]], [styles$i[onlyOn], !!onlyOn && styles$i[onlyOn]], [styles$i.mobileFullwidth, mobileFullwidth], [styles$i.proportional, isProportional]]; // Убираем из контекста все, что не начинается с приставки isIn,
1185
1211
  // чтобы не применились лишние модификаторы
1186
1212
  // TODO: в w6 модификаторы должны передаваться явно
1187
1213
 
1188
1214
  if (styleContext) {
1189
1215
  var filteredContext = Object.keys(styleContext).filter(function (key) {
1190
- return key.startsWith('isIn') && styles$h[key];
1216
+ return key.startsWith('isIn') && styles$i[key];
1191
1217
  }).reduce(function (acc, key) {
1192
- acc.push([styles$h[key], true]);
1218
+ acc.push([styles$i[key], true]);
1193
1219
  return acc;
1194
1220
  }, []);
1195
- classNames = makeStyleContext(classNames, filteredContext, styles$h);
1221
+ classNames = makeStyleContext(classNames, filteredContext, styles$i);
1196
1222
  }
1197
1223
 
1198
1224
  return React.createElement("figure", {
1199
1225
  className: makeClassName(classNames)
1200
1226
  }, children && React.createElement("div", {
1201
- className: styles$h.object
1227
+ className: styles$i.object
1202
1228
  }, React.createElement("div", {
1203
- className: styles$h.wrapper,
1229
+ className: styles$i.wrapper,
1204
1230
  style: style
1205
1231
  }, React.createElement("div", {
1206
- className: styles$h.objectWrap
1232
+ className: styles$i.objectWrap
1207
1233
  }, children))), !children && renderEmbed(style), cc === 'default' && React.createElement("figcaption", null, renderCC()), cc === 'button' && React.createElement("button", {
1208
- className: styles$h.control,
1234
+ className: styles$i.control,
1209
1235
  type: "button",
1210
1236
  "aria-label": "Open",
1211
1237
  onClick: function onClick() {
@@ -1281,15 +1307,15 @@ var EmbedBlockContainer = function EmbedBlockContainer(_ref) {
1281
1307
  });
1282
1308
  };
1283
1309
 
1284
- var styles$i = {"root":"QuoteBlock-module_root__2GrcC","center":"QuoteBlock-module_center__cTFNy"};
1310
+ var styles$j = {"root":"QuoteBlock-module_root__2GrcC","center":"QuoteBlock-module_center__cTFNy"};
1285
1311
 
1286
1312
  var QuoteBlock = function QuoteBlock(_ref) {
1287
1313
  var data = _ref.block.data,
1288
1314
  styleContext = _ref.styleContext;
1289
- var classNames = [[styles$i.root, true]];
1315
+ var classNames = [[styles$j.root, true]];
1290
1316
 
1291
1317
  if (styleContext) {
1292
- classNames = makeStyleContext(classNames, styleContext, styles$i);
1318
+ classNames = makeStyleContext(classNames, styleContext, styles$j);
1293
1319
  }
1294
1320
 
1295
1321
  return React.createElement("div", {
@@ -1302,7 +1328,7 @@ var QuoteBlock = function QuoteBlock(_ref) {
1302
1328
  }));
1303
1329
  };
1304
1330
 
1305
- var styles$j = {"root":"CardTitle-module_root__1uqqF","index":"CardTitle-module_index__4FsTf","title":"CardTitle-module_title__2iTI6","mobile":"CardTitle-module_mobile__1_kij","desktop":"CardTitle-module_desktop__1l3_n"};
1331
+ var styles$k = {"root":"CardTitle-module_root__1uqqF","index":"CardTitle-module_index__4FsTf","title":"CardTitle-module_title__2iTI6","mobile":"CardTitle-module_mobile__1_kij","desktop":"CardTitle-module_desktop__1l3_n"};
1306
1332
 
1307
1333
  var CardTitle = function CardTitle(_ref) {
1308
1334
  var _ref$block$data = _ref.block.data,
@@ -1312,15 +1338,15 @@ var CardTitle = function CardTitle(_ref) {
1312
1338
  styleContext = _ref.styleContext;
1313
1339
  return React.createElement("div", {
1314
1340
  "data-testid": "card-title",
1315
- className: makeClassName([[styles$j.root, true], [styles$j[onlyOn], !!onlyOn], [styles$j[styleContext], !!styleContext && !!styles$j[styleContext]]])
1341
+ className: makeClassName([[styles$k.root, true], [styles$k[onlyOn], !!onlyOn], [styles$k[styleContext], !!styleContext && !!styles$k[styleContext]]])
1316
1342
  }, React.createElement("div", {
1317
- className: styles$j.index
1343
+ className: styles$k.index
1318
1344
  }, index), React.createElement("h3", {
1319
- className: styles$j.title
1345
+ className: styles$k.title
1320
1346
  }, text));
1321
1347
  };
1322
1348
 
1323
- var styles$k = {"root":"ChapterBlock-module_root__1WyVn","subtitle":"ChapterBlock-module_subtitle__3TXll","mobile":"ChapterBlock-module_mobile__CiO0w","desktop":"ChapterBlock-module_desktop__tk1Nk"};
1349
+ var styles$l = {"root":"ChapterBlock-module_root__1WyVn","subtitle":"ChapterBlock-module_subtitle__3TXll","mobile":"ChapterBlock-module_mobile__CiO0w","desktop":"ChapterBlock-module_desktop__tk1Nk"};
1324
1350
 
1325
1351
  var ChapterBlock = function ChapterBlock(_ref) {
1326
1352
  var _ref$block = _ref.block,
@@ -1329,9 +1355,9 @@ var ChapterBlock = function ChapterBlock(_ref) {
1329
1355
  styleContext = _ref.styleContext;
1330
1356
  return React.createElement("div", {
1331
1357
  "data-testid": "chapter-block",
1332
- className: makeClassName([[styles$k.root, true], [styles$k[onlyOn], !!onlyOn]])
1358
+ className: makeClassName([[styles$l.root, true], [styles$l[onlyOn], !!onlyOn]])
1333
1359
  }, React.createElement("div", {
1334
- className: makeClassName([[styles$k.subtitle, true], [styles$k[styleContext], !!styleContext && !!styles$k[styleContext]]]),
1360
+ className: makeClassName([[styles$l.subtitle, true], [styles$l[styleContext], !!styleContext && !!styles$l[styleContext]]]),
1335
1361
  dangerouslySetInnerHTML: {
1336
1362
  __html: data
1337
1363
  }
@@ -1346,8 +1372,6 @@ var generateGradient = function generateGradient(color) {
1346
1372
  return "linear-gradient(-180deg, " + gradient + ")";
1347
1373
  };
1348
1374
 
1349
- var styles$l = {"root":"Cover-module_root__18Z8J","body":"Cover-module_body__1xs8e","image":"Cover-module_image__2f3Qc","rich":"Cover-module_rich__1fAGA","dark":"Cover-module_dark__2Ac-w","light":"Cover-module_light__FUp5X","control":"Cover-module_control__VXbhi","isInDynamicBlock":"Cover-module_isInDynamicBlock__3eghb","mobile":"Cover-module_mobile__5DKa1","desktop":"Cover-module_desktop__2mrOc"};
1350
-
1351
1375
  var styles$m = {"root":"SimpleTitle-module_root__2jVQN","mobile":"SimpleTitle-module_mobile__11gBz","desktop":"SimpleTitle-module_desktop__3yXgy"};
1352
1376
 
1353
1377
  var SimpleTitle = function SimpleTitle(_ref) {
@@ -1500,9 +1524,10 @@ var styles$r = {"root":"SourceBlock-module_root__1P3XD","text":"SourceBlock-modu
1500
1524
  var SourceBlock = function SourceBlock(_ref) {
1501
1525
  var _ref$block = _ref.block,
1502
1526
  onlyOn = _ref$block.only_on,
1503
- quote = _ref$block.quote,
1504
- origin = _ref$block.origin,
1505
- url = _ref$block.url,
1527
+ _ref$block$data = _ref$block.data,
1528
+ quote = _ref$block$data.quote,
1529
+ origin = _ref$block$data.origin,
1530
+ url = _ref$block$data.url,
1506
1531
  styleContext = _ref.styleContext;
1507
1532
  var classNames = [[styles$r.root, true], [styles$r[onlyOn], true]];
1508
1533
 
@@ -1781,7 +1806,7 @@ var MetaContainer = function MetaContainer(_ref) {
1781
1806
  icon: isListened ? 'listened' : 'read',
1782
1807
  size: "unset"
1783
1808
  })), isSlides && lang === 'ru' && React.createElement("div", {
1784
- className: styles$f.bookmark
1809
+ className: styles$g.bookmark
1785
1810
  }, React.createElement(BookmarkButton, {
1786
1811
  isInBookmarks: isInBookmarks,
1787
1812
  onClick: function onClick() {
@@ -1937,6 +1962,8 @@ var RenderBlocks = function RenderBlocks(_ref) {
1937
1962
  }
1938
1963
  };
1939
1964
 
1965
+ var styles$w = {"root":"Cover-module_root__18Z8J","body":"Cover-module_body__1xs8e","image":"Cover-module_image__2f3Qc","rich":"Cover-module_rich__1fAGA","dark":"Cover-module_dark__2Ac-w","light":"Cover-module_light__FUp5X","control":"Cover-module_control__VXbhi","isInDynamicBlock":"Cover-module_isInDynamicBlock__3eghb","mobile":"Cover-module_mobile__5DKa1","desktop":"Cover-module_desktop__2mrOc"};
1966
+
1940
1967
  var Cover = function Cover(_ref) {
1941
1968
  var _ref$block = _ref.block,
1942
1969
  onlyOn = _ref$block.only_on,
@@ -1956,15 +1983,15 @@ var Cover = function Cover(_ref) {
1956
1983
  setIsPopoverShown = _useState[1];
1957
1984
 
1958
1985
  var style = {};
1959
- var classNames = [[styles$l.root, true], [styles$l[onlyOn], !!onlyOn && !!styles$l[onlyOn]]];
1986
+ var classNames = [[styles$w.root, true], [styles$w[onlyOn], !!onlyOn && !!styles$w[onlyOn]]];
1960
1987
 
1961
1988
  if (styleContext) {
1962
- classNames = makeStyleContext(classNames, styleContext, styles$l);
1989
+ classNames = makeStyleContext(classNames, styleContext, styles$w);
1963
1990
  }
1964
1991
 
1965
1992
  if (gradients) {
1966
1993
  var theme = [gradients.text_rgb === '0,0,0' ? 'dark' : 'light'];
1967
- classNames = makeStyleContext(classNames, theme, styles$l);
1994
+ classNames = makeStyleContext(classNames, theme, styles$w);
1968
1995
  style.backgroundImage = generateGradient(gradients.bg_rgb);
1969
1996
  }
1970
1997
 
@@ -1980,13 +2007,13 @@ var Cover = function Cover(_ref) {
1980
2007
  "data-testid": "cover",
1981
2008
  className: makeClassName(classNames)
1982
2009
  }, React.createElement("div", {
1983
- className: styles$l.image
2010
+ className: styles$w.image
1984
2011
  }, React.createElement(Image, {
1985
2012
  optimized: urls,
1986
2013
  ratio: mobileRatio,
1987
2014
  display: "narrow"
1988
2015
  })), React.createElement("div", {
1989
- className: styles$l.body,
2016
+ className: styles$w.body,
1990
2017
  style: style
1991
2018
  }, blocks.map(function (item) {
1992
2019
  return React.createElement(RenderBlocks, {
@@ -1995,7 +2022,7 @@ var Cover = function Cover(_ref) {
1995
2022
  styleContext: styleContext
1996
2023
  });
1997
2024
  })), cc === 'button' && React.createElement("button", {
1998
- className: styles$l.control,
2025
+ className: styles$w.control,
1999
2026
  type: "button",
2000
2027
  "aria-label": "Open",
2001
2028
  onClick: function onClick() {
@@ -2008,7 +2035,7 @@ var Cover = function Cover(_ref) {
2008
2035
  }, renderCC('isInPopover')));
2009
2036
  };
2010
2037
 
2011
- var styles$w = {"root":"HalfBlock-module_root__2frv2","main":"HalfBlock-module_main__2XX73","body":"HalfBlock-module_body__3MnEN","footer":"HalfBlock-module_footer__1C0yp","image":"HalfBlock-module_image__2lYel","mobile":"HalfBlock-module_mobile__2latf","desktop":"HalfBlock-module_desktop__3B1Ej"};
2038
+ var styles$x = {"root":"HalfBlock-module_root__2frv2","main":"HalfBlock-module_main__2XX73","body":"HalfBlock-module_body__3MnEN","footer":"HalfBlock-module_footer__1C0yp","image":"HalfBlock-module_image__2lYel","mobile":"HalfBlock-module_mobile__2latf","desktop":"HalfBlock-module_desktop__3B1Ej"};
2012
2039
 
2013
2040
  var HalfBlock = function HalfBlock(_ref) {
2014
2041
  var _ref$block = _ref.block,
@@ -2020,25 +2047,25 @@ var HalfBlock = function HalfBlock(_ref) {
2020
2047
  credit = _ref$block$data$cover.credit,
2021
2048
  caption = _ref$block$data$cover.caption,
2022
2049
  styleContext = _ref.styleContext;
2023
- var classNames = [[styles$w.root, true], [styles$w[onlyOn], true]];
2050
+ var classNames = [[styles$x.root, true], [styles$x[onlyOn], true]];
2024
2051
 
2025
2052
  if (styleContext) {
2026
- classNames = makeStyleContext(classNames, styleContext, styles$w);
2053
+ classNames = makeStyleContext(classNames, styleContext, styles$x);
2027
2054
  }
2028
2055
 
2029
2056
  return React.createElement("div", {
2030
2057
  "data-testid": "half-block",
2031
2058
  className: makeClassName(classNames)
2032
2059
  }, React.createElement("div", {
2033
- className: styles$w.main
2060
+ className: styles$x.main
2034
2061
  }, React.createElement("div", {
2035
- className: styles$w.image
2062
+ className: styles$x.image
2036
2063
  }, React.createElement(Image, {
2037
2064
  optimized: optimized,
2038
2065
  ratio: ratio,
2039
2066
  display: "super_full"
2040
2067
  })), React.createElement("div", {
2041
- className: styles$w.body
2068
+ className: styles$x.body
2042
2069
  }, data.blocks.map(function (item) {
2043
2070
  return React.createElement(RenderBlocks, {
2044
2071
  key: item.id,
@@ -2046,7 +2073,7 @@ var HalfBlock = function HalfBlock(_ref) {
2046
2073
  styleContext: ['rich']
2047
2074
  });
2048
2075
  }))), React.createElement("div", {
2049
- className: styles$w.footer
2076
+ className: styles$x.footer
2050
2077
  }, React.createElement(MediaCaption, {
2051
2078
  credit: credit,
2052
2079
  caption: caption,
@@ -2054,17 +2081,17 @@ var HalfBlock = function HalfBlock(_ref) {
2054
2081
  })));
2055
2082
  };
2056
2083
 
2057
- var styles$x = {"root":"ImportantLead-module_root__2BdT3","slide":"ImportantLead-module_slide__3kQ9x","mobile":"ImportantLead-module_mobile__3BXbm","desktop":"ImportantLead-module_desktop__3Zljc"};
2084
+ var styles$y = {"root":"ImportantLead-module_root__2BdT3","slide":"ImportantLead-module_slide__3kQ9x","mobile":"ImportantLead-module_mobile__3BXbm","desktop":"ImportantLead-module_desktop__3Zljc"};
2058
2085
 
2059
2086
  var ImportantLead = function ImportantLead(_ref) {
2060
2087
  var _ref$block = _ref.block,
2061
2088
  onlyOn = _ref$block.only_on,
2062
2089
  data = _ref$block.data,
2063
2090
  styleContext = _ref.styleContext;
2064
- var classNames = [[styles$x.root, true], [styles$x[onlyOn], !!onlyOn]];
2091
+ var classNames = [[styles$y.root, true], [styles$y[onlyOn], !!onlyOn]];
2065
2092
 
2066
2093
  if (styleContext) {
2067
- classNames = makeStyleContext(classNames, styleContext, styles$x);
2094
+ classNames = makeStyleContext(classNames, styleContext, styles$y);
2068
2095
  }
2069
2096
 
2070
2097
  return React.createElement("div", {
@@ -2079,7 +2106,7 @@ var ImportantLead = function ImportantLead(_ref) {
2079
2106
  }));
2080
2107
  };
2081
2108
 
2082
- var styles$y = {"root":"Spoiler-module_root__1OfSR","header":"Spoiler-module_header__1rZUs","body":"Spoiler-module_body__Q1e_c","spoiled":"Spoiler-module_spoiled__1A5r4","footer":"Spoiler-module_footer__23mh7","spoilerSticky":"Spoiler-module_spoilerSticky__3Kd30","center":"Spoiler-module_center__tq1m0","full":"Spoiler-module_full__1QFqR","default":"Spoiler-module_default__2Kjx8","mobile":"Spoiler-module_mobile__2BPt8","desktop":"Spoiler-module_desktop__1BIFJ"};
2109
+ var styles$z = {"root":"Spoiler-module_root__1OfSR","header":"Spoiler-module_header__1rZUs","body":"Spoiler-module_body__Q1e_c","spoiled":"Spoiler-module_spoiled__1A5r4","footer":"Spoiler-module_footer__23mh7","spoilerSticky":"Spoiler-module_spoilerSticky__3Kd30","center":"Spoiler-module_center__tq1m0","full":"Spoiler-module_full__1QFqR","default":"Spoiler-module_default__2Kjx8","mobile":"Spoiler-module_mobile__2BPt8","desktop":"Spoiler-module_desktop__1BIFJ"};
2083
2110
 
2084
2111
  var Spoiler = function Spoiler(_ref) {
2085
2112
  var _ref$block = _ref.block,
@@ -2114,10 +2141,10 @@ var Spoiler = function Spoiler(_ref) {
2114
2141
  }
2115
2142
  };
2116
2143
 
2117
- var classNames = [[styles$y.root, true], [styles$y[onlyOn], !!onlyOn], [styles$y[display], !!display && styles$y[display]], [[styles$y.spoiled], !!spoiled]];
2144
+ var classNames = [[styles$z.root, true], [styles$z[onlyOn], !!onlyOn], [styles$z[display], !!display && styles$z[display]], [[styles$z.spoiled], !!spoiled]];
2118
2145
 
2119
2146
  if (styleContext) {
2120
- classNames = makeStyleContext(classNames, styleContext, styles$y);
2147
+ classNames = makeStyleContext(classNames, styleContext, styles$z);
2121
2148
  }
2122
2149
 
2123
2150
  var buttonCollapse = button ? button.collapse : 'Свернуть';
@@ -2127,9 +2154,9 @@ var Spoiler = function Spoiler(_ref) {
2127
2154
  className: makeClassName(classNames),
2128
2155
  "data-testid": "spoiler"
2129
2156
  }, React.createElement("div", {
2130
- className: styles$y.header
2157
+ className: styles$z.header
2131
2158
  }, title && React.createElement("h3", null, title)), React.createElement("div", {
2132
- className: styles$y.body
2159
+ className: styles$z.body
2133
2160
  }, blocks.map(function (item) {
2134
2161
  return React.createElement(RenderBlocks, {
2135
2162
  key: item.id,
@@ -2137,7 +2164,7 @@ var Spoiler = function Spoiler(_ref) {
2137
2164
  styleContext: styleContext
2138
2165
  });
2139
2166
  })), React.createElement("div", {
2140
- className: styles$y.footer
2167
+ className: styles$z.footer
2141
2168
  }, React.createElement(Button, {
2142
2169
  size: "default",
2143
2170
  theme: "gray",
@@ -2213,7 +2240,7 @@ var RawHtmlBlock = function RawHtmlBlock(_ref) {
2213
2240
  }
2214
2241
  };
2215
2242
 
2216
- var styles$z = {"root":"ToolbarButton-module_root__xN-fq","dark":"ToolbarButton-module_dark__GrIOr","bookmark":"ToolbarButton-module_bookmark__3369b","isActive":"ToolbarButton-module_isActive__3NLAE","text":"ToolbarButton-module_text__32m6s"};
2243
+ var styles$A = {"root":"ToolbarButton-module_root__xN-fq","dark":"ToolbarButton-module_dark__GrIOr","bookmark":"ToolbarButton-module_bookmark__3369b","isActive":"ToolbarButton-module_isActive__3NLAE","text":"ToolbarButton-module_text__32m6s"};
2217
2244
 
2218
2245
  var ToolbarButton = function ToolbarButton(_ref) {
2219
2246
  var children = _ref.children,
@@ -2221,7 +2248,7 @@ var ToolbarButton = function ToolbarButton(_ref) {
2221
2248
  theme = _ref.theme,
2222
2249
  isActive = _ref.isActive,
2223
2250
  _onClick = _ref.onClick;
2224
- var classNames = [[styles$z.root, true], [styles$z[type], !!styles$z[type]], [styles$z[theme], !!styles$z[theme] && !!theme], [styles$z.isActive, !!isActive]];
2251
+ var classNames = [[styles$A.root, true], [styles$A[type], !!styles$A[type]], [styles$A[theme], !!styles$A[theme] && !!theme], [styles$A.isActive, !!isActive]];
2225
2252
  return React.createElement("button", {
2226
2253
  "data-testid": "toolbar-button",
2227
2254
  className: makeClassName(classNames),
@@ -2234,9 +2261,9 @@ var ToolbarButton = function ToolbarButton(_ref) {
2234
2261
  icon: type,
2235
2262
  styleContext: "isInToolbar"
2236
2263
  }), children && React.createElement("span", {
2237
- className: styles$z.text
2264
+ className: styles$A.text
2238
2265
  }, children));
2239
2266
  };
2240
2267
 
2241
- export { BookmarkButton, Button, CardTitle, ChapterBlock, Cover, DocumentItemsCount, DotsOnImage, Dropdown, EmbedBlockContainer, GroupedBlock, HalfBlock, Image, ImportantLead, Lazy, ListBlock, MaterialNote, MaterialTitle, MediaCaption, Menu, Meta, MetaItem, MetaItemLive, Popover, Primary, QuoteBlock, RawHtmlBlock, RelatedBlock, RenderBlocks, RichTitle, Secondary, SimpleBlock, SimpleTitle, SourceBlock, Spoiler, SvgSymbol, Switcher, Table, Tag, Timestamp, Toolbar, ToolbarButton };
2268
+ export { BookmarkButton, Button, CardTitle, ChapterBlock, Cover, DocumentItemsCount, DotsOnImage, Dropdown, EmbedBlockContainer, Footnote, GroupedBlock, HalfBlock, Image, ImportantLead, Lazy, ListBlock, MaterialNote, MaterialTitle, MediaCaption, Menu, Meta, MetaItem, MetaItemLive, Popover, Primary, QuoteBlock, RawHtmlBlock, RelatedBlock, RenderBlocks, RichTitle, Secondary, SimpleBlock, SimpleTitle, SourceBlock, Spoiler, SvgSymbol, Switcher, Table, Tag, Timestamp, Toolbar, ToolbarButton };
2242
2269
  //# sourceMappingURL=ui-kit-2.esm.js.map