@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.
- package/dist/Footnote/Footnote.stories.d.ts +10 -0
- package/dist/Footnote/Footnote.types.d.ts +5 -0
- package/dist/Footnote/index.d.ts +3 -0
- package/dist/Image/Image.types.d.ts +2 -2
- package/dist/MaterialNote/MaterialNote.stories.d.ts +2 -1
- package/dist/MaterialNote/MaterialNote.types.d.ts +2 -1
- package/dist/index.d.ts +1 -0
- package/dist/ui-kit-2.cjs.development.js +238 -210
- 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 +238 -211
- package/dist/ui-kit-2.esm.js.map +1 -1
- package/dist/ui-kit.css +684 -577
- package/dist/utils/makeClassName.d.ts +2 -1
- package/dist/utils/makeStyleContext.d.ts +2 -1
- package/package.json +12 -4
- package/src/BookmarkButton/BookmarkButton.stories.tsx +1 -1
- package/src/BookmarkButton/index.tsx +2 -4
- package/src/Button/Button.stories.tsx +2 -2
- package/src/Button/Button.test.tsx +3 -3
- package/src/Button/index.tsx +3 -3
- package/src/CardTitle/CardTitle.stories.tsx +1 -1
- package/src/CardTitle/CardTitle.test.tsx +1 -1
- package/src/CardTitle/index.tsx +1 -2
- package/src/ChapterBlock/ChapterBlock.stories.tsx +1 -1
- package/src/ChapterBlock/ChapterBlock.test.tsx +1 -1
- package/src/ChapterBlock/index.tsx +1 -2
- package/src/Cover/Cover.stories.tsx +1 -1
- package/src/Cover/Cover.test.tsx +1 -1
- package/src/Cover/index.tsx +5 -6
- package/src/DocumentItemsCount/DocumentItemsCount.stories.tsx +1 -1
- package/src/DocumentItemsCount/DocumentItemsCount.test.tsx +1 -1
- package/src/DocumentItemsCount/index.tsx +0 -1
- package/src/DotsOnImage/DotsOnImage.module.css +13 -9
- package/src/DotsOnImage/DotsOnImage.stories.tsx +1 -1
- package/src/DotsOnImage/DotsOnImage.test.tsx +2 -1
- package/src/DotsOnImage/index.tsx +29 -17
- package/src/DotsOnImage/mock.json +4 -4
- package/src/Dropdown/index.tsx +2 -2
- package/src/EmbedBlock/EmbedBlock.module.css +1 -1
- package/src/EmbedBlock/EmbedBlock.stories.tsx +2 -2
- package/src/EmbedBlock/EmbedBlock.test.tsx +1 -1
- package/src/EmbedBlock/EmbedBlock.tsx +3 -8
- package/src/EmbedBlock/EmbedGif.tsx +0 -3
- package/src/EmbedBlock/IframeBlock.tsx +0 -1
- package/src/EmbedBlock/index.tsx +0 -1
- package/src/Footnote/Footnote.module.css +70 -0
- package/src/Footnote/Footnote.stories.module.css +5 -0
- package/src/Footnote/Footnote.stories.tsx +43 -0
- package/src/Footnote/Footnote.test.tsx +20 -0
- package/src/Footnote/Footnote.types.ts +5 -0
- package/src/Footnote/index.tsx +26 -0
- package/src/GroupedBlock/GroupedBlock.stories.tsx +1 -1
- package/src/GroupedBlock/GroupedBlock.test.tsx +1 -1
- package/src/GroupedBlock/index.tsx +4 -6
- package/src/HalfBlock/HalfBlock.stories.tsx +1 -1
- package/src/HalfBlock/HalfBlock.test.tsx +1 -1
- package/src/HalfBlock/index.tsx +3 -5
- package/src/Image/Image.stories.tsx +1 -1
- package/src/Image/Image.test.tsx +1 -1
- package/src/Image/Image.types.ts +2 -2
- package/src/Image/RenderPicture.tsx +1 -2
- package/src/Image/index.tsx +1 -4
- package/src/ImportantLead/ImportantLead.stories.tsx +1 -1
- package/src/ImportantLead/ImportantLead.test.tsx +1 -1
- package/src/ImportantLead/index.tsx +3 -5
- package/src/Lazy/Lazy.stories.tsx +3 -2
- package/src/Lazy/Lazy.test.tsx +1 -1
- package/src/Lazy/index.tsx +2 -4
- package/src/ListBlock/ListBlock.stories.tsx +2 -2
- package/src/ListBlock/ListBlock.test.tsx +1 -1
- package/src/ListBlock/index.tsx +2 -3
- package/src/MaterialNote/MaterialNote.stories.tsx +4 -3
- package/src/MaterialNote/MaterialNote.test.tsx +1 -1
- package/src/MaterialNote/MaterialNote.types.ts +2 -1
- package/src/MaterialNote/index.tsx +3 -3
- package/src/MaterialTitle/MaterialTitle.stories.tsx +1 -1
- package/src/MaterialTitle/MaterialTitle.test.tsx +1 -1
- package/src/MediaCaption/MediaCaption.stories.tsx +1 -1
- package/src/MediaCaption/MediaCaption.test.tsx +1 -1
- package/src/MediaCaption/index.tsx +2 -2
- package/src/Meta/Meta.stories.tsx +1 -1
- package/src/Meta/Meta.test.tsx +1 -1
- package/src/Meta/MetaContainer.tsx +2 -4
- package/src/Meta/index.tsx +2 -3
- package/src/MetaItem/MetaItem.stories.tsx +2 -2
- package/src/MetaItem/MetaItem.test.tsx +1 -1
- package/src/MetaItem/index.tsx +1 -3
- package/src/MetaItemLive/MetaItemLive.stories.tsx +2 -2
- package/src/MetaItemLive/MetaItemLive.test.tsx +1 -1
- package/src/MetaItemLive/index.tsx +1 -3
- package/src/Popover/Popover.module.css +36 -2
- package/src/Popover/Popover.stories.tsx +1 -1
- package/src/Popover/Popover.test.tsx +1 -1
- package/src/Popover/index.tsx +2 -3
- package/src/QuoteBlock/QuoteBlock.stories.tsx +1 -1
- package/src/QuoteBlock/QuoteBlock.test.tsx +1 -1
- package/src/QuoteBlock/index.tsx +2 -3
- package/src/RawHtmlBlock/RawHtmlBlock.stories.tsx +2 -2
- package/src/RawHtmlBlock/RawHtmlBlock.test.tsx +1 -1
- package/src/RawHtmlBlock/index.tsx +0 -2
- package/src/RelatedBlock/RelatedBlock.stories.tsx +1 -1
- package/src/RelatedBlock/RelatedBlock.test.tsx +1 -1
- package/src/RelatedBlock/index.tsx +2 -3
- package/src/RenderBlocks/RenderBlocks.stories.tsx +1 -1
- package/src/RenderBlocks/RenderBlocks.test.tsx +1 -1
- package/src/RenderBlocks/index.tsx +0 -1
- package/src/RichTitle/RichTitle.stories.tsx +1 -1
- package/src/RichTitle/RichTitle.test.tsx +1 -1
- package/src/RichTitle/index.tsx +2 -3
- package/src/SimpleBlock/FootnoteLink.css +7 -0
- package/src/SimpleBlock/SimpleBlock.stories.tsx +2 -2
- package/src/SimpleBlock/SimpleBlock.test.tsx +1 -1
- package/src/SimpleBlock/index.tsx +2 -3
- package/src/SimpleTitle/SimpleTitle.stories.tsx +1 -1
- package/src/SimpleTitle/SimpleTitle.test.tsx +1 -1
- package/src/SimpleTitle/index.tsx +2 -2
- package/src/SourceBlock/SourceBlock.stories.tsx +6 -6
- package/src/SourceBlock/SourceBlock.test.tsx +1 -1
- package/src/SourceBlock/index.tsx +6 -4
- package/src/SourceBlock/mock.json +15 -0
- package/src/Spoiler/Spoiler.stories.tsx +1 -1
- package/src/Spoiler/Spoiler.test.tsx +1 -1
- package/src/Spoiler/index.tsx +4 -5
- package/src/SvgSymbol/SvgSymbol.stories.tsx +6 -6
- package/src/SvgSymbol/SvgSymbol.test.tsx +1 -1
- package/src/SvgSymbol/index.tsx +2 -2
- package/src/Switcher/Switcher.stories.tsx +4 -4
- package/src/Switcher/Switcher.test.tsx +1 -1
- package/src/Switcher/index.tsx +1 -2
- package/src/Table/Table.stories.tsx +1 -1
- package/src/Table/Table.test.tsx +1 -1
- package/src/Table/index.tsx +2 -2
- package/src/Tag/Tag.stories.tsx +1 -3
- package/src/Tag/Tag.test.tsx +4 -4
- package/src/Tag/index.tsx +2 -2
- package/src/Timestamp/Timestamp.stories.tsx +1 -1
- package/src/Timestamp/Timestamp.test.tsx +1 -1
- package/src/Timestamp/index.tsx +0 -2
- package/src/Toolbar/Toolbar.stories.tsx +0 -1
- package/src/Toolbar/Toolbar.test.tsx +1 -1
- package/src/Toolbar/index.tsx +2 -3
- package/src/ToolbarButton/ToolbarButton.stories.tsx +2 -2
- package/src/ToolbarButton/ToolbarButton.test.tsx +1 -1
- package/src/ToolbarButton/index.tsx +2 -3
- package/src/_storybook/PreviewWrapper/index.tsx +1 -1
- package/src/index.tsx +1 -0
- package/src/utils/DangerousHtml.tsx +5 -7
- package/src/utils/generateGradient.ts +1 -1
- package/src/utils/makeClassName.ts +3 -1
- package/src/utils/makeStyleContext.ts +8 -4
- package/src/utils/toCamel.ts +1 -1
|
@@ -80,8 +80,6 @@ var Button = function Button(_ref) {
|
|
|
80
80
|
}, React__default.createElement(Loader, null)) : children);
|
|
81
81
|
};
|
|
82
82
|
|
|
83
|
-
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"};
|
|
84
|
-
|
|
85
83
|
var icons = {
|
|
86
84
|
meduzaLogo: {
|
|
87
85
|
width: 544,
|
|
@@ -240,6 +238,8 @@ var icons = {
|
|
|
240
238
|
}
|
|
241
239
|
};
|
|
242
240
|
|
|
241
|
+
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"};
|
|
242
|
+
|
|
243
243
|
var SvgSymbol = function SvgSymbol(_ref) {
|
|
244
244
|
var icon = _ref.icon,
|
|
245
245
|
size = _ref.size,
|
|
@@ -495,7 +495,116 @@ var Image = function Image(_ref) {
|
|
|
495
495
|
})));
|
|
496
496
|
};
|
|
497
497
|
|
|
498
|
-
var styles$5 = {"root":"
|
|
498
|
+
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"};
|
|
499
|
+
|
|
500
|
+
var Popover = function Popover(_ref) {
|
|
501
|
+
var children = _ref.children,
|
|
502
|
+
onClose = _ref.onClose;
|
|
503
|
+
|
|
504
|
+
var _useState = React.useState(true),
|
|
505
|
+
visible = _useState[0],
|
|
506
|
+
setVisible = _useState[1];
|
|
507
|
+
|
|
508
|
+
var handleClose = function handleClose() {
|
|
509
|
+
setVisible(false);
|
|
510
|
+
setTimeout(onClose, 350);
|
|
511
|
+
};
|
|
512
|
+
|
|
513
|
+
var handleScroll = function handleScroll() {
|
|
514
|
+
handleClose();
|
|
515
|
+
};
|
|
516
|
+
|
|
517
|
+
var escFunction = function escFunction(event) {
|
|
518
|
+
if (event.key === 'Escape') {
|
|
519
|
+
handleClose();
|
|
520
|
+
}
|
|
521
|
+
};
|
|
522
|
+
|
|
523
|
+
React.useEffect(function () {
|
|
524
|
+
window.addEventListener('keydown', escFunction, false);
|
|
525
|
+
window.addEventListener('scroll', handleScroll, false);
|
|
526
|
+
return function () {
|
|
527
|
+
window.removeEventListener('keydown', escFunction, false);
|
|
528
|
+
window.removeEventListener('scroll', handleScroll, false);
|
|
529
|
+
};
|
|
530
|
+
}, [visible]);
|
|
531
|
+
/* eslint-disable jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions */
|
|
532
|
+
|
|
533
|
+
return React__default.createElement("div", {
|
|
534
|
+
"data-testid": "popover",
|
|
535
|
+
className: makeClassName([[styles$5.root, true], [styles$5.visible, visible]])
|
|
536
|
+
}, React__default.createElement("div", {
|
|
537
|
+
className: styles$5.overlay,
|
|
538
|
+
onClick: function onClick() {
|
|
539
|
+
return handleClose();
|
|
540
|
+
}
|
|
541
|
+
}), React__default.createElement("div", {
|
|
542
|
+
className: styles$5.container
|
|
543
|
+
}, React__default.createElement("button", {
|
|
544
|
+
type: "button",
|
|
545
|
+
className: styles$5.dismiss,
|
|
546
|
+
onClick: function onClick() {
|
|
547
|
+
return handleClose();
|
|
548
|
+
},
|
|
549
|
+
"aria-label": "dismiss"
|
|
550
|
+
}), React__default.createElement("svg", {
|
|
551
|
+
width: "100%",
|
|
552
|
+
className: styles$5.background
|
|
553
|
+
}, React__default.createElement("defs", null, React__default.createElement("mask", {
|
|
554
|
+
id: "myMask",
|
|
555
|
+
x: "0",
|
|
556
|
+
y: "0",
|
|
557
|
+
width: "100%",
|
|
558
|
+
height: "100%"
|
|
559
|
+
}, React__default.createElement("rect", {
|
|
560
|
+
fill: "white",
|
|
561
|
+
y: "0",
|
|
562
|
+
width: "100%",
|
|
563
|
+
height: "100%",
|
|
564
|
+
x: "0"
|
|
565
|
+
}), React__default.createElement("svg", {
|
|
566
|
+
x: "50%",
|
|
567
|
+
overflow: "visible"
|
|
568
|
+
}, React__default.createElement("g", {
|
|
569
|
+
transform: "translate(-12 0)"
|
|
570
|
+
}, React__default.createElement("path", {
|
|
571
|
+
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"
|
|
572
|
+
}))))), React__default.createElement("rect", {
|
|
573
|
+
fill: "#F7F7F7",
|
|
574
|
+
id: "base-mask",
|
|
575
|
+
mask: "url(#myMask)",
|
|
576
|
+
x: "0",
|
|
577
|
+
y: "0",
|
|
578
|
+
width: "100%",
|
|
579
|
+
height: "100%"
|
|
580
|
+
})), React__default.createElement("div", {
|
|
581
|
+
className: styles$5.body
|
|
582
|
+
}, children)));
|
|
583
|
+
};
|
|
584
|
+
|
|
585
|
+
var styles$6 = {"root":"Footnote-module_root__2a0-B","body":"Footnote-module_body__259Ly","dismiss":"Footnote-module_dismiss__1HKG5"};
|
|
586
|
+
|
|
587
|
+
var Footnote = function Footnote(_ref) {
|
|
588
|
+
var children = _ref.children,
|
|
589
|
+
onClose = _ref.onClose;
|
|
590
|
+
return React__default.createElement("div", {
|
|
591
|
+
"data-testid": "footnote",
|
|
592
|
+
className: makeClassName([[styles$6.root, true]])
|
|
593
|
+
}, React__default.createElement("button", {
|
|
594
|
+
className: styles$6.dismiss,
|
|
595
|
+
type: "button",
|
|
596
|
+
onClick: function onClick() {
|
|
597
|
+
return onClose();
|
|
598
|
+
}
|
|
599
|
+
}, React__default.createElement(SvgSymbol, {
|
|
600
|
+
icon: "cross",
|
|
601
|
+
size: "unset"
|
|
602
|
+
})), React__default.createElement("div", {
|
|
603
|
+
className: styles$6.body
|
|
604
|
+
}, children));
|
|
605
|
+
};
|
|
606
|
+
|
|
607
|
+
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"};
|
|
499
608
|
|
|
500
609
|
var DotsOnImage = function DotsOnImage(_ref) {
|
|
501
610
|
var _ref$block = _ref.block,
|
|
@@ -527,12 +636,12 @@ var DotsOnImage = function DotsOnImage(_ref) {
|
|
|
527
636
|
|
|
528
637
|
return React__default.createElement("div", {
|
|
529
638
|
"data-testid": "dots-on-image",
|
|
530
|
-
className: styles$
|
|
639
|
+
className: styles$7.root
|
|
531
640
|
}, React__default.createElement("div", {
|
|
532
|
-
className: styles$
|
|
641
|
+
className: styles$7.dots
|
|
533
642
|
}, dots.map(function (dot) {
|
|
534
643
|
return React__default.createElement("button", {
|
|
535
|
-
className: styles$
|
|
644
|
+
className: styles$7.dot,
|
|
536
645
|
type: "button",
|
|
537
646
|
key: dot.id,
|
|
538
647
|
style: {
|
|
@@ -544,40 +653,42 @@ var DotsOnImage = function DotsOnImage(_ref) {
|
|
|
544
653
|
return handleDotClick(dot);
|
|
545
654
|
}
|
|
546
655
|
}, dot.icon.type === 'svg' && React__default.createElement("div", {
|
|
547
|
-
className: styles$
|
|
656
|
+
className: styles$7.icon,
|
|
548
657
|
dangerouslySetInnerHTML: {
|
|
549
658
|
__html: dot.icon.svg_string
|
|
550
659
|
}
|
|
551
660
|
}), dot.icon.type === 'number' && dot.icon.number);
|
|
552
661
|
})), React__default.createElement("div", {
|
|
553
|
-
className: styles$
|
|
662
|
+
className: styles$7.image
|
|
554
663
|
}, React__default.createElement(Image, {
|
|
555
664
|
optimized: optimized,
|
|
556
665
|
width: width,
|
|
557
666
|
height: height,
|
|
558
667
|
alt: credit,
|
|
559
668
|
display: display
|
|
560
|
-
})), popover.show && React__default.createElement("div", {
|
|
561
|
-
className: styles$
|
|
562
|
-
}, React__default.createElement(
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
onClick: function onClick() {
|
|
566
|
-
return setPopover({
|
|
669
|
+
})), popover.show && React__default.createElement(React__default.Fragment, null, viewportSize().width >= MediaQuerySizes.LANDSCAPE_TABLET ? React__default.createElement("div", {
|
|
670
|
+
className: styles$7.popover
|
|
671
|
+
}, React__default.createElement(Footnote, {
|
|
672
|
+
onClose: function onClose() {
|
|
673
|
+
setPopover({
|
|
567
674
|
show: false
|
|
568
675
|
});
|
|
569
676
|
}
|
|
570
|
-
}, React__default.createElement(
|
|
571
|
-
icon: "cross",
|
|
572
|
-
size: "unset"
|
|
573
|
-
})), React__default.createElement("div", {
|
|
574
|
-
className: styles$5.popoverTitle
|
|
575
|
-
}, popover.title), React__default.createElement("div", {
|
|
576
|
-
className: styles$5.popoverBody,
|
|
677
|
+
}, React__default.createElement("h3", null, popover.title), React__default.createElement("div", {
|
|
577
678
|
dangerouslySetInnerHTML: {
|
|
578
679
|
__html: popover.body
|
|
579
680
|
}
|
|
580
|
-
})))
|
|
681
|
+
}))) : React__default.createElement(Popover, {
|
|
682
|
+
onClose: function onClose() {
|
|
683
|
+
setPopover({
|
|
684
|
+
show: false
|
|
685
|
+
});
|
|
686
|
+
}
|
|
687
|
+
}, React__default.createElement("h3", null, popover.title), React__default.createElement("div", {
|
|
688
|
+
dangerouslySetInnerHTML: {
|
|
689
|
+
__html: popover.body
|
|
690
|
+
}
|
|
691
|
+
}))));
|
|
581
692
|
};
|
|
582
693
|
|
|
583
694
|
var makeStyleContext = function makeStyleContext(classNames, styleContext, styles) {
|
|
@@ -589,7 +700,7 @@ var makeStyleContext = function makeStyleContext(classNames, styleContext, style
|
|
|
589
700
|
return classNames.concat(context);
|
|
590
701
|
};
|
|
591
702
|
|
|
592
|
-
var styles$
|
|
703
|
+
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"};
|
|
593
704
|
|
|
594
705
|
var Tag = function Tag(_ref) {
|
|
595
706
|
var children = _ref.children,
|
|
@@ -600,10 +711,10 @@ var Tag = function Tag(_ref) {
|
|
|
600
711
|
styleContext = _ref.styleContext,
|
|
601
712
|
correlation = _ref.correlation,
|
|
602
713
|
onlyOn = _ref.onlyOn;
|
|
603
|
-
var classNames = [[styles$
|
|
714
|
+
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]]];
|
|
604
715
|
|
|
605
716
|
if (styleContext) {
|
|
606
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
717
|
+
classNames = makeStyleContext(classNames, styleContext, styles$8);
|
|
607
718
|
}
|
|
608
719
|
|
|
609
720
|
return React__default.createElement("div", {
|
|
@@ -612,35 +723,35 @@ var Tag = function Tag(_ref) {
|
|
|
612
723
|
}, children);
|
|
613
724
|
};
|
|
614
725
|
|
|
615
|
-
var styles$
|
|
726
|
+
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"};
|
|
616
727
|
|
|
617
728
|
var MediaCaption = function MediaCaption(_ref) {
|
|
618
729
|
var credit = _ref.credit,
|
|
619
730
|
caption = _ref.caption,
|
|
620
731
|
styleContext = _ref.styleContext;
|
|
621
|
-
var classNames = [[styles$
|
|
732
|
+
var classNames = [[styles$9.root, true]];
|
|
622
733
|
|
|
623
734
|
if (styleContext) {
|
|
624
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
735
|
+
classNames = makeStyleContext(classNames, styleContext, styles$9);
|
|
625
736
|
}
|
|
626
737
|
|
|
627
738
|
return React__default.createElement("div", {
|
|
628
739
|
"data-testid": "media-caption",
|
|
629
740
|
className: makeClassName(classNames)
|
|
630
741
|
}, caption && React__default.createElement("div", {
|
|
631
|
-
className: styles$
|
|
742
|
+
className: styles$9.caption,
|
|
632
743
|
dangerouslySetInnerHTML: {
|
|
633
744
|
__html: caption
|
|
634
745
|
}
|
|
635
746
|
}), credit && React__default.createElement("div", {
|
|
636
|
-
className: styles$
|
|
747
|
+
className: styles$9.credit,
|
|
637
748
|
dangerouslySetInnerHTML: {
|
|
638
749
|
__html: credit
|
|
639
750
|
}
|
|
640
751
|
}));
|
|
641
752
|
};
|
|
642
753
|
|
|
643
|
-
var styles$
|
|
754
|
+
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"};
|
|
644
755
|
|
|
645
756
|
var Table = function Table(_ref) {
|
|
646
757
|
var styleContext = _ref.styleContext,
|
|
@@ -660,29 +771,29 @@ var Table = function Table(_ref) {
|
|
|
660
771
|
'#e7f2ef': 'green',
|
|
661
772
|
'#f4f0f8': 'violet'
|
|
662
773
|
};
|
|
663
|
-
var classNames = [[styles$
|
|
774
|
+
var classNames = [[styles$a.root, true], [styles$a[display], !!display && !!styles$a[display]]];
|
|
664
775
|
|
|
665
776
|
if (styleContext) {
|
|
666
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
777
|
+
classNames = makeStyleContext(classNames, styleContext, styles$a);
|
|
667
778
|
}
|
|
668
779
|
|
|
669
780
|
return React__default.createElement("div", {
|
|
670
781
|
"data-testid": "table",
|
|
671
782
|
className: makeClassName(classNames)
|
|
672
783
|
}, React__default.createElement("div", {
|
|
673
|
-
className: styles$
|
|
784
|
+
className: styles$a.wrapper
|
|
674
785
|
}, React__default.createElement("div", {
|
|
675
|
-
className: styles$
|
|
786
|
+
className: styles$a.table
|
|
676
787
|
}, React__default.createElement("div", {
|
|
677
|
-
className: styles$
|
|
788
|
+
className: styles$a.tracks
|
|
678
789
|
}, rows.map(function (row, i) {
|
|
679
790
|
return React__default.createElement("div", {
|
|
680
791
|
key: row.key,
|
|
681
|
-
className: styles$
|
|
792
|
+
className: styles$a.row
|
|
682
793
|
}, row.cells.map(function (cell, j) {
|
|
683
794
|
return React__default.createElement("div", {
|
|
684
795
|
key: cell.key,
|
|
685
|
-
className: makeClassName([[styles$
|
|
796
|
+
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]]),
|
|
686
797
|
dangerouslySetInnerHTML: {
|
|
687
798
|
__html: cell.val
|
|
688
799
|
}
|
|
@@ -694,15 +805,15 @@ var Table = function Table(_ref) {
|
|
|
694
805
|
}));
|
|
695
806
|
};
|
|
696
807
|
|
|
697
|
-
var styles$
|
|
808
|
+
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-"};
|
|
698
809
|
|
|
699
810
|
var MaterialNote = function MaterialNote(_ref) {
|
|
700
811
|
var data = _ref.block.data,
|
|
701
812
|
styleContext = _ref.styleContext;
|
|
702
|
-
var classNames = [[styles$
|
|
813
|
+
var classNames = [[styles$b.root, true]];
|
|
703
814
|
|
|
704
815
|
if (styleContext) {
|
|
705
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
816
|
+
classNames = makeStyleContext(classNames, styleContext, styles$b);
|
|
706
817
|
}
|
|
707
818
|
|
|
708
819
|
return React__default.createElement("div", {
|
|
@@ -710,7 +821,7 @@ var MaterialNote = function MaterialNote(_ref) {
|
|
|
710
821
|
className: makeClassName(classNames)
|
|
711
822
|
}, data && data.map(function (item) {
|
|
712
823
|
return React__default.createElement("p", {
|
|
713
|
-
className: styles$
|
|
824
|
+
className: styles$b[item.type],
|
|
714
825
|
key: item.id,
|
|
715
826
|
dangerouslySetInnerHTML: {
|
|
716
827
|
__html: item.data
|
|
@@ -719,24 +830,24 @@ var MaterialNote = function MaterialNote(_ref) {
|
|
|
719
830
|
}));
|
|
720
831
|
};
|
|
721
832
|
|
|
722
|
-
var styles$
|
|
833
|
+
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"};
|
|
723
834
|
|
|
724
835
|
var BookmarkButton = function BookmarkButton(_ref) {
|
|
725
836
|
var styleContext = _ref.styleContext,
|
|
726
837
|
theme = _ref.theme,
|
|
727
838
|
isInBookmarks = _ref.isInBookmarks,
|
|
728
839
|
_onClick = _ref.onClick;
|
|
729
|
-
var classNames = [[styles$
|
|
840
|
+
var classNames = [[styles$c.root, true], [styles$c.isInBookmarks, isInBookmarks], [styles$c[theme], !!theme && !!styles$c[theme]]];
|
|
730
841
|
|
|
731
842
|
if (styleContext) {
|
|
732
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
843
|
+
classNames = makeStyleContext(classNames, styleContext, styles$c);
|
|
733
844
|
}
|
|
734
845
|
|
|
735
846
|
return React__default.createElement("div", {
|
|
736
847
|
"data-testid": "bookmark-button",
|
|
737
848
|
className: makeClassName(classNames)
|
|
738
849
|
}, React__default.createElement("button", {
|
|
739
|
-
className: styles$
|
|
850
|
+
className: styles$c.control,
|
|
740
851
|
onClick: function onClick() {
|
|
741
852
|
return _onClick();
|
|
742
853
|
},
|
|
@@ -747,45 +858,45 @@ var BookmarkButton = function BookmarkButton(_ref) {
|
|
|
747
858
|
})));
|
|
748
859
|
};
|
|
749
860
|
|
|
750
|
-
var styles$
|
|
861
|
+
var styles$d = {"root":"MaterialTitle-module_root__18ku-","primary":"MaterialTitle-module_primary__2Sfmx","secondary":"MaterialTitle-module_secondary__3uDp4"};
|
|
751
862
|
|
|
752
863
|
var Primary = function Primary(_ref) {
|
|
753
864
|
var children = _ref.children;
|
|
754
865
|
return React__default.createElement("span", {
|
|
755
|
-
className: styles$
|
|
866
|
+
className: styles$d.primary
|
|
756
867
|
}, children);
|
|
757
868
|
};
|
|
758
869
|
var Secondary = function Secondary(_ref2) {
|
|
759
870
|
var children = _ref2.children;
|
|
760
871
|
return React__default.createElement("span", {
|
|
761
|
-
className: styles$
|
|
872
|
+
className: styles$d.secondary
|
|
762
873
|
}, children);
|
|
763
874
|
};
|
|
764
875
|
var MaterialTitle = function MaterialTitle(_ref3) {
|
|
765
876
|
var children = _ref3.children;
|
|
766
877
|
return React__default.createElement("h1", {
|
|
767
|
-
className: styles$
|
|
878
|
+
className: styles$d.root,
|
|
768
879
|
"data-testid": "material-title"
|
|
769
880
|
}, children);
|
|
770
881
|
};
|
|
771
882
|
|
|
772
|
-
var styles$
|
|
883
|
+
var styles$e = {"root":"Dropdown-module_root__11PNk","active":"Dropdown-module_active__3IwAl","menu":"Dropdown-module_menu__3PIqD","isInAudioPanel":"Dropdown-module_isInAudioPanel__1zv7F"};
|
|
773
884
|
|
|
774
885
|
var Menu = function Menu(_ref) {
|
|
775
886
|
var children = _ref.children;
|
|
776
887
|
return React__default.createElement("div", {
|
|
777
888
|
"data-testid": "dropdown",
|
|
778
|
-
className: styles$
|
|
889
|
+
className: styles$e.menu
|
|
779
890
|
}, children);
|
|
780
891
|
};
|
|
781
892
|
var Dropdown = function Dropdown(_ref2) {
|
|
782
893
|
var children = _ref2.children,
|
|
783
894
|
active = _ref2.active,
|
|
784
895
|
styleContext = _ref2.styleContext;
|
|
785
|
-
var classNames = [[styles$
|
|
896
|
+
var classNames = [[styles$e.root, true], [styles$e.active, !!active && !!styles$e.active]];
|
|
786
897
|
|
|
787
898
|
if (styleContext) {
|
|
788
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
899
|
+
classNames = makeStyleContext(classNames, styleContext, styles$e);
|
|
789
900
|
}
|
|
790
901
|
|
|
791
902
|
return React__default.createElement("div", {
|
|
@@ -794,21 +905,21 @@ var Dropdown = function Dropdown(_ref2) {
|
|
|
794
905
|
}, children);
|
|
795
906
|
};
|
|
796
907
|
|
|
797
|
-
var styles$
|
|
908
|
+
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"};
|
|
798
909
|
|
|
799
910
|
var Toolbar = function Toolbar(_ref) {
|
|
800
911
|
var children = _ref.children,
|
|
801
912
|
styleContext = _ref.styleContext;
|
|
802
|
-
var classNames = [[styles$
|
|
913
|
+
var classNames = [[styles$f.root, true]];
|
|
803
914
|
|
|
804
915
|
if (styleContext) {
|
|
805
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
916
|
+
classNames = makeStyleContext(classNames, styleContext, styles$f);
|
|
806
917
|
}
|
|
807
918
|
|
|
808
919
|
var renderItems = function renderItems() {
|
|
809
920
|
return React.Children.map(children, function (item, index) {
|
|
810
921
|
return React__default.createElement("li", {
|
|
811
|
-
className: styles$
|
|
922
|
+
className: styles$f.item,
|
|
812
923
|
key: index + "-" + item.props.type
|
|
813
924
|
}, React__default.cloneElement(item));
|
|
814
925
|
});
|
|
@@ -818,96 +929,11 @@ var Toolbar = function Toolbar(_ref) {
|
|
|
818
929
|
"data-testid": "toolbar",
|
|
819
930
|
className: makeClassName(classNames)
|
|
820
931
|
}, React__default.createElement("ul", {
|
|
821
|
-
className: styles$
|
|
932
|
+
className: styles$f.list
|
|
822
933
|
}, renderItems()));
|
|
823
934
|
};
|
|
824
935
|
|
|
825
|
-
var styles$
|
|
826
|
-
|
|
827
|
-
var Popover = function Popover(_ref) {
|
|
828
|
-
var children = _ref.children,
|
|
829
|
-
onClose = _ref.onClose;
|
|
830
|
-
|
|
831
|
-
var _useState = React.useState(true),
|
|
832
|
-
visible = _useState[0],
|
|
833
|
-
setVisible = _useState[1];
|
|
834
|
-
|
|
835
|
-
var handleClose = function handleClose() {
|
|
836
|
-
setVisible(false);
|
|
837
|
-
setTimeout(onClose, 350);
|
|
838
|
-
};
|
|
839
|
-
|
|
840
|
-
var handleScroll = function handleScroll() {
|
|
841
|
-
handleClose();
|
|
842
|
-
};
|
|
843
|
-
|
|
844
|
-
var escFunction = function escFunction(event) {
|
|
845
|
-
if (event.key === 'Escape') {
|
|
846
|
-
handleClose();
|
|
847
|
-
}
|
|
848
|
-
};
|
|
849
|
-
|
|
850
|
-
React.useEffect(function () {
|
|
851
|
-
window.addEventListener('keydown', escFunction, false);
|
|
852
|
-
window.addEventListener('scroll', handleScroll, false);
|
|
853
|
-
return function () {
|
|
854
|
-
window.removeEventListener('keydown', escFunction, false);
|
|
855
|
-
window.removeEventListener('scroll', handleScroll, false);
|
|
856
|
-
};
|
|
857
|
-
}, [visible]);
|
|
858
|
-
/* eslint-disable jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions */
|
|
859
|
-
|
|
860
|
-
return React__default.createElement("div", {
|
|
861
|
-
"data-testid": "popover",
|
|
862
|
-
className: makeClassName([[styles$e.root, true], [styles$e.visible, visible]])
|
|
863
|
-
}, React__default.createElement("div", {
|
|
864
|
-
className: styles$e.overlay,
|
|
865
|
-
onClick: function onClick() {
|
|
866
|
-
return handleClose();
|
|
867
|
-
}
|
|
868
|
-
}), React__default.createElement("div", {
|
|
869
|
-
className: styles$e.container
|
|
870
|
-
}, React__default.createElement("button", {
|
|
871
|
-
type: "button",
|
|
872
|
-
className: styles$e.dismiss,
|
|
873
|
-
onClick: function onClick() {
|
|
874
|
-
return handleClose();
|
|
875
|
-
},
|
|
876
|
-
"aria-label": "dismiss"
|
|
877
|
-
}), React__default.createElement("svg", {
|
|
878
|
-
width: "100%",
|
|
879
|
-
className: styles$e.background
|
|
880
|
-
}, React__default.createElement("defs", null, React__default.createElement("mask", {
|
|
881
|
-
id: "myMask",
|
|
882
|
-
x: "0",
|
|
883
|
-
y: "0",
|
|
884
|
-
width: "100%",
|
|
885
|
-
height: "100%"
|
|
886
|
-
}, React__default.createElement("rect", {
|
|
887
|
-
fill: "white",
|
|
888
|
-
y: "0",
|
|
889
|
-
width: "100%",
|
|
890
|
-
height: "100%",
|
|
891
|
-
x: "0"
|
|
892
|
-
}), React__default.createElement("svg", {
|
|
893
|
-
x: "50%",
|
|
894
|
-
overflow: "visible"
|
|
895
|
-
}, React__default.createElement("g", {
|
|
896
|
-
transform: "translate(-12 0)"
|
|
897
|
-
}, React__default.createElement("path", {
|
|
898
|
-
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"
|
|
899
|
-
}))))), React__default.createElement("rect", {
|
|
900
|
-
fill: "#F7F7F7",
|
|
901
|
-
id: "base-mask",
|
|
902
|
-
mask: "url(#myMask)",
|
|
903
|
-
x: "0",
|
|
904
|
-
y: "0",
|
|
905
|
-
width: "100%",
|
|
906
|
-
height: "100%"
|
|
907
|
-
})), children));
|
|
908
|
-
};
|
|
909
|
-
|
|
910
|
-
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"};
|
|
936
|
+
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"};
|
|
911
937
|
|
|
912
938
|
var Meta = function Meta(_ref) {
|
|
913
939
|
var hasSource = _ref.hasSource,
|
|
@@ -915,10 +941,10 @@ var Meta = function Meta(_ref) {
|
|
|
915
941
|
children = _ref.children,
|
|
916
942
|
onlyOn = _ref.onlyOn,
|
|
917
943
|
styleContext = _ref.styleContext;
|
|
918
|
-
var classNames = [[styles$
|
|
944
|
+
var classNames = [[styles$g.root, true], [styles$g[theme], !!theme && !!styles$g[theme]], [styles$g[onlyOn], !!onlyOn], [styles$g.hasSource, hasSource]];
|
|
919
945
|
|
|
920
946
|
if (styleContext) {
|
|
921
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
947
|
+
classNames = makeStyleContext(classNames, styleContext, styles$g);
|
|
922
948
|
}
|
|
923
949
|
|
|
924
950
|
return React__default.createElement("div", {
|
|
@@ -927,7 +953,7 @@ var Meta = function Meta(_ref) {
|
|
|
927
953
|
}, children);
|
|
928
954
|
};
|
|
929
955
|
|
|
930
|
-
var styles$
|
|
956
|
+
var styles$h = {"root":"Timestamp-module_root__coOvT"};
|
|
931
957
|
|
|
932
958
|
var Timestamp = function Timestamp(_ref) {
|
|
933
959
|
var publishedAt = _ref.publishedAt,
|
|
@@ -952,7 +978,7 @@ var Timestamp = function Timestamp(_ref) {
|
|
|
952
978
|
|
|
953
979
|
return React__default.createElement("time", {
|
|
954
980
|
"data-testid": "timestamp",
|
|
955
|
-
className: styles$
|
|
981
|
+
className: styles$h.root
|
|
956
982
|
}, published);
|
|
957
983
|
};
|
|
958
984
|
|
|
@@ -1003,9 +1029,9 @@ var DangerousHTML = function DangerousHTML(_ref) {
|
|
|
1003
1029
|
});
|
|
1004
1030
|
}, []);
|
|
1005
1031
|
React.useEffect(function () {
|
|
1006
|
-
if (canRenderHtml && html.indexOf('script') > -1 && element.current.
|
|
1032
|
+
if (canRenderHtml && html.indexOf('script') > -1 && element.current.firstElementChild) {
|
|
1007
1033
|
element.current.firstElementChild.innerHTML = html;
|
|
1008
|
-
replaceScriptElementsRecursive(element.current.
|
|
1034
|
+
replaceScriptElementsRecursive(element.current.firstElementChild);
|
|
1009
1035
|
prepareAnchors();
|
|
1010
1036
|
}
|
|
1011
1037
|
}, [canRenderHtml, element, html, replaceScriptElementsRecursive, prepareAnchors]);
|
|
@@ -1019,7 +1045,7 @@ var DangerousHTML = function DangerousHTML(_ref) {
|
|
|
1019
1045
|
}));
|
|
1020
1046
|
};
|
|
1021
1047
|
|
|
1022
|
-
var styles$
|
|
1048
|
+
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"};
|
|
1023
1049
|
|
|
1024
1050
|
var EmbedGif = function EmbedGif(_ref) {
|
|
1025
1051
|
var gif = _ref.gif,
|
|
@@ -1067,9 +1093,9 @@ var EmbedGif = function EmbedGif(_ref) {
|
|
|
1067
1093
|
};
|
|
1068
1094
|
}, []);
|
|
1069
1095
|
return React__default.createElement("div", {
|
|
1070
|
-
className: styles$
|
|
1096
|
+
className: styles$i.figure
|
|
1071
1097
|
}, React__default.createElement("div", {
|
|
1072
|
-
className: styles$
|
|
1098
|
+
className: styles$i.objectWrap,
|
|
1073
1099
|
style: style,
|
|
1074
1100
|
"data-frozen": videoFrozen
|
|
1075
1101
|
}, React__default.createElement("video", {
|
|
@@ -1135,7 +1161,7 @@ var EmbedBlock = function EmbedBlock(_ref) {
|
|
|
1135
1161
|
case 'image':
|
|
1136
1162
|
{
|
|
1137
1163
|
return React__default.createElement("div", {
|
|
1138
|
-
className: styles$
|
|
1164
|
+
className: styles$i.figure
|
|
1139
1165
|
}, (small || optimized) && React__default.createElement(Image, {
|
|
1140
1166
|
fullscreen: block.data.fullscreen,
|
|
1141
1167
|
source: !optimized && [small, large],
|
|
@@ -1151,7 +1177,7 @@ var EmbedBlock = function EmbedBlock(_ref) {
|
|
|
1151
1177
|
case 'game_embed':
|
|
1152
1178
|
{
|
|
1153
1179
|
return React__default.createElement("div", {
|
|
1154
|
-
className: styles$
|
|
1180
|
+
className: styles$i.gameEmbed
|
|
1155
1181
|
}, React__default.createElement("iframe", {
|
|
1156
1182
|
src: block.data.game_src,
|
|
1157
1183
|
id: block.data.game_id,
|
|
@@ -1162,7 +1188,7 @@ var EmbedBlock = function EmbedBlock(_ref) {
|
|
|
1162
1188
|
case 'dots_on_image':
|
|
1163
1189
|
{
|
|
1164
1190
|
return React__default.createElement("div", {
|
|
1165
|
-
className: styles$
|
|
1191
|
+
className: styles$i.figure
|
|
1166
1192
|
}, React__default.createElement(DotsOnImage, {
|
|
1167
1193
|
block: data
|
|
1168
1194
|
}));
|
|
@@ -1171,12 +1197,12 @@ var EmbedBlock = function EmbedBlock(_ref) {
|
|
|
1171
1197
|
default:
|
|
1172
1198
|
{
|
|
1173
1199
|
return React__default.createElement("div", {
|
|
1174
|
-
className: styles$
|
|
1200
|
+
className: styles$i.object
|
|
1175
1201
|
}, React__default.createElement("div", {
|
|
1176
|
-
className: styles$
|
|
1202
|
+
className: styles$i.wrapper,
|
|
1177
1203
|
style: style
|
|
1178
1204
|
}, React__default.createElement(DangerousHTML, {
|
|
1179
|
-
className: styles$
|
|
1205
|
+
className: styles$i.objectWrap,
|
|
1180
1206
|
html: html
|
|
1181
1207
|
})));
|
|
1182
1208
|
}
|
|
@@ -1188,31 +1214,31 @@ var EmbedBlock = function EmbedBlock(_ref) {
|
|
|
1188
1214
|
style.height = 0;
|
|
1189
1215
|
}
|
|
1190
1216
|
|
|
1191
|
-
var classNames = [[styles$
|
|
1217
|
+
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,
|
|
1192
1218
|
// чтобы не применились лишние модификаторы
|
|
1193
1219
|
// TODO: в w6 модификаторы должны передаваться явно
|
|
1194
1220
|
|
|
1195
1221
|
if (styleContext) {
|
|
1196
1222
|
var filteredContext = Object.keys(styleContext).filter(function (key) {
|
|
1197
|
-
return key.startsWith('isIn') && styles$
|
|
1223
|
+
return key.startsWith('isIn') && styles$i[key];
|
|
1198
1224
|
}).reduce(function (acc, key) {
|
|
1199
|
-
acc.push([styles$
|
|
1225
|
+
acc.push([styles$i[key], true]);
|
|
1200
1226
|
return acc;
|
|
1201
1227
|
}, []);
|
|
1202
|
-
classNames = makeStyleContext(classNames, filteredContext, styles$
|
|
1228
|
+
classNames = makeStyleContext(classNames, filteredContext, styles$i);
|
|
1203
1229
|
}
|
|
1204
1230
|
|
|
1205
1231
|
return React__default.createElement("figure", {
|
|
1206
1232
|
className: makeClassName(classNames)
|
|
1207
1233
|
}, children && React__default.createElement("div", {
|
|
1208
|
-
className: styles$
|
|
1234
|
+
className: styles$i.object
|
|
1209
1235
|
}, React__default.createElement("div", {
|
|
1210
|
-
className: styles$
|
|
1236
|
+
className: styles$i.wrapper,
|
|
1211
1237
|
style: style
|
|
1212
1238
|
}, React__default.createElement("div", {
|
|
1213
|
-
className: styles$
|
|
1239
|
+
className: styles$i.objectWrap
|
|
1214
1240
|
}, children))), !children && renderEmbed(style), cc === 'default' && React__default.createElement("figcaption", null, renderCC()), cc === 'button' && React__default.createElement("button", {
|
|
1215
|
-
className: styles$
|
|
1241
|
+
className: styles$i.control,
|
|
1216
1242
|
type: "button",
|
|
1217
1243
|
"aria-label": "Open",
|
|
1218
1244
|
onClick: function onClick() {
|
|
@@ -1288,15 +1314,15 @@ var EmbedBlockContainer = function EmbedBlockContainer(_ref) {
|
|
|
1288
1314
|
});
|
|
1289
1315
|
};
|
|
1290
1316
|
|
|
1291
|
-
var styles$
|
|
1317
|
+
var styles$j = {"root":"QuoteBlock-module_root__2GrcC","center":"QuoteBlock-module_center__cTFNy"};
|
|
1292
1318
|
|
|
1293
1319
|
var QuoteBlock = function QuoteBlock(_ref) {
|
|
1294
1320
|
var data = _ref.block.data,
|
|
1295
1321
|
styleContext = _ref.styleContext;
|
|
1296
|
-
var classNames = [[styles$
|
|
1322
|
+
var classNames = [[styles$j.root, true]];
|
|
1297
1323
|
|
|
1298
1324
|
if (styleContext) {
|
|
1299
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
1325
|
+
classNames = makeStyleContext(classNames, styleContext, styles$j);
|
|
1300
1326
|
}
|
|
1301
1327
|
|
|
1302
1328
|
return React__default.createElement("div", {
|
|
@@ -1309,7 +1335,7 @@ var QuoteBlock = function QuoteBlock(_ref) {
|
|
|
1309
1335
|
}));
|
|
1310
1336
|
};
|
|
1311
1337
|
|
|
1312
|
-
var styles$
|
|
1338
|
+
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"};
|
|
1313
1339
|
|
|
1314
1340
|
var CardTitle = function CardTitle(_ref) {
|
|
1315
1341
|
var _ref$block$data = _ref.block.data,
|
|
@@ -1319,15 +1345,15 @@ var CardTitle = function CardTitle(_ref) {
|
|
|
1319
1345
|
styleContext = _ref.styleContext;
|
|
1320
1346
|
return React__default.createElement("div", {
|
|
1321
1347
|
"data-testid": "card-title",
|
|
1322
|
-
className: makeClassName([[styles$
|
|
1348
|
+
className: makeClassName([[styles$k.root, true], [styles$k[onlyOn], !!onlyOn], [styles$k[styleContext], !!styleContext && !!styles$k[styleContext]]])
|
|
1323
1349
|
}, React__default.createElement("div", {
|
|
1324
|
-
className: styles$
|
|
1350
|
+
className: styles$k.index
|
|
1325
1351
|
}, index), React__default.createElement("h3", {
|
|
1326
|
-
className: styles$
|
|
1352
|
+
className: styles$k.title
|
|
1327
1353
|
}, text));
|
|
1328
1354
|
};
|
|
1329
1355
|
|
|
1330
|
-
var styles$
|
|
1356
|
+
var styles$l = {"root":"ChapterBlock-module_root__1WyVn","subtitle":"ChapterBlock-module_subtitle__3TXll","mobile":"ChapterBlock-module_mobile__CiO0w","desktop":"ChapterBlock-module_desktop__tk1Nk"};
|
|
1331
1357
|
|
|
1332
1358
|
var ChapterBlock = function ChapterBlock(_ref) {
|
|
1333
1359
|
var _ref$block = _ref.block,
|
|
@@ -1336,9 +1362,9 @@ var ChapterBlock = function ChapterBlock(_ref) {
|
|
|
1336
1362
|
styleContext = _ref.styleContext;
|
|
1337
1363
|
return React__default.createElement("div", {
|
|
1338
1364
|
"data-testid": "chapter-block",
|
|
1339
|
-
className: makeClassName([[styles$
|
|
1365
|
+
className: makeClassName([[styles$l.root, true], [styles$l[onlyOn], !!onlyOn]])
|
|
1340
1366
|
}, React__default.createElement("div", {
|
|
1341
|
-
className: makeClassName([[styles$
|
|
1367
|
+
className: makeClassName([[styles$l.subtitle, true], [styles$l[styleContext], !!styleContext && !!styles$l[styleContext]]]),
|
|
1342
1368
|
dangerouslySetInnerHTML: {
|
|
1343
1369
|
__html: data
|
|
1344
1370
|
}
|
|
@@ -1353,8 +1379,6 @@ var generateGradient = function generateGradient(color) {
|
|
|
1353
1379
|
return "linear-gradient(-180deg, " + gradient + ")";
|
|
1354
1380
|
};
|
|
1355
1381
|
|
|
1356
|
-
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"};
|
|
1357
|
-
|
|
1358
1382
|
var styles$m = {"root":"SimpleTitle-module_root__2jVQN","mobile":"SimpleTitle-module_mobile__11gBz","desktop":"SimpleTitle-module_desktop__3yXgy"};
|
|
1359
1383
|
|
|
1360
1384
|
var SimpleTitle = function SimpleTitle(_ref) {
|
|
@@ -1507,9 +1531,10 @@ var styles$r = {"root":"SourceBlock-module_root__1P3XD","text":"SourceBlock-modu
|
|
|
1507
1531
|
var SourceBlock = function SourceBlock(_ref) {
|
|
1508
1532
|
var _ref$block = _ref.block,
|
|
1509
1533
|
onlyOn = _ref$block.only_on,
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1534
|
+
_ref$block$data = _ref$block.data,
|
|
1535
|
+
quote = _ref$block$data.quote,
|
|
1536
|
+
origin = _ref$block$data.origin,
|
|
1537
|
+
url = _ref$block$data.url,
|
|
1513
1538
|
styleContext = _ref.styleContext;
|
|
1514
1539
|
var classNames = [[styles$r.root, true], [styles$r[onlyOn], true]];
|
|
1515
1540
|
|
|
@@ -1788,7 +1813,7 @@ var MetaContainer = function MetaContainer(_ref) {
|
|
|
1788
1813
|
icon: isListened ? 'listened' : 'read',
|
|
1789
1814
|
size: "unset"
|
|
1790
1815
|
})), isSlides && lang === 'ru' && React__default.createElement("div", {
|
|
1791
|
-
className: styles$
|
|
1816
|
+
className: styles$g.bookmark
|
|
1792
1817
|
}, React__default.createElement(BookmarkButton, {
|
|
1793
1818
|
isInBookmarks: isInBookmarks,
|
|
1794
1819
|
onClick: function onClick() {
|
|
@@ -1944,6 +1969,8 @@ var RenderBlocks = function RenderBlocks(_ref) {
|
|
|
1944
1969
|
}
|
|
1945
1970
|
};
|
|
1946
1971
|
|
|
1972
|
+
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"};
|
|
1973
|
+
|
|
1947
1974
|
var Cover = function Cover(_ref) {
|
|
1948
1975
|
var _ref$block = _ref.block,
|
|
1949
1976
|
onlyOn = _ref$block.only_on,
|
|
@@ -1963,15 +1990,15 @@ var Cover = function Cover(_ref) {
|
|
|
1963
1990
|
setIsPopoverShown = _useState[1];
|
|
1964
1991
|
|
|
1965
1992
|
var style = {};
|
|
1966
|
-
var classNames = [[styles$
|
|
1993
|
+
var classNames = [[styles$w.root, true], [styles$w[onlyOn], !!onlyOn && !!styles$w[onlyOn]]];
|
|
1967
1994
|
|
|
1968
1995
|
if (styleContext) {
|
|
1969
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
1996
|
+
classNames = makeStyleContext(classNames, styleContext, styles$w);
|
|
1970
1997
|
}
|
|
1971
1998
|
|
|
1972
1999
|
if (gradients) {
|
|
1973
2000
|
var theme = [gradients.text_rgb === '0,0,0' ? 'dark' : 'light'];
|
|
1974
|
-
classNames = makeStyleContext(classNames, theme, styles$
|
|
2001
|
+
classNames = makeStyleContext(classNames, theme, styles$w);
|
|
1975
2002
|
style.backgroundImage = generateGradient(gradients.bg_rgb);
|
|
1976
2003
|
}
|
|
1977
2004
|
|
|
@@ -1987,13 +2014,13 @@ var Cover = function Cover(_ref) {
|
|
|
1987
2014
|
"data-testid": "cover",
|
|
1988
2015
|
className: makeClassName(classNames)
|
|
1989
2016
|
}, React__default.createElement("div", {
|
|
1990
|
-
className: styles$
|
|
2017
|
+
className: styles$w.image
|
|
1991
2018
|
}, React__default.createElement(Image, {
|
|
1992
2019
|
optimized: urls,
|
|
1993
2020
|
ratio: mobileRatio,
|
|
1994
2021
|
display: "narrow"
|
|
1995
2022
|
})), React__default.createElement("div", {
|
|
1996
|
-
className: styles$
|
|
2023
|
+
className: styles$w.body,
|
|
1997
2024
|
style: style
|
|
1998
2025
|
}, blocks.map(function (item) {
|
|
1999
2026
|
return React__default.createElement(RenderBlocks, {
|
|
@@ -2002,7 +2029,7 @@ var Cover = function Cover(_ref) {
|
|
|
2002
2029
|
styleContext: styleContext
|
|
2003
2030
|
});
|
|
2004
2031
|
})), cc === 'button' && React__default.createElement("button", {
|
|
2005
|
-
className: styles$
|
|
2032
|
+
className: styles$w.control,
|
|
2006
2033
|
type: "button",
|
|
2007
2034
|
"aria-label": "Open",
|
|
2008
2035
|
onClick: function onClick() {
|
|
@@ -2015,7 +2042,7 @@ var Cover = function Cover(_ref) {
|
|
|
2015
2042
|
}, renderCC('isInPopover')));
|
|
2016
2043
|
};
|
|
2017
2044
|
|
|
2018
|
-
var styles$
|
|
2045
|
+
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"};
|
|
2019
2046
|
|
|
2020
2047
|
var HalfBlock = function HalfBlock(_ref) {
|
|
2021
2048
|
var _ref$block = _ref.block,
|
|
@@ -2027,25 +2054,25 @@ var HalfBlock = function HalfBlock(_ref) {
|
|
|
2027
2054
|
credit = _ref$block$data$cover.credit,
|
|
2028
2055
|
caption = _ref$block$data$cover.caption,
|
|
2029
2056
|
styleContext = _ref.styleContext;
|
|
2030
|
-
var classNames = [[styles$
|
|
2057
|
+
var classNames = [[styles$x.root, true], [styles$x[onlyOn], true]];
|
|
2031
2058
|
|
|
2032
2059
|
if (styleContext) {
|
|
2033
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
2060
|
+
classNames = makeStyleContext(classNames, styleContext, styles$x);
|
|
2034
2061
|
}
|
|
2035
2062
|
|
|
2036
2063
|
return React__default.createElement("div", {
|
|
2037
2064
|
"data-testid": "half-block",
|
|
2038
2065
|
className: makeClassName(classNames)
|
|
2039
2066
|
}, React__default.createElement("div", {
|
|
2040
|
-
className: styles$
|
|
2067
|
+
className: styles$x.main
|
|
2041
2068
|
}, React__default.createElement("div", {
|
|
2042
|
-
className: styles$
|
|
2069
|
+
className: styles$x.image
|
|
2043
2070
|
}, React__default.createElement(Image, {
|
|
2044
2071
|
optimized: optimized,
|
|
2045
2072
|
ratio: ratio,
|
|
2046
2073
|
display: "super_full"
|
|
2047
2074
|
})), React__default.createElement("div", {
|
|
2048
|
-
className: styles$
|
|
2075
|
+
className: styles$x.body
|
|
2049
2076
|
}, data.blocks.map(function (item) {
|
|
2050
2077
|
return React__default.createElement(RenderBlocks, {
|
|
2051
2078
|
key: item.id,
|
|
@@ -2053,7 +2080,7 @@ var HalfBlock = function HalfBlock(_ref) {
|
|
|
2053
2080
|
styleContext: ['rich']
|
|
2054
2081
|
});
|
|
2055
2082
|
}))), React__default.createElement("div", {
|
|
2056
|
-
className: styles$
|
|
2083
|
+
className: styles$x.footer
|
|
2057
2084
|
}, React__default.createElement(MediaCaption, {
|
|
2058
2085
|
credit: credit,
|
|
2059
2086
|
caption: caption,
|
|
@@ -2061,17 +2088,17 @@ var HalfBlock = function HalfBlock(_ref) {
|
|
|
2061
2088
|
})));
|
|
2062
2089
|
};
|
|
2063
2090
|
|
|
2064
|
-
var styles$
|
|
2091
|
+
var styles$y = {"root":"ImportantLead-module_root__2BdT3","slide":"ImportantLead-module_slide__3kQ9x","mobile":"ImportantLead-module_mobile__3BXbm","desktop":"ImportantLead-module_desktop__3Zljc"};
|
|
2065
2092
|
|
|
2066
2093
|
var ImportantLead = function ImportantLead(_ref) {
|
|
2067
2094
|
var _ref$block = _ref.block,
|
|
2068
2095
|
onlyOn = _ref$block.only_on,
|
|
2069
2096
|
data = _ref$block.data,
|
|
2070
2097
|
styleContext = _ref.styleContext;
|
|
2071
|
-
var classNames = [[styles$
|
|
2098
|
+
var classNames = [[styles$y.root, true], [styles$y[onlyOn], !!onlyOn]];
|
|
2072
2099
|
|
|
2073
2100
|
if (styleContext) {
|
|
2074
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
2101
|
+
classNames = makeStyleContext(classNames, styleContext, styles$y);
|
|
2075
2102
|
}
|
|
2076
2103
|
|
|
2077
2104
|
return React__default.createElement("div", {
|
|
@@ -2086,7 +2113,7 @@ var ImportantLead = function ImportantLead(_ref) {
|
|
|
2086
2113
|
}));
|
|
2087
2114
|
};
|
|
2088
2115
|
|
|
2089
|
-
var styles$
|
|
2116
|
+
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"};
|
|
2090
2117
|
|
|
2091
2118
|
var Spoiler = function Spoiler(_ref) {
|
|
2092
2119
|
var _ref$block = _ref.block,
|
|
@@ -2121,10 +2148,10 @@ var Spoiler = function Spoiler(_ref) {
|
|
|
2121
2148
|
}
|
|
2122
2149
|
};
|
|
2123
2150
|
|
|
2124
|
-
var classNames = [[styles$
|
|
2151
|
+
var classNames = [[styles$z.root, true], [styles$z[onlyOn], !!onlyOn], [styles$z[display], !!display && styles$z[display]], [[styles$z.spoiled], !!spoiled]];
|
|
2125
2152
|
|
|
2126
2153
|
if (styleContext) {
|
|
2127
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
2154
|
+
classNames = makeStyleContext(classNames, styleContext, styles$z);
|
|
2128
2155
|
}
|
|
2129
2156
|
|
|
2130
2157
|
var buttonCollapse = button ? button.collapse : 'Свернуть';
|
|
@@ -2134,9 +2161,9 @@ var Spoiler = function Spoiler(_ref) {
|
|
|
2134
2161
|
className: makeClassName(classNames),
|
|
2135
2162
|
"data-testid": "spoiler"
|
|
2136
2163
|
}, React__default.createElement("div", {
|
|
2137
|
-
className: styles$
|
|
2164
|
+
className: styles$z.header
|
|
2138
2165
|
}, title && React__default.createElement("h3", null, title)), React__default.createElement("div", {
|
|
2139
|
-
className: styles$
|
|
2166
|
+
className: styles$z.body
|
|
2140
2167
|
}, blocks.map(function (item) {
|
|
2141
2168
|
return React__default.createElement(RenderBlocks, {
|
|
2142
2169
|
key: item.id,
|
|
@@ -2144,7 +2171,7 @@ var Spoiler = function Spoiler(_ref) {
|
|
|
2144
2171
|
styleContext: styleContext
|
|
2145
2172
|
});
|
|
2146
2173
|
})), React__default.createElement("div", {
|
|
2147
|
-
className: styles$
|
|
2174
|
+
className: styles$z.footer
|
|
2148
2175
|
}, React__default.createElement(Button, {
|
|
2149
2176
|
size: "default",
|
|
2150
2177
|
theme: "gray",
|
|
@@ -2220,7 +2247,7 @@ var RawHtmlBlock = function RawHtmlBlock(_ref) {
|
|
|
2220
2247
|
}
|
|
2221
2248
|
};
|
|
2222
2249
|
|
|
2223
|
-
var styles$
|
|
2250
|
+
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"};
|
|
2224
2251
|
|
|
2225
2252
|
var ToolbarButton = function ToolbarButton(_ref) {
|
|
2226
2253
|
var children = _ref.children,
|
|
@@ -2228,7 +2255,7 @@ var ToolbarButton = function ToolbarButton(_ref) {
|
|
|
2228
2255
|
theme = _ref.theme,
|
|
2229
2256
|
isActive = _ref.isActive,
|
|
2230
2257
|
_onClick = _ref.onClick;
|
|
2231
|
-
var classNames = [[styles$
|
|
2258
|
+
var classNames = [[styles$A.root, true], [styles$A[type], !!styles$A[type]], [styles$A[theme], !!styles$A[theme] && !!theme], [styles$A.isActive, !!isActive]];
|
|
2232
2259
|
return React__default.createElement("button", {
|
|
2233
2260
|
"data-testid": "toolbar-button",
|
|
2234
2261
|
className: makeClassName(classNames),
|
|
@@ -2241,7 +2268,7 @@ var ToolbarButton = function ToolbarButton(_ref) {
|
|
|
2241
2268
|
icon: type,
|
|
2242
2269
|
styleContext: "isInToolbar"
|
|
2243
2270
|
}), children && React__default.createElement("span", {
|
|
2244
|
-
className: styles$
|
|
2271
|
+
className: styles$A.text
|
|
2245
2272
|
}, children));
|
|
2246
2273
|
};
|
|
2247
2274
|
|
|
@@ -2254,6 +2281,7 @@ exports.DocumentItemsCount = DocumentItemsCount;
|
|
|
2254
2281
|
exports.DotsOnImage = DotsOnImage;
|
|
2255
2282
|
exports.Dropdown = Dropdown;
|
|
2256
2283
|
exports.EmbedBlockContainer = EmbedBlockContainer;
|
|
2284
|
+
exports.Footnote = Footnote;
|
|
2257
2285
|
exports.GroupedBlock = GroupedBlock;
|
|
2258
2286
|
exports.HalfBlock = HalfBlock;
|
|
2259
2287
|
exports.Image = Image;
|