@meduza/ui-kit-2 0.8.4 → 0.8.6
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/README.md +15 -1
- package/dist/SvgSymbol/SvgSymbol.types.d.ts +1 -1
- package/dist/SvgSymbol/icons.d.ts +5 -0
- package/dist/ui-kit-2.cjs.development.js +86 -81
- 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 +86 -81
- package/dist/ui-kit-2.esm.js.map +1 -1
- package/dist/ui-kit-game.css +7070 -0
- package/dist/ui-kit.css +1221 -603
- package/package.json +17 -16
- package/src/AnnouncementInText/AnnouncementInText.module.css +0 -2
- package/src/AnnouncementInText/AnnouncementInText.stories.module.css +0 -2
- package/src/AnnouncementInText/index.tsx +2 -4
- package/src/BookmarkButton/BookmarkButton.module.css +0 -2
- package/src/BookmarkButton/BookmarkButton.stories.module.css +1 -1
- package/src/Button/Button.module.css +0 -2
- package/src/CardTitle/CardTitle.module.css +0 -2
- package/src/CardTitle/CardTitle.stories.module.css +0 -2
- package/src/CardTitle/index.tsx +1 -1
- package/src/ChapterBlock/ChapterBlock.module.css +0 -2
- package/src/ChapterBlock/ChapterBlock.stories.module.css +0 -2
- package/src/Cover/Cover.module.css +0 -2
- package/src/Cover/Cover.stories.module.css +0 -2
- package/src/Cover/Cover.types.ts +1 -0
- package/src/Cover/index.tsx +4 -1
- package/src/DocumentItemsCount/DocumentItemsCount.module.css +0 -3
- package/src/DocumentItemsCount/DocumentItemsCount.stories.module.css +0 -2
- package/src/DonatesTeaser/DonatesTeaser.module.css +0 -2
- package/src/DonatesTeaser/DonatesTeaser.stories.module.css +0 -2
- package/src/DotsOnImage/DotsOnImage.module.css +0 -2
- package/src/DotsOnImage/DotsOnImage.stories.module.css +0 -2
- package/src/Dropdown/Dropdown.module.css +0 -2
- package/src/Dropdown/Dropdown.stories.module.css +0 -2
- package/src/Dropdown/index.tsx +4 -1
- package/src/EmbedBlock/EmbedBlock.module.css +0 -2
- package/src/EmbedBlock/EmbedBlock.stories.module.css +0 -2
- package/src/EmbedBlock/EmbedBlock.types.ts +1 -0
- package/src/Footnote/Footnote.module.css +0 -2
- package/src/Footnote/Footnote.stories.module.css +0 -2
- package/src/GroupedBlock/GroupedBlock.module.css +0 -2
- package/src/GroupedBlock/GroupedBlock.stories.module.css +0 -2
- package/src/GroupedBlock/GroupedBlock.types.ts +1 -0
- package/src/HalfBlock/HalfBlock.module.css +0 -2
- package/src/HalfBlock/HalfBlock.stories.module.css +0 -2
- package/src/HalfBlock/HalfBlock.types.ts +1 -0
- package/src/Image/Image.module.css +0 -2
- package/src/Image/Image.stories.module.css +0 -2
- package/src/Image/index.tsx +4 -1
- package/src/ImportantLead/ImportantLead.module.css +1 -1
- package/src/ImportantLead/ImportantLead.stories.module.css +0 -2
- package/src/ImportantLead/ImportantLead.test.tsx +0 -1
- package/src/ImportantLead/ImportantLead.types.ts +1 -0
- package/src/Lazy/Lazy.module.css +0 -2
- package/src/Lazy/Lazy.stories.module.css +0 -2
- package/src/ListBlock/ListBlock.module.css +0 -2
- package/src/ListBlock/ListBlock.stories.module.css +0 -2
- package/src/MaterialNote/MaterialNote.module.css +0 -2
- package/src/MaterialNote/MaterialNote.stories.module.css +0 -2
- package/src/MaterialTitle/MaterialTitle.module.css +0 -2
- package/src/MaterialTitle/MaterialTitle.stories.module.css +0 -2
- package/src/MediaCaption/MediaCaption.module.css +0 -2
- package/src/MediaCaption/MediaCaption.stories.module.css +0 -2
- package/src/Meta/Meta.module.css +0 -2
- package/src/Meta/Meta.stories.module.css +0 -2
- package/src/Meta/Meta.types.ts +1 -0
- package/src/MetaItem/MetaItem.module.css +0 -2
- package/src/MetaItem/MetaItem.stories.module.css +0 -2
- package/src/MetaItemLive/MetaItemLive.module.css +0 -3
- package/src/MetaItemLive/MetaItemLive.stories.module.css +0 -2
- package/src/Popover/Popover.module.css +0 -2
- package/src/Popover/Popover.stories.module.css +0 -2
- package/src/QuoteBlock/QuoteBlock.module.css +0 -2
- package/src/QuoteBlock/QuoteBlock.stories.module.css +0 -2
- package/src/RawHtmlBlock/RawHtmlBlock.stories.module.css +0 -2
- package/src/RawHtmlBlock/RawHtmlBlock.types.ts +1 -0
- package/src/RelatedBlock/RelatedBlock.module.css +0 -2
- package/src/RelatedBlock/RelatedBlock.stories.module.css +0 -2
- package/src/RelatedBook/RelatedBook.module.css +0 -2
- package/src/RelatedBook/RelatedBook.stories.module.css +0 -2
- package/src/RelatedBook/RelatedBook.types.ts +1 -0
- package/src/RelatedRichBlock/RelatedRichBlock.module.css +0 -2
- package/src/RelatedRichBlock/RelatedRichBlock.stories.module.css +0 -2
- package/src/RelatedRichBlock/RelatedRichBlock.types.ts +1 -0
- package/src/RenderBlocks/RenderBlocks.stories.module.css +0 -2
- package/src/RenderBlocks/RenderBlocks.types.ts +1 -0
- package/src/RenderBlocks/index.tsx +6 -2
- package/src/RichTitle/RichTitle.module.css +0 -2
- package/src/RichTitle/RichTitle.stories.module.css +0 -2
- package/src/SensitiveBlock/SensitiveBlock.module.css +0 -2
- package/src/SensitiveBlock/SensitiveBlock.stories.module.css +0 -2
- package/src/SensitiveBlock/SensitiveBlock.types.ts +1 -0
- package/src/ShopRelatedBlock/ShopRelatedBlock.module.css +0 -2
- package/src/ShopRelatedBlock/ShopRelatedBlock.stories.module.css +0 -2
- package/src/ShopRelatedBlock/ShopRelatedBlock.types.ts +1 -0
- package/src/SimpleBlock/FootnoteLink.css +0 -3
- package/src/SimpleBlock/SimpleBlock.module.css +1 -1
- package/src/SimpleBlock/SimpleBlock.stories.module.css +0 -2
- package/src/SimpleBlock/SimpleBlock.types.ts +1 -0
- package/src/SimpleTitle/SimpleTitle.module.css +0 -2
- package/src/SimpleTitle/SimpleTitle.stories.module.css +0 -2
- package/src/SourceBlock/SourceBlock.module.css +0 -2
- package/src/SourceBlock/SourceBlock.stories.module.css +0 -2
- package/src/Spoiler/Spoiler.module.css +0 -2
- package/src/Spoiler/Spoiler.stories.module.css +0 -2
- package/src/Spoiler/Spoiler.types.ts +1 -0
- package/src/SvgSymbol/SvgSymbol.module.css +2 -4
- package/src/SvgSymbol/SvgSymbol.stories.module.css +0 -70
- package/src/SvgSymbol/SvgSymbol.types.ts +1 -0
- package/src/SvgSymbol/icons.ts +7 -0
- package/src/Switcher/Switcher.module.css +0 -2
- package/src/Switcher/Switcher.stories.module.css +0 -2
- package/src/Table/Table.module.css +0 -2
- package/src/Table/Table.stories.module.css +0 -2
- package/src/Tag/Tag.module.css +5 -3
- package/src/Tag/Tag.stories.module.css +0 -2
- package/src/Tag/Tag.types.ts +7 -1
- package/src/Timestamp/Timestamp.module.css +0 -2
- package/src/Timestamp/Timestamp.stories.module.css +0 -2
- package/src/Toolbar/Toolbar.module.css +0 -2
- package/src/Toolbar/Toolbar.stories.module.css +0 -2
- package/src/ToolbarButton/ToolbarButton.module.css +0 -2
- package/src/ToolbarButton/ToolbarButton.stories.module.css +0 -2
- package/src/Tooltip/Tooltip.module.css +0 -2
- package/src/Tooltip/Tooltip.stories.module.css +0 -2
- package/src/VersesBlock/VersesBlock.module.css +0 -2
- package/src/VersesBlock/VersesBlock.stories.module.css +0 -2
- package/src/VersesBlock/VersesBlock.stories.tsx +4 -1
- package/src/VersesBlock/index.tsx +0 -1
- package/src/_storybook/PreviewWrapper/PreviewWrapper.module.css +0 -95
- package/src/vars-games.css +0 -62
- package/src/vars.css +0 -50
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
- `yarn start` - запускает development сборку с hot reload, пишет все в папку dist
|
|
6
6
|
- `cd example && yarn start` - запускает сборку тестового проекта с hot reload,
|
|
7
|
-
в который можно импортировать компоненты из кита
|
|
7
|
+
в который можно импортировать компоненты из кита
|
|
8
8
|
- `yarn storybook` - запускает storybook
|
|
9
9
|
|
|
10
10
|
`yarn generate` - генератор компонентов. Вводим название компонента, получаем все файлы и импорты
|
|
@@ -14,3 +14,17 @@
|
|
|
14
14
|
Необходимо глобально импортировать в проект файл ui-kit.css (туда собираются все модули)
|
|
15
15
|
Любые компоненты просто импортятся из кита
|
|
16
16
|
|
|
17
|
+
## Сборка
|
|
18
|
+
|
|
19
|
+
### Режимы сборки
|
|
20
|
+
|
|
21
|
+
- `yarn build --mode development` - сборка стилей с переменными сайта
|
|
22
|
+
- `yarn build --mode production` - сборка стилей без переменных
|
|
23
|
+
|
|
24
|
+
### Особенности production сборки
|
|
25
|
+
|
|
26
|
+
- Запускается без подключения переменных в silent-режиме
|
|
27
|
+
- CSS-модули собираются в `ui-kit.css`
|
|
28
|
+
- После сборки запускается `build.sh`:
|
|
29
|
+
1. Создает `ui-kit-game.css` с игровыми переменными
|
|
30
|
+
2. Перезаписывает `ui-kit.css` с переменными сайта
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export type SvgSymbolStyleContexts = 'isInFeature' | 'isInCard' | 'isInTopicBlockItem' | 'isInPageStatic' | 'isInMaterialMeta' | 'isInToolbar' | 'isInEpisodeBlock' | 'isInAudioPlayer' | 'isInAudioPanel' | 'isInPlaylist' | 'PodcastMaterial' | 'isInHeader' | 'isInProfile' | 'isInBookmark';
|
|
2
|
-
export type Icons = 'meduzaLogo' | 'meduzaSymbol' | 'menu' | 'fb' | 'tw' | 'vk' | 'ok' | 'tg' | 'chat' | 'magic' | 'backward' | 'forward' | 'download' | 'play' | 'pause' | 'shareBookmark' | 'speedHalf' | 'speedOne' | 'speedOneHalf' | 'speedTwo' | 'podcastBookmark' | 'reaction' | 'cross' | 'link' | 'search' | 'card' | 'podcast' | 'arrow' | 'brent' | 'user' | 'bookmark' | 'receipt' | 'read' | 'listened';
|
|
2
|
+
export type Icons = 'meduzaLogo' | 'meduzaSymbol' | 'menu' | 'fb' | 'tw' | 'vk' | 'ok' | 'tg' | 'chat' | 'magic' | 'backward' | 'forward' | 'download' | 'episodeDownload' | 'play' | 'pause' | 'shareBookmark' | 'speedHalf' | 'speedOne' | 'speedOneHalf' | 'speedTwo' | 'podcastBookmark' | 'reaction' | 'cross' | 'link' | 'search' | 'card' | 'podcast' | 'arrow' | 'brent' | 'user' | 'bookmark' | 'receipt' | 'read' | 'listened';
|
|
3
3
|
export type Sizes = 'small' | 'normal' | 'medium' | 'large' | 'unset';
|
|
4
4
|
export interface SvgSymbolProps {
|
|
5
5
|
styleContext?: SvgSymbolStyleContexts;
|
|
@@ -13,7 +13,7 @@ const makeClassName = list => {
|
|
|
13
13
|
return list.filter(([, active]) => active).map(([className]) => className).join(' ');
|
|
14
14
|
};
|
|
15
15
|
|
|
16
|
-
const ButtonLoader = () => /*#__PURE__*/React.createElement("svg", {
|
|
16
|
+
const ButtonLoader = () => ( /*#__PURE__*/React.createElement("svg", {
|
|
17
17
|
width: "30px",
|
|
18
18
|
height: "30px",
|
|
19
19
|
viewBox: "0 0 30 30",
|
|
@@ -32,7 +32,7 @@ const ButtonLoader = () => /*#__PURE__*/React.createElement("svg", {
|
|
|
32
32
|
repeatCount: "indefinite"
|
|
33
33
|
}), /*#__PURE__*/React.createElement("path", {
|
|
34
34
|
d: "M15 0c8.18 0 14.83 6.547 14.997 14.686L30 15h-2c0-7.077-5.655-12.833-12.693-12.996L15 2V0z"
|
|
35
|
-
})));
|
|
35
|
+
}))));
|
|
36
36
|
|
|
37
37
|
var styles$I = {"root":"Button-module_root__9OQ5b","gold":"Button-module_gold__q-XBP","isLoading":"Button-module_isLoading__Z53G4","gray":"Button-module_gray__fypDq","sand":"Button-module_sand__e5v-k","dark":"Button-module_dark__qv4NQ","light":"Button-module_light__TLYLT","black":"Button-module_black__GIsbk","red":"Button-module_red__kybni","default":"Button-module_default__utLb-","isInSpoiler":"Button-module_isInSpoiler__pGp-w","ghost":"Button-module_ghost__1s5-r","isInDropdown":"Button-module_isInDropdown__gN7TI","loader":"Button-module_loader__r0Mjs","isFancy":"Button-module_isFancy__gTRmu"};
|
|
38
38
|
|
|
@@ -58,9 +58,9 @@ const Button = ({
|
|
|
58
58
|
disabled: disabled,
|
|
59
59
|
onClick: handleClick,
|
|
60
60
|
type: "button"
|
|
61
|
-
}, state === 'isLoading' ? /*#__PURE__*/React.createElement("span", {
|
|
61
|
+
}, state === 'isLoading' ? ( /*#__PURE__*/React.createElement("span", {
|
|
62
62
|
className: styles$I.loader
|
|
63
|
-
}, /*#__PURE__*/React.createElement(ButtonLoader, null)) : children);
|
|
63
|
+
}, /*#__PURE__*/React.createElement(ButtonLoader, null))) : children);
|
|
64
64
|
};
|
|
65
65
|
|
|
66
66
|
const icons = {
|
|
@@ -119,6 +119,11 @@ const icons = {
|
|
|
119
119
|
height: 27,
|
|
120
120
|
content: '<path d="M12.5 2C19.404 2 25 7.596 25 14.5S19.404 27 12.5 27 0 21.404 0 14.5 5.596 2 12.5 2zm0 1.5c-6.075 0-11 4.925-11 11s4.925 11 11 11 11-4.925 11-11-4.925-11-11-11zm6 15.75a.75.75 0 01.102 1.493l-.102.007h-12a.75.75 0 01-.102-1.493l.102-.007h12zm-6-12a.75.75 0 01.743.648L13.25 8v7.598l1.834-1.222a.75.75 0 11.832 1.248l-3 2a.75.75 0 01-.832 0l-3-2a.75.75 0 11.832-1.248l1.834 1.223V8a.75.75 0 01.648-.743l.102-.007z" fill-rule="nonzero" fill="currentColor" />'
|
|
121
121
|
},
|
|
122
|
+
episodeDownload: {
|
|
123
|
+
width: 24,
|
|
124
|
+
height: 24,
|
|
125
|
+
content: '<><circle xmlns="http://www.w3.org/2000/svg" cx="12" cy="12" r="10.5" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path xmlns="http://www.w3.org/2000/svg" d="M12 16.5L12 7.5M12 16.5L15.5 14.2257M12 16.5L8.5 14.2257" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></>'
|
|
126
|
+
},
|
|
122
127
|
play: {
|
|
123
128
|
width: 62,
|
|
124
129
|
height: 62,
|
|
@@ -262,12 +267,12 @@ const Switcher = ({
|
|
|
262
267
|
onChange,
|
|
263
268
|
styleContext,
|
|
264
269
|
theme = 'light'
|
|
265
|
-
}) => /*#__PURE__*/React.createElement("label", {
|
|
270
|
+
}) => ( /*#__PURE__*/React.createElement("label", {
|
|
266
271
|
"data-testid": "switcher",
|
|
267
272
|
className: makeClassName([[styles$G.root, true], [styles$G[theme], !!styles$G[theme]], [styles$G[styleContext], !!styles$G[styleContext]]])
|
|
268
|
-
}, children && childrenPosition === 'left' && /*#__PURE__*/React.createElement("div", {
|
|
273
|
+
}, children && childrenPosition === 'left' && ( /*#__PURE__*/React.createElement("div", {
|
|
269
274
|
className: makeClassName([[styles$G.children, true], [styles$G.left, true]])
|
|
270
|
-
}, children), /*#__PURE__*/React.createElement("input", {
|
|
275
|
+
}, children)), /*#__PURE__*/React.createElement("input", {
|
|
271
276
|
className: styles$G.input,
|
|
272
277
|
type: "checkbox",
|
|
273
278
|
checked: enabled,
|
|
@@ -276,9 +281,9 @@ const Switcher = ({
|
|
|
276
281
|
className: styles$G.control
|
|
277
282
|
}, /*#__PURE__*/React.createElement("span", {
|
|
278
283
|
className: styles$G.knob
|
|
279
|
-
})), children && childrenPosition === 'right' && /*#__PURE__*/React.createElement("div", {
|
|
284
|
+
})), children && childrenPosition === 'right' && ( /*#__PURE__*/React.createElement("div", {
|
|
280
285
|
className: makeClassName([[styles$G.children, true], [styles$G.right, true]])
|
|
281
|
-
}, children));
|
|
286
|
+
}, children))));
|
|
282
287
|
|
|
283
288
|
const makeStyleContext = (classNames, styleContext, styles) => {
|
|
284
289
|
const context = Array.isArray(styleContext) ? styleContext.filter(ctx => styles[ctx]).map(ctx => [[styles[ctx]], true]) : [[styles[styleContext], !!styleContext && !!styles[styleContext]]];
|
|
@@ -388,13 +393,13 @@ const RenderPicture = ({
|
|
|
388
393
|
setFallback(!window.HTMLPictureElement);
|
|
389
394
|
}, []);
|
|
390
395
|
const keys = imageConditionalKeys[toCamel(display)] || imageConditionalKeys.default;
|
|
391
|
-
return /*#__PURE__*/React.createElement("picture", null, source && /*#__PURE__*/React.createElement("source", {
|
|
396
|
+
return /*#__PURE__*/React.createElement("picture", null, source && ( /*#__PURE__*/React.createElement("source", {
|
|
392
397
|
media: "(min-width: 325px)",
|
|
393
398
|
srcSet: `${source[1]} 2x`
|
|
394
|
-
}), optimized && !optimized.w325 && /*#__PURE__*/React.createElement("source", {
|
|
399
|
+
})), optimized && !optimized.w325 && ( /*#__PURE__*/React.createElement("source", {
|
|
395
400
|
media: "(min-width: 0)",
|
|
396
401
|
srcSet: `${optimized.original}`
|
|
397
|
-
}), optimized && keys.map(key => {
|
|
402
|
+
})), optimized && keys.map(key => {
|
|
398
403
|
const breakpoint = optimized[`w${key}`];
|
|
399
404
|
if (!breakpoint) {
|
|
400
405
|
return null;
|
|
@@ -446,7 +451,7 @@ const Image = ({
|
|
|
446
451
|
maxWidth: width <= 649 ? width : '100%'
|
|
447
452
|
};
|
|
448
453
|
const pictureStyles = {
|
|
449
|
-
paddingBottom: `${100 / (ratio || width / height)}%`
|
|
454
|
+
paddingBottom: styleContext !== 'isInDynamicBlock' ? '100%' : `${100 / (ratio || width / height)}%`
|
|
450
455
|
};
|
|
451
456
|
/* fallback w325 url until w6 was released */
|
|
452
457
|
const fallbackSource = source && source[0] || optimized.w325 && optimized.w325['1x'] || optimized.original;
|
|
@@ -465,7 +470,7 @@ const Image = ({
|
|
|
465
470
|
onKeyPress: () => handleClick(),
|
|
466
471
|
role: "button",
|
|
467
472
|
tabIndex: 0
|
|
468
|
-
}, lazy ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Lazy, {
|
|
473
|
+
}, lazy ? ( /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Lazy, {
|
|
469
474
|
threshold: 0.25
|
|
470
475
|
}, /*#__PURE__*/React.createElement(RenderPicture, {
|
|
471
476
|
fallbackSource: fallbackSource,
|
|
@@ -477,14 +482,14 @@ const Image = ({
|
|
|
477
482
|
})), /*#__PURE__*/React.createElement("noscript", null, /*#__PURE__*/React.createElement("img", {
|
|
478
483
|
src: fallbackSource,
|
|
479
484
|
alt: alt
|
|
480
|
-
}))) : /*#__PURE__*/React.createElement(RenderPicture, {
|
|
485
|
+
})))) : ( /*#__PURE__*/React.createElement(RenderPicture, {
|
|
481
486
|
fallbackSource: fallbackSource,
|
|
482
487
|
source: source,
|
|
483
488
|
optimized: optimized,
|
|
484
489
|
alt: alt,
|
|
485
490
|
display: display,
|
|
486
491
|
onLoad: setIsLoaded
|
|
487
|
-
})));
|
|
492
|
+
}))));
|
|
488
493
|
};
|
|
489
494
|
|
|
490
495
|
var styles$D = {"root":"Popover-module_root__nBiV4","fadeOut":"Popover-module_fadeOut__Y88V7","visible":"Popover-module_visible__XVQLW","fadeIn":"Popover-module_fadeIn__FK1gd","overlay":"Popover-module_overlay__NAPar","container":"Popover-module_container__y4SB1","disappear":"Popover-module_disappear__uUn2b","dismiss":"Popover-module_dismiss__W8KFF","background":"Popover-module_background__apiio","appear":"Popover-module_appear__b-CZ2","body":"Popover-module_body__UJEZf"};
|
|
@@ -586,10 +591,10 @@ const Footnote = ({
|
|
|
586
591
|
}, children));
|
|
587
592
|
};
|
|
588
593
|
|
|
589
|
-
var viewportSize = (
|
|
594
|
+
var viewportSize = () => ({
|
|
590
595
|
width: window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth,
|
|
591
596
|
height: window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight
|
|
592
|
-
})
|
|
597
|
+
});
|
|
593
598
|
|
|
594
599
|
var styles$B = {"root":"DotsOnImage-module_root__8UQf2","isVisible":"DotsOnImage-module_isVisible__rA5x9","marker":"DotsOnImage-module_marker__pLdQT","show":"DotsOnImage-module_show__Ec0lG","dot":"DotsOnImage-module_dot__e2MWx","isActive":"DotsOnImage-module_isActive__Bhb58","popover":"DotsOnImage-module_popover__zHSbU","isRight":"DotsOnImage-module_isRight__IaUbc","isTop":"DotsOnImage-module_isTop__RMK49","isLeft":"DotsOnImage-module_isLeft__Q6JZ-","isBottom":"DotsOnImage-module_isBottom__c-aLe"};
|
|
595
600
|
|
|
@@ -685,7 +690,7 @@ const DotsOnImage = ({
|
|
|
685
690
|
display: display
|
|
686
691
|
}), /*#__PURE__*/React.createElement("div", {
|
|
687
692
|
ref: container
|
|
688
|
-
}, dots.map(dot => /*#__PURE__*/React.createElement("div", {
|
|
693
|
+
}, dots.map(dot => ( /*#__PURE__*/React.createElement("div", {
|
|
689
694
|
className: styles$B.dot,
|
|
690
695
|
key: dot.id,
|
|
691
696
|
style: {
|
|
@@ -700,11 +705,11 @@ const DotsOnImage = ({
|
|
|
700
705
|
backgroundColor: dot.icon.color
|
|
701
706
|
},
|
|
702
707
|
onClick: () => handleDotClick(dot)
|
|
703
|
-
}, dot.icon.type === 'svg' && /*#__PURE__*/React.createElement("div", {
|
|
708
|
+
}, dot.icon.type === 'svg' && ( /*#__PURE__*/React.createElement("div", {
|
|
704
709
|
dangerouslySetInnerHTML: {
|
|
705
710
|
__html: dot.icon.svg_string
|
|
706
711
|
}
|
|
707
|
-
}), dot.icon.type === 'number' && dot.icon.number))), popover.show && /*#__PURE__*/React.createElement(React.Fragment, null, viewportSize().width >= MediaQuerySizes.LANDSCAPE_TABLET ? /*#__PURE__*/React.createElement("div", {
|
|
712
|
+
})), dot.icon.type === 'number' && dot.icon.number)))), popover.show && ( /*#__PURE__*/React.createElement(React.Fragment, null, viewportSize().width >= MediaQuerySizes.LANDSCAPE_TABLET ? ( /*#__PURE__*/React.createElement("div", {
|
|
708
713
|
className: makeClassName([[styles$B.popover, true], [styles$B[popover.side], !!popover.side], [styles$B[popover.align], !!popover.align]]),
|
|
709
714
|
style: popover.style
|
|
710
715
|
}, /*#__PURE__*/React.createElement(Footnote, {
|
|
@@ -717,7 +722,7 @@ const DotsOnImage = ({
|
|
|
717
722
|
dangerouslySetInnerHTML: {
|
|
718
723
|
__html: popover.body
|
|
719
724
|
}
|
|
720
|
-
}))) : /*#__PURE__*/React.createElement(Popover, {
|
|
725
|
+
})))) : ( /*#__PURE__*/React.createElement(Popover, {
|
|
721
726
|
onClose: () => {
|
|
722
727
|
setPopover({
|
|
723
728
|
show: false
|
|
@@ -727,7 +732,7 @@ const DotsOnImage = ({
|
|
|
727
732
|
dangerouslySetInnerHTML: {
|
|
728
733
|
__html: popover.body
|
|
729
734
|
}
|
|
730
|
-
})))));
|
|
735
|
+
})))))));
|
|
731
736
|
};
|
|
732
737
|
|
|
733
738
|
var styles$A = {"root":"Tag-module_root__sGbnM","small":"Tag-module_small__hcPrf","large":"Tag-module_large__EKMu6","dark":"Tag-module_dark__9SHCb","light":"Tag-module_light__qlfy3","gold":"Tag-module_gold__u0bzS","gray":"Tag-module_gray__eazPk","inherit":"Tag-module_inherit__z21c-","is1to1":"Tag-module_is1to1__V-fH5","is1to2":"Tag-module_is1to2__b9Obh","isInSuperBlock":"Tag-module_isInSuperBlock__wrFUY","is1to3":"Tag-module_is1to3__vZT-R","is1to4":"Tag-module_is1to4__MBh5V","slide":"Tag-module_slide__gzptP","game":"Tag-module_game__NmKec","podcastMaterial":"Tag-module_podcastMaterial__O-LBI","richRelated":"Tag-module_richRelated__Qs6Ei","isInBookRelated":"Tag-module_isInBookRelated__ikTaj","card":"Tag-module_card__TX87-","live":"Tag-module_live__ykyR7","episode":"Tag-module_episode__3OHmN","podcast":"Tag-module_podcast__K6dHn","rich":"Tag-module_rich__vPnWd","isInDynamicBlock":"Tag-module_isInDynamicBlock__WNleF","mobile":"Tag-module_mobile__19oMH","desktop":"Tag-module_desktop__cNyQs"};
|
|
@@ -764,17 +769,17 @@ const MediaCaption = ({
|
|
|
764
769
|
return /*#__PURE__*/React.createElement("div", {
|
|
765
770
|
"data-testid": "media-caption",
|
|
766
771
|
className: makeClassName(classNames)
|
|
767
|
-
}, caption && /*#__PURE__*/React.createElement("div", {
|
|
772
|
+
}, caption && ( /*#__PURE__*/React.createElement("div", {
|
|
768
773
|
className: styles$z.caption,
|
|
769
774
|
dangerouslySetInnerHTML: {
|
|
770
775
|
__html: caption
|
|
771
776
|
}
|
|
772
|
-
}), credit && /*#__PURE__*/React.createElement("div", {
|
|
777
|
+
})), credit && ( /*#__PURE__*/React.createElement("div", {
|
|
773
778
|
className: styles$z.credit,
|
|
774
779
|
dangerouslySetInnerHTML: {
|
|
775
780
|
__html: credit
|
|
776
781
|
}
|
|
777
|
-
}));
|
|
782
|
+
})));
|
|
778
783
|
};
|
|
779
784
|
|
|
780
785
|
var styles$y = {"root":"Table-module_root__fRuZq","card":"Table-module_card__8r-EA","table":"Table-module_table__7Pagp","slide":"Table-module_slide__dgMPV","wrapper":"Table-module_wrapper__AP4Pz","tracks":"Table-module_tracks__mRNG0","default":"Table-module_default__nwBEg","full":"Table-module_full__YZPDz","row":"Table-module_row__9OHT3","cell":"Table-module_cell__yFdqc","fixedColumn":"Table-module_fixedColumn__O2528","white":"Table-module_white__Laj3-","gray":"Table-module_gray__FPFh0","pink":"Table-module_pink__CGkAA","blue":"Table-module_blue__b8BHs","yellow":"Table-module_yellow__YOJgu","orange":"Table-module_orange__B-i8L","green":"Table-module_green__Bt6iC","violet":"Table-module_violet__yTZd7","header":"Table-module_header__YPDzO","s":"Table-module_s__I-CeX","m":"Table-module_m__vxhDf","l":"Table-module_l__GYHhk","xs":"Table-module_xs__imR8t"};
|
|
@@ -816,17 +821,17 @@ const Table = ({
|
|
|
816
821
|
return /*#__PURE__*/React.createElement("div", {
|
|
817
822
|
key: row.key,
|
|
818
823
|
className: styles$y.row
|
|
819
|
-
}, row.cells.map((cell, j) => /*#__PURE__*/React.createElement("div", {
|
|
824
|
+
}, row.cells.map((cell, j) => ( /*#__PURE__*/React.createElement("div", {
|
|
820
825
|
key: cell.key,
|
|
821
826
|
className: makeClassName([[styles$y.cell, true], [styles$y.header, options.header && i === 0], [styles$y[colors[cell.color]], true], [styles$y[columnsWidth[j]], true], [styles$y.fixedColumn, options.fixed_first_column && j === 0]]),
|
|
822
827
|
dangerouslySetInnerHTML: {
|
|
823
828
|
__html: cell.val
|
|
824
829
|
}
|
|
825
|
-
})));
|
|
826
|
-
})))), tableCredit && /*#__PURE__*/React.createElement(MediaCaption, {
|
|
830
|
+
}))));
|
|
831
|
+
})))), tableCredit && ( /*#__PURE__*/React.createElement(MediaCaption, {
|
|
827
832
|
credit: tableCredit,
|
|
828
833
|
styleContext: styleContext
|
|
829
|
-
}));
|
|
834
|
+
})));
|
|
830
835
|
};
|
|
831
836
|
|
|
832
837
|
var styles$x = {"root":"MaterialNote-module_root__99HSA","dark":"MaterialNote-module_dark__etjym","note_credit":"MaterialNote-module_note_credit__J1skG","note_caption":"MaterialNote-module_note_caption__G2Ad0","center":"MaterialNote-module_center__mDLEO","default":"MaterialNote-module_default__ozgd7","card":"MaterialNote-module_card__EVuZe","slide":"MaterialNote-module_slide__mg8XV","game":"MaterialNote-module_game__c-r0n","gameSurvey":"MaterialNote-module_gameSurvey__azhu6"};
|
|
@@ -844,13 +849,13 @@ const MaterialNote = ({
|
|
|
844
849
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
845
850
|
"data-testid": "material-note",
|
|
846
851
|
className: makeClassName(classNames)
|
|
847
|
-
}, data && data.map(item => /*#__PURE__*/React.createElement("p", {
|
|
852
|
+
}, data && data.map(item => ( /*#__PURE__*/React.createElement("p", {
|
|
848
853
|
className: styles$x[item.type],
|
|
849
854
|
key: item.id,
|
|
850
855
|
dangerouslySetInnerHTML: {
|
|
851
856
|
__html: item.data
|
|
852
857
|
}
|
|
853
|
-
}))));
|
|
858
|
+
})))));
|
|
854
859
|
};
|
|
855
860
|
|
|
856
861
|
var styles$w = {"root":"BookmarkButton-module_root__A-75w","control":"BookmarkButton-module_control__-xy5O","dark":"BookmarkButton-module_dark__GkMEC","light":"BookmarkButton-module_light__1W6tx","isInBookmarks":"BookmarkButton-module_isInBookmarks__YSjjj","isInGrid":"BookmarkButton-module_isInGrid__Desh-"};
|
|
@@ -918,7 +923,7 @@ const Dropdown = ({
|
|
|
918
923
|
active,
|
|
919
924
|
styleContext
|
|
920
925
|
}) => {
|
|
921
|
-
let classNames = [[styles$u.root, true], [styles$u.inactive, !active && styleContext ===
|
|
926
|
+
let classNames = [[styles$u.root, true], [styles$u.inactive, !active && styleContext === 'isPodcastSeason' && !!styles$u.inactive]];
|
|
922
927
|
if (styleContext) {
|
|
923
928
|
classNames = makeStyleContext(classNames, styleContext, styles$u);
|
|
924
929
|
}
|
|
@@ -1139,11 +1144,11 @@ const EmbedBlock = ({
|
|
|
1139
1144
|
const isProportional = block.data.height && block.data.width;
|
|
1140
1145
|
const fullWidthProviders = ['youtube', 'vimeo', 'onetv', 'coub', 'meduza', 'facebook_video'];
|
|
1141
1146
|
const mobileFullwidth = fullWidthProviders.indexOf(provider) > -1 || block.type === 'dots_on_image';
|
|
1142
|
-
const renderCC = context => /*#__PURE__*/React.createElement(MediaCaption, {
|
|
1147
|
+
const renderCC = context => ( /*#__PURE__*/React.createElement(MediaCaption, {
|
|
1143
1148
|
credit: data.credit,
|
|
1144
1149
|
caption: data.caption,
|
|
1145
1150
|
styleContext: context || styleContext
|
|
1146
|
-
});
|
|
1151
|
+
}));
|
|
1147
1152
|
const renderEmbed = style => {
|
|
1148
1153
|
switch (block.type) {
|
|
1149
1154
|
case 'gif':
|
|
@@ -1218,25 +1223,25 @@ const EmbedBlock = ({
|
|
|
1218
1223
|
}
|
|
1219
1224
|
return /*#__PURE__*/React.createElement("figure", {
|
|
1220
1225
|
className: makeClassName(classNames)
|
|
1221
|
-
}, children && /*#__PURE__*/React.createElement("div", {
|
|
1226
|
+
}, children && ( /*#__PURE__*/React.createElement("div", {
|
|
1222
1227
|
className: styles$q.object
|
|
1223
1228
|
}, /*#__PURE__*/React.createElement("div", {
|
|
1224
1229
|
className: styles$q.wrapper,
|
|
1225
1230
|
style: style
|
|
1226
1231
|
}, /*#__PURE__*/React.createElement("div", {
|
|
1227
1232
|
className: styles$q.objectWrap
|
|
1228
|
-
}, children))), !children && renderEmbed(style), cc === 'default' && /*#__PURE__*/React.createElement("figcaption", null, renderCC()), cc === 'button' && /*#__PURE__*/React.createElement("button", {
|
|
1233
|
+
}, children)))), !children && renderEmbed(style), cc === 'default' && /*#__PURE__*/React.createElement("figcaption", null, renderCC()), cc === 'button' && ( /*#__PURE__*/React.createElement("button", {
|
|
1229
1234
|
className: styles$q.control,
|
|
1230
1235
|
type: "button",
|
|
1231
1236
|
"aria-label": "Open",
|
|
1232
1237
|
onClick: () => {
|
|
1233
1238
|
setIsPopoverShown(!isPopoverShown);
|
|
1234
1239
|
}
|
|
1235
|
-
}), cc === 'button' && isPopoverShown && /*#__PURE__*/React.createElement(Popover, {
|
|
1240
|
+
})), cc === 'button' && isPopoverShown && ( /*#__PURE__*/React.createElement(Popover, {
|
|
1236
1241
|
onClose: () => {
|
|
1237
1242
|
setIsPopoverShown(false);
|
|
1238
1243
|
}
|
|
1239
|
-
}, renderCC('isInPopover')));
|
|
1244
|
+
}, renderCC('isInPopover'))));
|
|
1240
1245
|
};
|
|
1241
1246
|
|
|
1242
1247
|
const IframeBlock = ({
|
|
@@ -1515,12 +1520,12 @@ const ListBlock = ({
|
|
|
1515
1520
|
return /*#__PURE__*/React.createElement(TagName, {
|
|
1516
1521
|
className: makeClassName(classNames),
|
|
1517
1522
|
"data-testid": "list-block"
|
|
1518
|
-
}, data.map((item, index) => /*#__PURE__*/React.createElement("li", {
|
|
1523
|
+
}, data.map((item, index) => ( /*#__PURE__*/React.createElement("li", {
|
|
1519
1524
|
key: index,
|
|
1520
1525
|
dangerouslySetInnerHTML: {
|
|
1521
1526
|
__html: item
|
|
1522
1527
|
}
|
|
1523
|
-
})));
|
|
1528
|
+
}))));
|
|
1524
1529
|
};
|
|
1525
1530
|
|
|
1526
1531
|
var styles$i = {"root":"RelatedBlock-module_root__cr1c-","header":"RelatedBlock-module_header__bfUJD","items":"RelatedBlock-module_items__rzzam","rich":"RelatedBlock-module_rich__1cWdn","first":"RelatedBlock-module_first__ZkcP5","simple":"RelatedBlock-module_simple__m22bj","center":"RelatedBlock-module_center__WVpIJ","isInSlideMaterial":"RelatedBlock-module_isInSlideMaterial__VumDw","mobile":"RelatedBlock-module_mobile__AScBA","desktop":"RelatedBlock-module_desktop__uMXUY"};
|
|
@@ -1546,14 +1551,14 @@ const RelatedBlock = ({
|
|
|
1546
1551
|
className: styles$i.header
|
|
1547
1552
|
}, title), /*#__PURE__*/React.createElement("ul", {
|
|
1548
1553
|
className: styles$i.items
|
|
1549
|
-
}, related.map((item, index) => /*#__PURE__*/React.createElement("li", {
|
|
1554
|
+
}, related.map((item, index) => ( /*#__PURE__*/React.createElement("li", {
|
|
1550
1555
|
key: item.id || index,
|
|
1551
1556
|
className: styles$i[item.layout]
|
|
1552
1557
|
}, /*#__PURE__*/React.createElement(reactRouterDom.Link, {
|
|
1553
1558
|
to: item.full_url || `/${item.url}`
|
|
1554
1559
|
}, /*#__PURE__*/React.createElement("span", {
|
|
1555
1560
|
className: styles$i.first
|
|
1556
|
-
}, item.title), item.second_title && ' ', item.second_title && /*#__PURE__*/React.createElement("span", null, item.second_title))))));
|
|
1561
|
+
}, item.title), item.second_title && ' ', item.second_title && /*#__PURE__*/React.createElement("span", null, item.second_title)))))));
|
|
1557
1562
|
};
|
|
1558
1563
|
|
|
1559
1564
|
var styles$h = {"root":"SourceBlock-module_root__9dnI4","text":"SourceBlock-module_text__M5-uy","origin":"SourceBlock-module_origin__fyvxH","center":"SourceBlock-module_center__UOMwy","mobile":"SourceBlock-module_mobile__QVEyg","desktop":"SourceBlock-module_desktop__xdXWm","isDark":"SourceBlock-module_isDark__etwk1"};
|
|
@@ -1582,12 +1587,12 @@ const SourceBlock = ({
|
|
|
1582
1587
|
href: url,
|
|
1583
1588
|
target: "_blank",
|
|
1584
1589
|
rel: "noopener noreferrer"
|
|
1585
|
-
}, quote.map((item, index) => /*#__PURE__*/React.createElement("p", {
|
|
1590
|
+
}, quote.map((item, index) => ( /*#__PURE__*/React.createElement("p", {
|
|
1586
1591
|
key: index,
|
|
1587
1592
|
dangerouslySetInnerHTML: {
|
|
1588
1593
|
__html: item.data
|
|
1589
1594
|
}
|
|
1590
|
-
})), /*#__PURE__*/React.createElement("footer", null, /*#__PURE__*/React.createElement("cite", {
|
|
1595
|
+
}))), /*#__PURE__*/React.createElement("footer", null, /*#__PURE__*/React.createElement("cite", {
|
|
1591
1596
|
className: styles$h.origin
|
|
1592
1597
|
}, origin))));
|
|
1593
1598
|
};
|
|
@@ -1647,13 +1652,13 @@ const SensitiveBlock = ({
|
|
|
1647
1652
|
}, /*#__PURE__*/React.createElement(EmbedBlockContainer, {
|
|
1648
1653
|
block: block.item,
|
|
1649
1654
|
styleContext: context
|
|
1650
|
-
}))), cc && /*#__PURE__*/React.createElement("figcaption", {
|
|
1655
|
+
}))), cc && ( /*#__PURE__*/React.createElement("figcaption", {
|
|
1651
1656
|
className: styles$g.figcaption
|
|
1652
1657
|
}, /*#__PURE__*/React.createElement(MediaCaption, {
|
|
1653
1658
|
credit: credit,
|
|
1654
1659
|
caption: caption,
|
|
1655
1660
|
styleContext: styleContext
|
|
1656
|
-
})));
|
|
1661
|
+
}))));
|
|
1657
1662
|
};
|
|
1658
1663
|
|
|
1659
1664
|
var styles$f = {"root":"GroupedBlock-module_root__MQQin","hasFigcaption":"GroupedBlock-module_hasFigcaption__Y05ed","item":"GroupedBlock-module_item__-InqF","items":"GroupedBlock-module_items__8X4js","figcaption":"GroupedBlock-module_figcaption__OE5-u","default":"GroupedBlock-module_default__Tha8f","full":"GroupedBlock-module_full__SNwyE","super_full":"GroupedBlock-module_super_full__HTA9D","mobile":"GroupedBlock-module_mobile__xqMw5","desktop":"GroupedBlock-module_desktop__Oobdp"};
|
|
@@ -1689,20 +1694,20 @@ const GroupedBlock = ({
|
|
|
1689
1694
|
style: {
|
|
1690
1695
|
width: `${percentWidth}%`
|
|
1691
1696
|
}
|
|
1692
|
-
}, item.type === 'sensitive' ? /*#__PURE__*/React.createElement(SensitiveBlock, {
|
|
1697
|
+
}, item.type === 'sensitive' ? ( /*#__PURE__*/React.createElement(SensitiveBlock, {
|
|
1693
1698
|
block: item,
|
|
1694
1699
|
styleContext: ['isInGroupedBlock']
|
|
1695
|
-
}) : /*#__PURE__*/React.createElement(EmbedBlockContainer, {
|
|
1700
|
+
})) : ( /*#__PURE__*/React.createElement(EmbedBlockContainer, {
|
|
1696
1701
|
block: item,
|
|
1697
1702
|
styleContext: ['isInGroupedBlock']
|
|
1698
|
-
}));
|
|
1699
|
-
})), block.cc && /*#__PURE__*/React.createElement("figcaption", {
|
|
1703
|
+
})));
|
|
1704
|
+
})), block.cc && ( /*#__PURE__*/React.createElement("figcaption", {
|
|
1700
1705
|
className: styles$f.figcaption
|
|
1701
1706
|
}, /*#__PURE__*/React.createElement(MediaCaption, {
|
|
1702
1707
|
credit: block.credit,
|
|
1703
1708
|
caption: block.caption,
|
|
1704
1709
|
styleContext: styleContext
|
|
1705
|
-
})));
|
|
1710
|
+
}))));
|
|
1706
1711
|
};
|
|
1707
1712
|
|
|
1708
1713
|
var styles$e = {"root":"MetaItem-module_root__sRbrZ","hasBullets":"MetaItem-module_hasBullets__b1eW9","hasSource":"MetaItem-module_hasSource__35olm","listened":"MetaItem-module_listened__XZWFQ","read":"MetaItem-module_read__O3cUz","datetime":"MetaItem-module_datetime__--O8c"};
|
|
@@ -1832,11 +1837,11 @@ const MetaContainer = ({
|
|
|
1832
1837
|
hasSource: hasSource,
|
|
1833
1838
|
bullets: true,
|
|
1834
1839
|
key: component.id
|
|
1835
|
-
}, /*#__PURE__*/React.createElement(React.Fragment, null, lang === 'ru' ? 'Источник: ' : 'Source: ', component.url && /*#__PURE__*/React.createElement("a", {
|
|
1840
|
+
}, /*#__PURE__*/React.createElement(React.Fragment, null, lang === 'ru' ? 'Источник: ' : 'Source: ', component.url && ( /*#__PURE__*/React.createElement("a", {
|
|
1836
1841
|
href: component.url,
|
|
1837
1842
|
rel: "noopener noreferrer",
|
|
1838
1843
|
target: "_blank"
|
|
1839
|
-
}, component.text), !component.url && component.text));
|
|
1844
|
+
}, component.text)), !component.url && component.text));
|
|
1840
1845
|
}
|
|
1841
1846
|
case 'duration':
|
|
1842
1847
|
{
|
|
@@ -1907,19 +1912,19 @@ const MetaContainer = ({
|
|
|
1907
1912
|
return null;
|
|
1908
1913
|
}
|
|
1909
1914
|
}
|
|
1910
|
-
}), (isRead || isListened) && /*#__PURE__*/React.createElement(MetaItem, {
|
|
1915
|
+
}), (isRead || isListened) && ( /*#__PURE__*/React.createElement(MetaItem, {
|
|
1911
1916
|
hasSource: hasSource,
|
|
1912
1917
|
bullets: true,
|
|
1913
1918
|
type: isListened ? 'listened' : 'read'
|
|
1914
1919
|
}, /*#__PURE__*/React.createElement(SvgSymbol, {
|
|
1915
1920
|
icon: isListened ? 'listened' : 'read',
|
|
1916
1921
|
size: "unset"
|
|
1917
|
-
})), isSlides && lang === 'ru' && /*#__PURE__*/React.createElement("div", {
|
|
1922
|
+
}))), isSlides && lang === 'ru' && ( /*#__PURE__*/React.createElement("div", {
|
|
1918
1923
|
className: styles$s.bookmark
|
|
1919
1924
|
}, /*#__PURE__*/React.createElement(BookmarkButton, {
|
|
1920
1925
|
isInBookmarks: isInBookmarks,
|
|
1921
1926
|
onClick: () => bookmarkAction('bookmark', 'top')
|
|
1922
|
-
})));
|
|
1927
|
+
}))));
|
|
1923
1928
|
};
|
|
1924
1929
|
|
|
1925
1930
|
var styles$b = {"root":"DonatesTeaser-module_root__XQCVy","main":"DonatesTeaser-module_main__eN9kd","title":"DonatesTeaser-module_title__9umo1","text":"DonatesTeaser-module_text__s6tyf","cta":"DonatesTeaser-module_cta__-50aB","center":"DonatesTeaser-module_center__gxLvW","isInCard":"DonatesTeaser-module_isInCard__vaUhd","isInSlide":"DonatesTeaser-module_isInSlide__Dh4NH","ru":"DonatesTeaser-module_ru__y-PlJ","en":"DonatesTeaser-module_en__0Iisr"};
|
|
@@ -2039,12 +2044,12 @@ const VersesBlock = ({
|
|
|
2039
2044
|
return /*#__PURE__*/React.createElement("ul", {
|
|
2040
2045
|
className: makeClassName(classNames),
|
|
2041
2046
|
"data-testid": "verses-block"
|
|
2042
|
-
}, data.map((item, index) => /*#__PURE__*/React.createElement("li", {
|
|
2047
|
+
}, data.map((item, index) => ( /*#__PURE__*/React.createElement("li", {
|
|
2043
2048
|
key: index,
|
|
2044
2049
|
dangerouslySetInnerHTML: {
|
|
2045
2050
|
__html: item
|
|
2046
2051
|
}
|
|
2047
|
-
})));
|
|
2052
|
+
}))));
|
|
2048
2053
|
};
|
|
2049
2054
|
|
|
2050
2055
|
const RenderBlocks = ({
|
|
@@ -2240,11 +2245,11 @@ const Cover = ({
|
|
|
2240
2245
|
classNames = makeStyleContext(classNames, theme, styles$8);
|
|
2241
2246
|
style.backgroundImage = generateGradient(gradients.bg_rgb, 'mediaBlockBottom');
|
|
2242
2247
|
}
|
|
2243
|
-
const renderCC = context => /*#__PURE__*/React.createElement(MediaCaption, {
|
|
2248
|
+
const renderCC = context => ( /*#__PURE__*/React.createElement(MediaCaption, {
|
|
2244
2249
|
credit: credit,
|
|
2245
2250
|
caption: caption,
|
|
2246
2251
|
styleContext: context || styleContext
|
|
2247
|
-
});
|
|
2252
|
+
}));
|
|
2248
2253
|
return /*#__PURE__*/React.createElement("div", {
|
|
2249
2254
|
"data-testid": "cover",
|
|
2250
2255
|
className: makeClassName(classNames)
|
|
@@ -2257,22 +2262,22 @@ const Cover = ({
|
|
|
2257
2262
|
})), /*#__PURE__*/React.createElement("div", {
|
|
2258
2263
|
className: styles$8.body,
|
|
2259
2264
|
style: style
|
|
2260
|
-
}, blocks.map(item => /*#__PURE__*/React.createElement(RenderBlocks, {
|
|
2265
|
+
}, blocks.map(item => ( /*#__PURE__*/React.createElement(RenderBlocks, {
|
|
2261
2266
|
key: item.id,
|
|
2262
2267
|
block: item,
|
|
2263
2268
|
styleContext: styleContext
|
|
2264
|
-
}))), cc === 'button' && /*#__PURE__*/React.createElement("button", {
|
|
2269
|
+
})))), cc === 'button' && ( /*#__PURE__*/React.createElement("button", {
|
|
2265
2270
|
className: styles$8.control,
|
|
2266
2271
|
type: "button",
|
|
2267
2272
|
"aria-label": "Open",
|
|
2268
2273
|
onClick: () => {
|
|
2269
2274
|
setIsPopoverShown(!isPopoverShown);
|
|
2270
2275
|
}
|
|
2271
|
-
}), cc === 'button' && isPopoverShown && /*#__PURE__*/React.createElement(Popover, {
|
|
2276
|
+
})), cc === 'button' && isPopoverShown && ( /*#__PURE__*/React.createElement(Popover, {
|
|
2272
2277
|
onClose: () => {
|
|
2273
2278
|
setIsPopoverShown(false);
|
|
2274
2279
|
}
|
|
2275
|
-
}, renderCC('isInPopover')));
|
|
2280
|
+
}, renderCC('isInPopover'))));
|
|
2276
2281
|
};
|
|
2277
2282
|
|
|
2278
2283
|
var styles$7 = {"root":"HalfBlock-module_root__EXQbz","main":"HalfBlock-module_main__eIcRo","body":"HalfBlock-module_body__HPhGj","footer":"HalfBlock-module_footer__TFfCQ","image":"HalfBlock-module_image__XWLbK","mobile":"HalfBlock-module_mobile__uGGpm","desktop":"HalfBlock-module_desktop__p-hAq"};
|
|
@@ -2309,11 +2314,11 @@ const HalfBlock = ({
|
|
|
2309
2314
|
display: "super_full"
|
|
2310
2315
|
})), /*#__PURE__*/React.createElement("div", {
|
|
2311
2316
|
className: styles$7.body
|
|
2312
|
-
}, data.blocks.map(item => /*#__PURE__*/React.createElement(RenderBlocks, {
|
|
2317
|
+
}, data.blocks.map(item => ( /*#__PURE__*/React.createElement(RenderBlocks, {
|
|
2313
2318
|
key: item.id,
|
|
2314
2319
|
block: item,
|
|
2315
2320
|
styleContext: ['rich']
|
|
2316
|
-
})))), /*#__PURE__*/React.createElement("div", {
|
|
2321
|
+
}))))), /*#__PURE__*/React.createElement("div", {
|
|
2317
2322
|
className: styles$7.footer
|
|
2318
2323
|
}, /*#__PURE__*/React.createElement(MediaCaption, {
|
|
2319
2324
|
credit: credit,
|
|
@@ -2338,11 +2343,11 @@ const ImportantLead = ({
|
|
|
2338
2343
|
return /*#__PURE__*/React.createElement("div", {
|
|
2339
2344
|
"data-testid": "important-lead",
|
|
2340
2345
|
className: makeClassName(classNames)
|
|
2341
|
-
}, data.map(item => /*#__PURE__*/React.createElement(RenderBlocks, {
|
|
2346
|
+
}, data.map(item => ( /*#__PURE__*/React.createElement(RenderBlocks, {
|
|
2342
2347
|
key: item.id,
|
|
2343
2348
|
block: item,
|
|
2344
2349
|
styleContext: "isInImportantLead"
|
|
2345
|
-
})));
|
|
2350
|
+
}))));
|
|
2346
2351
|
};
|
|
2347
2352
|
|
|
2348
2353
|
var styles$5 = {"root":"Spoiler-module_root__fAbb9","header":"Spoiler-module_header__iEKsQ","body":"Spoiler-module_body__jjqIn","spoiled":"Spoiler-module_spoiled__ENI93","footer":"Spoiler-module_footer__g21Zn","spoilerSticky":"Spoiler-module_spoilerSticky__YTiyF","spoilerStickyBg":"Spoiler-module_spoilerStickyBg__tmDnG","center":"Spoiler-module_center__0XCWo","full":"Spoiler-module_full__FtKDT","default":"Spoiler-module_default__wvlKw","mobile":"Spoiler-module_mobile__PWCMW","desktop":"Spoiler-module_desktop__qTakd"};
|
|
@@ -2390,11 +2395,11 @@ const Spoiler = ({
|
|
|
2390
2395
|
className: styles$5.header
|
|
2391
2396
|
}, title && /*#__PURE__*/React.createElement("h3", null, title)), /*#__PURE__*/React.createElement("div", {
|
|
2392
2397
|
className: styles$5.body
|
|
2393
|
-
}, blocks.map(item => /*#__PURE__*/React.createElement(RenderBlocks, {
|
|
2398
|
+
}, blocks.map(item => ( /*#__PURE__*/React.createElement(RenderBlocks, {
|
|
2394
2399
|
key: item.id,
|
|
2395
2400
|
block: item,
|
|
2396
2401
|
styleContext: context
|
|
2397
|
-
}))), /*#__PURE__*/React.createElement("div", {
|
|
2402
|
+
})))), /*#__PURE__*/React.createElement("div", {
|
|
2398
2403
|
className: styles$5.footer
|
|
2399
2404
|
}, /*#__PURE__*/React.createElement(Button, {
|
|
2400
2405
|
size: "default",
|
|
@@ -2463,13 +2468,13 @@ const RelatedRichBlock = ({
|
|
|
2463
2468
|
to: `/${url}`,
|
|
2464
2469
|
onClick: () => handleClick(),
|
|
2465
2470
|
ref: ref
|
|
2466
|
-
}, layout === 'rich' && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
2471
|
+
}, layout === 'rich' && ( /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
2467
2472
|
className: styles$4.overlay,
|
|
2468
2473
|
style: style
|
|
2469
2474
|
}), /*#__PURE__*/React.createElement("div", {
|
|
2470
2475
|
className: styles$4.overlayHeader,
|
|
2471
2476
|
style: styleHeader
|
|
2472
|
-
})), /*#__PURE__*/React.createElement("div", {
|
|
2477
|
+
}))), /*#__PURE__*/React.createElement("div", {
|
|
2473
2478
|
className: styles$4.tag
|
|
2474
2479
|
}, /*#__PURE__*/React.createElement(Tag, {
|
|
2475
2480
|
size: "small",
|
|
@@ -2485,11 +2490,11 @@ const RelatedRichBlock = ({
|
|
|
2485
2490
|
display: "narrow"
|
|
2486
2491
|
}))), /*#__PURE__*/React.createElement("div", {
|
|
2487
2492
|
className: styles$4.body
|
|
2488
|
-
}, blocks.map(item => /*#__PURE__*/React.createElement(RenderBlocks, {
|
|
2493
|
+
}, blocks.map(item => ( /*#__PURE__*/React.createElement(RenderBlocks, {
|
|
2489
2494
|
key: item.id,
|
|
2490
2495
|
block: item,
|
|
2491
2496
|
styleContext: context
|
|
2492
|
-
}))));
|
|
2497
|
+
})))));
|
|
2493
2498
|
};
|
|
2494
2499
|
|
|
2495
2500
|
var styles$3 = {"root":"ShopRelatedBlock-module_root__eTGjC","wrapper":"ShopRelatedBlock-module_wrapper__v6yE3","overlay":"ShopRelatedBlock-module_overlay__oR67Y","overlayHeader":"ShopRelatedBlock-module_overlayHeader__YMcNw","body":"ShopRelatedBlock-module_body__W4pBN","hasGradient":"ShopRelatedBlock-module_hasGradient__50JTl","picture":"ShopRelatedBlock-module_picture__zjFL4","tag":"ShopRelatedBlock-module_tag__ixkda","center":"ShopRelatedBlock-module_center__IpBP4","title":"ShopRelatedBlock-module_title__COl93","price":"ShopRelatedBlock-module_price__5Qitu","dark":"ShopRelatedBlock-module_dark__d0QiW","light":"ShopRelatedBlock-module_light__lUDWA","mobile":"ShopRelatedBlock-module_mobile__I6Hih","desktop":"ShopRelatedBlock-module_desktop__ywKrb"};
|
|
@@ -2548,13 +2553,13 @@ const ShopRelatedBlock = ({
|
|
|
2548
2553
|
target: "_blank",
|
|
2549
2554
|
onClick: () => handleClick(),
|
|
2550
2555
|
ref: ref
|
|
2551
|
-
}, layout === 'rich' && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
2556
|
+
}, layout === 'rich' && ( /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
2552
2557
|
className: styles$3.overlay,
|
|
2553
2558
|
style: style
|
|
2554
2559
|
}), /*#__PURE__*/React.createElement("div", {
|
|
2555
2560
|
className: styles$3.overlayHeader,
|
|
2556
2561
|
style: styleHeader
|
|
2557
|
-
})), /*#__PURE__*/React.createElement("div", {
|
|
2562
|
+
}))), /*#__PURE__*/React.createElement("div", {
|
|
2558
2563
|
className: styles$3.tag
|
|
2559
2564
|
}, /*#__PURE__*/React.createElement(Tag, {
|
|
2560
2565
|
size: "small",
|
|
@@ -2613,11 +2618,11 @@ const RelatedBook = ({
|
|
|
2613
2618
|
className: styles$2.contentWrap
|
|
2614
2619
|
}, /*#__PURE__*/React.createElement("div", {
|
|
2615
2620
|
className: styles$2.content
|
|
2616
|
-
}, block.data.blocks.map(item => /*#__PURE__*/React.createElement(RenderBlocks, {
|
|
2621
|
+
}, block.data.blocks.map(item => ( /*#__PURE__*/React.createElement(RenderBlocks, {
|
|
2617
2622
|
key: item.id,
|
|
2618
2623
|
block: item,
|
|
2619
2624
|
styleContext: ['isInMediaBlock', 'isInBookRelated', 'isCustom']
|
|
2620
|
-
}))))));
|
|
2625
|
+
})))))));
|
|
2621
2626
|
};
|
|
2622
2627
|
|
|
2623
2628
|
const RawHtmlBlock = ({
|
|
@@ -2720,13 +2725,13 @@ const ToolbarButton = ({
|
|
|
2720
2725
|
className: makeClassName(classNames),
|
|
2721
2726
|
type: "button",
|
|
2722
2727
|
onClick: event => onClick(event, type)
|
|
2723
|
-
}, icon && /*#__PURE__*/React.createElement("div", {
|
|
2728
|
+
}, icon && ( /*#__PURE__*/React.createElement("div", {
|
|
2724
2729
|
className: styles$1.icon
|
|
2725
2730
|
}, /*#__PURE__*/React.createElement(SvgSymbol, {
|
|
2726
2731
|
size: "medium",
|
|
2727
2732
|
icon: icon,
|
|
2728
2733
|
styleContext: "isInToolbar"
|
|
2729
|
-
})), /*#__PURE__*/React.createElement("span", {
|
|
2734
|
+
}))), /*#__PURE__*/React.createElement("span", {
|
|
2730
2735
|
className: styles$1.text
|
|
2731
2736
|
}, text || label));
|
|
2732
2737
|
};
|