@meduza/ui-kit-2 0.2.36 → 0.3.0
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/Button/Button.d.ts +3 -0
- package/dist/Button/Button.types.d.ts +2 -0
- package/dist/Button/ButtonLoader.d.ts +2 -0
- package/dist/Button/index.d.ts +2 -3
- package/dist/SvgSymbol/SvgSymbol.types.d.ts +1 -1
- package/dist/SvgSymbol/icons.d.ts +5 -0
- package/dist/Toolbar/Toolbar.d.ts +3 -0
- package/dist/Toolbar/Toolbar.types.d.ts +3 -0
- package/dist/Toolbar/ToolbarItem.d.ts +3 -0
- package/dist/Toolbar/index.d.ts +2 -3
- package/dist/ToolbarButton/ToolbarButton.types.d.ts +4 -5
- package/dist/Tooltip/Tooltip.d.ts +3 -0
- package/dist/Tooltip/Tooltip.stories.d.ts +10 -0
- package/dist/Tooltip/Tooltip.types.d.ts +8 -0
- package/dist/Tooltip/TooltipFooter.d.ts +3 -0
- package/dist/Tooltip/index.d.ts +2 -0
- package/dist/constants.d.ts +2 -4
- package/dist/index.d.ts +1 -0
- package/dist/ui-kit-2.cjs.development.js +204 -167
- 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 +201 -168
- package/dist/ui-kit-2.esm.js.map +1 -1
- package/dist/ui-kit.css +3331 -3246
- package/dist/utils/capitalizeFirstLetter.d.ts +1 -0
- package/package.json +1 -1
- package/src/BookmarkButton/BookmarkButton.css +0 -4
- package/src/BookmarkButton/BookmarkButton.module.css +0 -4
- package/src/Button/Button.module.css +13 -0
- package/src/Button/Button.stories.tsx +15 -1
- package/src/Button/Button.tsx +50 -0
- package/src/Button/Button.types.ts +3 -0
- package/src/Button/{loader.tsx → ButtonLoader.tsx} +1 -3
- package/src/Button/index.tsx +2 -48
- package/src/EmbedBlock/EmbedBlock.test.tsx +2 -6
- package/src/SvgSymbol/SvgSymbol.module.css +4 -0
- package/src/SvgSymbol/SvgSymbol.stories.tsx +1 -1
- package/src/SvgSymbol/SvgSymbol.types.ts +1 -0
- package/src/SvgSymbol/icons.ts +6 -0
- package/src/Toolbar/Toolbar.module.css +0 -5
- package/src/Toolbar/Toolbar.stories.tsx +18 -25
- package/src/Toolbar/Toolbar.tsx +20 -0
- package/src/Toolbar/Toolbar.types.ts +4 -0
- package/src/Toolbar/ToolbarItem.tsx +8 -0
- package/src/Toolbar/index.tsx +2 -20
- package/src/ToolbarButton/ToolbarButton.module.css +0 -14
- package/src/ToolbarButton/ToolbarButton.types.ts +4 -5
- package/src/ToolbarButton/index.tsx +14 -23
- package/src/Tooltip/Tooltip.module.css +91 -0
- package/src/Tooltip/Tooltip.stories.module.css +7 -0
- package/src/Tooltip/Tooltip.stories.tsx +69 -0
- package/src/Tooltip/Tooltip.test.tsx +16 -0
- package/src/Tooltip/Tooltip.tsx +24 -0
- package/src/Tooltip/Tooltip.types.ts +8 -0
- package/src/Tooltip/TooltipFooter.tsx +7 -0
- package/src/Tooltip/index.tsx +2 -0
- package/src/constants.ts +3 -5
- package/src/index.tsx +1 -0
- package/src/utils/capitalizeFirstLetter.ts +2 -0
- package/dist/Button/loader.d.ts +0 -3
package/dist/ui-kit-2.esm.js
CHANGED
|
@@ -15,7 +15,7 @@ var makeClassName = function makeClassName(list) {
|
|
|
15
15
|
}).join(' ');
|
|
16
16
|
};
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var ButtonLoader = function ButtonLoader() {
|
|
19
19
|
return React.createElement("svg", {
|
|
20
20
|
width: "30px",
|
|
21
21
|
height: "30px",
|
|
@@ -38,7 +38,7 @@ var Loader = function Loader() {
|
|
|
38
38
|
})));
|
|
39
39
|
};
|
|
40
40
|
|
|
41
|
-
var styles = {"root":"Button-module_root__RpsiW","gold":"Button-module_gold__ZMYg-","isLoading":"Button-module_isLoading__1g6QO","gray":"Button-module_gray__3IM54","sand":"Button-module_sand__2AqVq","dark":"Button-module_dark__I0uXx","light":"Button-module_light__1Y4hG","black":"Button-module_black__3sG3Y","red":"Button-module_red__3Niou","default":"Button-module_default__28Vo_","isInSpoiler":"Button-module_isInSpoiler__2Yl8c","ghost":"Button-module_ghost__3awCW","isInDropdown":"Button-module_isInDropdown__1ogKL","loader":"Button-module_loader__2pl6d"};
|
|
41
|
+
var styles = {"root":"Button-module_root__RpsiW","gold":"Button-module_gold__ZMYg-","isLoading":"Button-module_isLoading__1g6QO","gray":"Button-module_gray__3IM54","sand":"Button-module_sand__2AqVq","dark":"Button-module_dark__I0uXx","light":"Button-module_light__1Y4hG","black":"Button-module_black__3sG3Y","red":"Button-module_red__3Niou","default":"Button-module_default__28Vo_","isInSpoiler":"Button-module_isInSpoiler__2Yl8c","ghost":"Button-module_ghost__3awCW","isInDropdown":"Button-module_isInDropdown__1ogKL","loader":"Button-module_loader__2pl6d","isFancy":"Button-module_isFancy__3FPVR"};
|
|
42
42
|
|
|
43
43
|
var Button = function Button(_ref) {
|
|
44
44
|
var _ref$theme = _ref.theme,
|
|
@@ -49,6 +49,7 @@ var Button = function Button(_ref) {
|
|
|
49
49
|
state = _ref$state === void 0 ? 'isDefault' : _ref$state,
|
|
50
50
|
_ref$styleContext = _ref.styleContext,
|
|
51
51
|
styleContext = _ref$styleContext === void 0 ? 'isInToolbar' : _ref$styleContext,
|
|
52
|
+
appearance = _ref.appearance,
|
|
52
53
|
_ref$disabled = _ref.disabled,
|
|
53
54
|
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
54
55
|
onClick = _ref.onClick,
|
|
@@ -64,13 +65,13 @@ var Button = function Button(_ref) {
|
|
|
64
65
|
|
|
65
66
|
return React.createElement("button", {
|
|
66
67
|
"data-testid": "button",
|
|
67
|
-
className: makeClassName([[styles.root, true], [styles[size], !!size], [styles[theme], !!theme], [styles[state], !!state && !!styles[state]], [styles[styleContext], !!styleContext]]),
|
|
68
|
+
className: makeClassName([[styles.root, true], [styles[size], !!size], [styles[theme], !!theme], [styles[appearance], !!appearance], [styles[state], !!state && !!styles[state]], [styles[styleContext], !!styleContext]]),
|
|
68
69
|
disabled: disabled,
|
|
69
70
|
onClick: handleClick,
|
|
70
71
|
type: "button"
|
|
71
72
|
}, state === 'isLoading' ? React.createElement("span", {
|
|
72
73
|
className: styles.loader
|
|
73
|
-
}, React.createElement(
|
|
74
|
+
}, React.createElement(ButtonLoader, null)) : children);
|
|
74
75
|
};
|
|
75
76
|
|
|
76
77
|
var icons = {
|
|
@@ -233,10 +234,15 @@ var icons = {
|
|
|
233
234
|
width: 15,
|
|
234
235
|
height: 15,
|
|
235
236
|
content: '<g fill-rule="nonzero"><path d="M4.978 4.354a.5.5 0 01-.332.624c-1.197.367-2.064 1.527-2.14 2.897l-.005.167a.749.749 0 01.999.708v3a.75.75 0 01-1.458.248L2 12a1 1 0 01-1-1v-1a1 1 0 01.5-.866V8.072c0-1.886 1.172-3.535 2.854-4.05a.5.5 0 01.624.332zM10 7a.5.5 0 01.492.41l.008.09.001 1.634a1 1 0 01.492.745L11 10v1a1 1 0 01-.883.993L10 12l-.042-.002a.75.75 0 01-1.451-.146L8.5 11.75v-3a.75.75 0 011.001-.707L9.5 7.5l.008-.09A.5.5 0 0110 7z" fill="currentColor" /><path d="M11.585 1.194a.513.513 0 01.855.56l-.051.077-3.163 3.975a.514.514 0 01-.73.075l-.068-.069-1.812-2.208a.512.512 0 01.729-.716l.065.066 1.409 1.718 2.766-3.478z" fill="#6EAC65" /></g>'
|
|
237
|
+
},
|
|
238
|
+
magic: {
|
|
239
|
+
width: 15,
|
|
240
|
+
height: 15,
|
|
241
|
+
content: '<g fill-rule="evenodd" clip-rule="evenodd"> <path d="M7.804.4a.6.6 0 0 1 .6.6v2.035a.6.6 0 0 1-1.2 0V1a.6.6 0 0 1 .6-.6ZM7.804 10.577a.6.6 0 0 1 .6.6v2.035a.6.6 0 1 1-1.2 0v-2.035a.6.6 0 0 1 .6-.6ZM14.636 7.106a.6.6 0 0 1-.6.6h-2.078a.6.6 0 1 1 0-1.2h2.078a.6.6 0 0 1 .6.6ZM4.25 7.106a.6.6 0 0 1-.6.6H1.573a.6.6 0 0 1 0-1.2H3.65a.6.6 0 0 1 .6.6ZM12.639 2.37a.585.585 0 0 1 0 .84l-1.442 1.412a.615.615 0 0 1-.857 0 .585.585 0 0 1 0-.84l1.442-1.412a.615.615 0 0 1 .857 0ZM12.639 11.843a.615.615 0 0 1-.857 0L10.34 10.43a.585.585 0 0 1 0-.84.615.615 0 0 1 .857 0l1.442 1.413a.585.585 0 0 1 0 .84ZM5.269 4.621a.615.615 0 0 1-.858 0L2.97 3.208a.585.585 0 0 1 0-.84.615.615 0 0 1 .858 0l1.442 1.413a.585.585 0 0 1 0 .84ZM8.926 6.074a.6.6 0 0 1 0 .849l-.863.863-.849-.849.863-.863a.6.6 0 0 1 .849 0ZM7.348 8.5l-5.924 5.924a.6.6 0 1 1-.848-.848L6.5 7.652l.848.848Z"/> </g>'
|
|
236
242
|
}
|
|
237
243
|
};
|
|
238
244
|
|
|
239
|
-
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","shareBookmark":"SvgSymbol-module_shareBookmark__QEJOS","receipt":"SvgSymbol-module_receipt__3Eqow","isInHeader":"SvgSymbol-module_isInHeader__1QHjL"};
|
|
245
|
+
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","magic":"SvgSymbol-module_magic__TYq9U","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","shareBookmark":"SvgSymbol-module_shareBookmark__QEJOS","receipt":"SvgSymbol-module_receipt__3Eqow","isInHeader":"SvgSymbol-module_isInHeader__1QHjL"};
|
|
240
246
|
|
|
241
247
|
var SvgSymbol = function SvgSymbol(_ref) {
|
|
242
248
|
var icon = _ref.icon,
|
|
@@ -375,21 +381,19 @@ var imageConditionalKeys = {
|
|
|
375
381
|
var SocialLabels = {
|
|
376
382
|
ru: {
|
|
377
383
|
tg: 'Телеграм',
|
|
378
|
-
fb: '
|
|
379
|
-
vk: 'Вк',
|
|
380
|
-
ok: 'Ок',
|
|
384
|
+
fb: 'Фейсбук',
|
|
381
385
|
tw: 'Твиттер',
|
|
382
386
|
pdf: 'PDF',
|
|
387
|
+
unblock: 'Magic link',
|
|
383
388
|
bookmark: 'В закладки',
|
|
384
389
|
reaction: 'Напишите нам'
|
|
385
390
|
},
|
|
386
391
|
en: {
|
|
387
392
|
tg: 'Telegram',
|
|
388
393
|
fb: 'Fb',
|
|
389
|
-
vk: 'Vk',
|
|
390
|
-
ok: 'Ok',
|
|
391
394
|
tw: 'Twitter',
|
|
392
395
|
pdf: 'PDF',
|
|
396
|
+
unblock: 'Magic link',
|
|
393
397
|
bookmark: 'Add to bookmarks'
|
|
394
398
|
}
|
|
395
399
|
};
|
|
@@ -1026,26 +1030,33 @@ var Dropdown = function Dropdown(_ref2) {
|
|
|
1026
1030
|
}, children);
|
|
1027
1031
|
};
|
|
1028
1032
|
|
|
1029
|
-
var
|
|
1033
|
+
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","slide":"Toolbar-module_slide__2HmGc","card":"Toolbar-module_card__1VbvB","isDark":"Toolbar-module_isDark__k1U0i","dark":"Toolbar-module_dark__2Ejc9"};
|
|
1034
|
+
|
|
1035
|
+
var ToolbarItem = function ToolbarItem(_ref) {
|
|
1036
|
+
var children = _ref.children;
|
|
1037
|
+
return React.createElement("li", {
|
|
1038
|
+
className: styles$f.item
|
|
1039
|
+
}, children);
|
|
1040
|
+
};
|
|
1030
1041
|
|
|
1031
1042
|
var Toolbar = function Toolbar(_ref) {
|
|
1032
1043
|
var children = _ref.children,
|
|
1033
1044
|
styleContext = _ref.styleContext;
|
|
1034
|
-
var classNames = [[
|
|
1045
|
+
var classNames = [[styles$f.root, true]];
|
|
1035
1046
|
|
|
1036
1047
|
if (styleContext) {
|
|
1037
|
-
classNames = makeStyleContext(classNames, styleContext,
|
|
1048
|
+
classNames = makeStyleContext(classNames, styleContext, styles$f);
|
|
1038
1049
|
}
|
|
1039
1050
|
|
|
1040
1051
|
return React.createElement("div", {
|
|
1041
1052
|
"data-testid": "toolbar",
|
|
1042
1053
|
className: makeClassName(classNames)
|
|
1043
1054
|
}, React.createElement("ul", {
|
|
1044
|
-
className:
|
|
1055
|
+
className: styles$f.list
|
|
1045
1056
|
}, children));
|
|
1046
1057
|
};
|
|
1047
1058
|
|
|
1048
|
-
var styles$
|
|
1059
|
+
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","isInMediaBlock":"Meta-module_isInMediaBlock__3xfPF","center":"Meta-module_center__3BBPr","half":"Meta-module_half__1xRkT","podcastMaterial":"Meta-module_podcastMaterial__2fHAt","light":"Meta-module_light__2baE-","dark":"Meta-module_dark__24y9m","isDark":"Meta-module_isDark__3g22f","hasSource":"Meta-module_hasSource__2lXiN","bookmark":"Meta-module_bookmark__3ot3k","mobile":"Meta-module_mobile__22LGV","desktop":"Meta-module_desktop__1ZGUS"};
|
|
1049
1060
|
|
|
1050
1061
|
var Meta = function Meta(_ref) {
|
|
1051
1062
|
var hasSource = _ref.hasSource,
|
|
@@ -1053,10 +1064,10 @@ var Meta = function Meta(_ref) {
|
|
|
1053
1064
|
children = _ref.children,
|
|
1054
1065
|
onlyOn = _ref.onlyOn,
|
|
1055
1066
|
styleContext = _ref.styleContext;
|
|
1056
|
-
var classNames = [[styles$
|
|
1067
|
+
var classNames = [[styles$g.root, true], [styles$g[theme], !!theme && !!styles$g[theme]], [styles$g[onlyOn], !!onlyOn], [styles$g.hasSource, hasSource]];
|
|
1057
1068
|
|
|
1058
1069
|
if (styleContext) {
|
|
1059
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
1070
|
+
classNames = makeStyleContext(classNames, styleContext, styles$g);
|
|
1060
1071
|
}
|
|
1061
1072
|
|
|
1062
1073
|
return React.createElement("div", {
|
|
@@ -1065,7 +1076,7 @@ var Meta = function Meta(_ref) {
|
|
|
1065
1076
|
}, children);
|
|
1066
1077
|
};
|
|
1067
1078
|
|
|
1068
|
-
var styles$
|
|
1079
|
+
var styles$h = {"root":"Timestamp-module_root__coOvT"};
|
|
1069
1080
|
|
|
1070
1081
|
var Timestamp = function Timestamp(_ref) {
|
|
1071
1082
|
var publishedAt = _ref.publishedAt,
|
|
@@ -1091,7 +1102,7 @@ var Timestamp = function Timestamp(_ref) {
|
|
|
1091
1102
|
return React.createElement("time", {
|
|
1092
1103
|
suppressHydrationWarning: true,
|
|
1093
1104
|
"data-testid": "timestamp",
|
|
1094
|
-
className: styles$
|
|
1105
|
+
className: styles$h.root
|
|
1095
1106
|
}, published);
|
|
1096
1107
|
};
|
|
1097
1108
|
|
|
@@ -1158,7 +1169,7 @@ var DangerousHTML = function DangerousHTML(_ref) {
|
|
|
1158
1169
|
}));
|
|
1159
1170
|
};
|
|
1160
1171
|
|
|
1161
|
-
var styles$
|
|
1172
|
+
var styles$i = {"root":"EmbedBlock-module_root__28k9U","object":"EmbedBlock-module_object__2_UZ7","objectWrap":"EmbedBlock-module_objectWrap__1aDVd","gameEmbed":"EmbedBlock-module_gameEmbed__AZQSo","proportional":"EmbedBlock-module_proportional__3lAv4","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-","control":"EmbedBlock-module_control__xr8dZ","raw_html":"EmbedBlock-module_raw_html__MQoAA","mobileFullwidth":"EmbedBlock-module_mobileFullwidth__QFFLH","isInCard":"EmbedBlock-module_isInCard__37rtq","isInSlide":"EmbedBlock-module_isInSlide__2ea5q","cc":"EmbedBlock-module_cc__1BQ5g","isInSensitiveBlock":"EmbedBlock-module_isInSensitiveBlock__3wWYF","isInAnswer":"EmbedBlock-module_isInAnswer__tLlgs","picture":"EmbedBlock-module_picture__186q0","wrapper":"EmbedBlock-module_wrapper__33XvX","mobile":"EmbedBlock-module_mobile__1P-eo","desktop":"EmbedBlock-module_desktop__SF5a_"};
|
|
1162
1173
|
|
|
1163
1174
|
var EmbedGif = function EmbedGif(_ref) {
|
|
1164
1175
|
var gif = _ref.gif,
|
|
@@ -1204,9 +1215,9 @@ var EmbedGif = function EmbedGif(_ref) {
|
|
|
1204
1215
|
};
|
|
1205
1216
|
}, []);
|
|
1206
1217
|
return React.createElement("div", {
|
|
1207
|
-
className: styles$
|
|
1218
|
+
className: styles$i.figure
|
|
1208
1219
|
}, React.createElement("div", {
|
|
1209
|
-
className: styles$
|
|
1220
|
+
className: styles$i.objectWrap,
|
|
1210
1221
|
style: style,
|
|
1211
1222
|
"data-frozen": videoFrozen
|
|
1212
1223
|
}, React.createElement("video", {
|
|
@@ -1272,7 +1283,7 @@ var EmbedBlock = function EmbedBlock(_ref) {
|
|
|
1272
1283
|
case 'image':
|
|
1273
1284
|
{
|
|
1274
1285
|
return React.createElement("div", {
|
|
1275
|
-
className: styles$
|
|
1286
|
+
className: styles$i.figure
|
|
1276
1287
|
}, React.createElement(Image, {
|
|
1277
1288
|
source: !optimized && [small, large],
|
|
1278
1289
|
optimized: block.data.optimized,
|
|
@@ -1288,7 +1299,7 @@ var EmbedBlock = function EmbedBlock(_ref) {
|
|
|
1288
1299
|
case 'game_embed':
|
|
1289
1300
|
{
|
|
1290
1301
|
return React.createElement("div", {
|
|
1291
|
-
className: styles$
|
|
1302
|
+
className: styles$i.gameEmbed
|
|
1292
1303
|
}, React.createElement("iframe", {
|
|
1293
1304
|
src: block.data.game_src,
|
|
1294
1305
|
id: block.data.game_id,
|
|
@@ -1299,7 +1310,7 @@ var EmbedBlock = function EmbedBlock(_ref) {
|
|
|
1299
1310
|
case 'dots_on_image':
|
|
1300
1311
|
{
|
|
1301
1312
|
return React.createElement("div", {
|
|
1302
|
-
className: styles$
|
|
1313
|
+
className: styles$i.figure
|
|
1303
1314
|
}, React.createElement(DotsOnImage, {
|
|
1304
1315
|
block: data
|
|
1305
1316
|
}));
|
|
@@ -1308,12 +1319,12 @@ var EmbedBlock = function EmbedBlock(_ref) {
|
|
|
1308
1319
|
default:
|
|
1309
1320
|
{
|
|
1310
1321
|
return React.createElement("div", {
|
|
1311
|
-
className: styles$
|
|
1322
|
+
className: styles$i.object
|
|
1312
1323
|
}, React.createElement("div", {
|
|
1313
|
-
className: styles$
|
|
1324
|
+
className: styles$i.wrapper,
|
|
1314
1325
|
style: style
|
|
1315
1326
|
}, React.createElement(DangerousHTML, {
|
|
1316
|
-
className: styles$
|
|
1327
|
+
className: styles$i.objectWrap,
|
|
1317
1328
|
html: html
|
|
1318
1329
|
})));
|
|
1319
1330
|
}
|
|
@@ -1325,31 +1336,31 @@ var EmbedBlock = function EmbedBlock(_ref) {
|
|
|
1325
1336
|
style.height = 0;
|
|
1326
1337
|
}
|
|
1327
1338
|
|
|
1328
|
-
var classNames = [[styles$
|
|
1339
|
+
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,
|
|
1329
1340
|
// чтобы не применились лишние модификаторы
|
|
1330
1341
|
// TODO: в w6 модификаторы должны передаваться явно
|
|
1331
1342
|
|
|
1332
1343
|
if (styleContext && Array.isArray(styleContext)) {
|
|
1333
1344
|
var filteredContext = styleContext.filter(function (key) {
|
|
1334
|
-
return key.startsWith('isIn') && styles$
|
|
1345
|
+
return key.startsWith('isIn') && styles$i[key];
|
|
1335
1346
|
}).reduce(function (acc, key) {
|
|
1336
1347
|
acc.push(key);
|
|
1337
1348
|
return acc;
|
|
1338
1349
|
}, []);
|
|
1339
|
-
classNames = makeStyleContext(classNames, filteredContext, styles$
|
|
1350
|
+
classNames = makeStyleContext(classNames, filteredContext, styles$i);
|
|
1340
1351
|
}
|
|
1341
1352
|
|
|
1342
1353
|
return React.createElement("figure", {
|
|
1343
1354
|
className: makeClassName(classNames)
|
|
1344
1355
|
}, children && React.createElement("div", {
|
|
1345
|
-
className: styles$
|
|
1356
|
+
className: styles$i.object
|
|
1346
1357
|
}, React.createElement("div", {
|
|
1347
|
-
className: styles$
|
|
1358
|
+
className: styles$i.wrapper,
|
|
1348
1359
|
style: style
|
|
1349
1360
|
}, React.createElement("div", {
|
|
1350
|
-
className: styles$
|
|
1361
|
+
className: styles$i.objectWrap
|
|
1351
1362
|
}, children))), !children && renderEmbed(style), cc === 'default' && React.createElement("figcaption", null, renderCC()), cc === 'button' && React.createElement("button", {
|
|
1352
|
-
className: styles$
|
|
1363
|
+
className: styles$i.control,
|
|
1353
1364
|
type: "button",
|
|
1354
1365
|
"aria-label": "Open",
|
|
1355
1366
|
onClick: function onClick() {
|
|
@@ -1425,15 +1436,15 @@ var EmbedBlockContainer = function EmbedBlockContainer(_ref) {
|
|
|
1425
1436
|
});
|
|
1426
1437
|
};
|
|
1427
1438
|
|
|
1428
|
-
var styles$
|
|
1439
|
+
var styles$j = {"root":"QuoteBlock-module_root__2GrcC","center":"QuoteBlock-module_center__cTFNy"};
|
|
1429
1440
|
|
|
1430
1441
|
var QuoteBlock = function QuoteBlock(_ref) {
|
|
1431
1442
|
var data = _ref.block.data,
|
|
1432
1443
|
styleContext = _ref.styleContext;
|
|
1433
|
-
var classNames = [[styles$
|
|
1444
|
+
var classNames = [[styles$j.root, true]];
|
|
1434
1445
|
|
|
1435
1446
|
if (styleContext) {
|
|
1436
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
1447
|
+
classNames = makeStyleContext(classNames, styleContext, styles$j);
|
|
1437
1448
|
}
|
|
1438
1449
|
|
|
1439
1450
|
return React.createElement("div", {
|
|
@@ -1446,7 +1457,7 @@ var QuoteBlock = function QuoteBlock(_ref) {
|
|
|
1446
1457
|
}));
|
|
1447
1458
|
};
|
|
1448
1459
|
|
|
1449
|
-
var styles$
|
|
1460
|
+
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"};
|
|
1450
1461
|
|
|
1451
1462
|
var CardTitle = function CardTitle(_ref) {
|
|
1452
1463
|
var _ref$block$data = _ref.block.data,
|
|
@@ -1456,15 +1467,15 @@ var CardTitle = function CardTitle(_ref) {
|
|
|
1456
1467
|
styleContext = _ref.styleContext;
|
|
1457
1468
|
return React.createElement("div", {
|
|
1458
1469
|
"data-testid": "card-title",
|
|
1459
|
-
className: makeClassName([[styles$
|
|
1470
|
+
className: makeClassName([[styles$k.root, true], [styles$k[onlyOn], !!onlyOn], [styles$k[styleContext], !!styleContext && !!styles$k[styleContext]]])
|
|
1460
1471
|
}, React.createElement("div", {
|
|
1461
|
-
className: styles$
|
|
1472
|
+
className: styles$k.index
|
|
1462
1473
|
}, index), React.createElement("h3", {
|
|
1463
|
-
className: styles$
|
|
1474
|
+
className: styles$k.title
|
|
1464
1475
|
}, text));
|
|
1465
1476
|
};
|
|
1466
1477
|
|
|
1467
|
-
var styles$
|
|
1478
|
+
var styles$l = {"root":"ChapterBlock-module_root__1WyVn","subtitle":"ChapterBlock-module_subtitle__3TXll","mobile":"ChapterBlock-module_mobile__CiO0w","desktop":"ChapterBlock-module_desktop__tk1Nk"};
|
|
1468
1479
|
|
|
1469
1480
|
var ChapterBlock = function ChapterBlock(_ref) {
|
|
1470
1481
|
var _ref$block = _ref.block,
|
|
@@ -1473,9 +1484,9 @@ var ChapterBlock = function ChapterBlock(_ref) {
|
|
|
1473
1484
|
styleContext = _ref.styleContext;
|
|
1474
1485
|
return React.createElement("div", {
|
|
1475
1486
|
"data-testid": "chapter-block",
|
|
1476
|
-
className: makeClassName([[styles$
|
|
1487
|
+
className: makeClassName([[styles$l.root, true], [styles$l[onlyOn], !!onlyOn]])
|
|
1477
1488
|
}, React.createElement("div", {
|
|
1478
|
-
className: makeClassName([[styles$
|
|
1489
|
+
className: makeClassName([[styles$l.subtitle, true], [styles$l[styleContext], !!styleContext && !!styles$l[styleContext]]]),
|
|
1479
1490
|
dangerouslySetInnerHTML: {
|
|
1480
1491
|
__html: data
|
|
1481
1492
|
}
|
|
@@ -1493,17 +1504,17 @@ var generateGradient = function generateGradient(color, type) {
|
|
|
1493
1504
|
return "linear-gradient(-180deg, " + gradient + ")";
|
|
1494
1505
|
};
|
|
1495
1506
|
|
|
1496
|
-
var styles$
|
|
1507
|
+
var styles$m = {"root":"SimpleTitle-module_root__2jVQN","mobile":"SimpleTitle-module_mobile__11gBz","desktop":"SimpleTitle-module_desktop__3yXgy"};
|
|
1497
1508
|
|
|
1498
1509
|
var SimpleTitle = function SimpleTitle(_ref) {
|
|
1499
1510
|
var _ref$block = _ref.block,
|
|
1500
1511
|
first = _ref$block.data.first,
|
|
1501
1512
|
onlyOn = _ref$block.only_on,
|
|
1502
1513
|
styleContext = _ref.styleContext;
|
|
1503
|
-
var classNames = [[styles$
|
|
1514
|
+
var classNames = [[styles$m.root, true], [styles$m[onlyOn], true]];
|
|
1504
1515
|
|
|
1505
1516
|
if (styleContext) {
|
|
1506
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
1517
|
+
classNames = makeStyleContext(classNames, styleContext, styles$m);
|
|
1507
1518
|
}
|
|
1508
1519
|
|
|
1509
1520
|
return React.createElement("h1", {
|
|
@@ -1512,7 +1523,7 @@ var SimpleTitle = function SimpleTitle(_ref) {
|
|
|
1512
1523
|
}, first);
|
|
1513
1524
|
};
|
|
1514
1525
|
|
|
1515
|
-
var styles$
|
|
1526
|
+
var styles$n = {"root":"RichTitle-module_root__BK_WT","slide":"RichTitle-module_slide__1A-gB","game":"RichTitle-module_game__1g8Bn","podcastMaterial":"RichTitle-module_podcastMaterial__T3Cv3","half":"RichTitle-module_half__10GRI","featured":"RichTitle-module_featured__wJfaQ","isInMediaBlock":"RichTitle-module_isInMediaBlock__3RDw4","mobile":"RichTitle-module_mobile__1Cb6E","desktop":"RichTitle-module_desktop__2ixSQ"};
|
|
1516
1527
|
|
|
1517
1528
|
var RichTitle = function RichTitle(_ref) {
|
|
1518
1529
|
var _ref$block = _ref.block,
|
|
@@ -1524,10 +1535,10 @@ var RichTitle = function RichTitle(_ref) {
|
|
|
1524
1535
|
_ref$block$data$as = _ref$block$data.as,
|
|
1525
1536
|
TagName = _ref$block$data$as === void 0 ? 'h1' : _ref$block$data$as,
|
|
1526
1537
|
styleContext = _ref.styleContext;
|
|
1527
|
-
var classNames = [[styles$
|
|
1538
|
+
var classNames = [[styles$n.root, true], [styles$n[onlyOn], true], [styles$n.featured, !!featured]];
|
|
1528
1539
|
|
|
1529
1540
|
if (styleContext) {
|
|
1530
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
1541
|
+
classNames = makeStyleContext(classNames, styleContext, styles$n);
|
|
1531
1542
|
}
|
|
1532
1543
|
|
|
1533
1544
|
return React.createElement(TagName, {
|
|
@@ -1536,7 +1547,7 @@ var RichTitle = function RichTitle(_ref) {
|
|
|
1536
1547
|
}, first, second && React.createElement("span", null, " ", second));
|
|
1537
1548
|
};
|
|
1538
1549
|
|
|
1539
|
-
var styles$
|
|
1550
|
+
var styles$o = {"p":"SimpleBlock-module_p__Q3azD","h2":"SimpleBlock-module_h2__S0LRs","h3":"SimpleBlock-module_h3__2Kv7Y","h4":"SimpleBlock-module_h4__2TJO3","lead":"SimpleBlock-module_lead__35nXx","lead_hr":"SimpleBlock-module_lead_hr__1yD5v","context_p":"SimpleBlock-module_context_p__33saY","blockquote":"SimpleBlock-module_blockquote__pwpcX","game":"SimpleBlock-module_game__2sjgl","slide":"SimpleBlock-module_slide__Aqgfu","dark":"SimpleBlock-module_dark__1J_ov","divider":"SimpleBlock-module_divider__tnCGQ","isInIntro":"SimpleBlock-module_isInIntro__DfutD","center":"SimpleBlock-module_center__2rjif","isInImportantLead":"SimpleBlock-module_isInImportantLead__3VGzT","podcastMaterial":"SimpleBlock-module_podcastMaterial__1YeaD","isInAnswer":"SimpleBlock-module_isInAnswer__3aX6X","mobile":"SimpleBlock-module_mobile__Ckgek","desktop":"SimpleBlock-module_desktop__2se2o","isDark":"SimpleBlock-module_isDark__22q5s"};
|
|
1540
1551
|
|
|
1541
1552
|
var SimpleBlock = function SimpleBlock(_ref) {
|
|
1542
1553
|
var _ref$block = _ref.block,
|
|
@@ -1545,10 +1556,10 @@ var SimpleBlock = function SimpleBlock(_ref) {
|
|
|
1545
1556
|
onlyOn = _ref$block.only_on,
|
|
1546
1557
|
styleContext = _ref.styleContext;
|
|
1547
1558
|
var TagName;
|
|
1548
|
-
var classNames = [[styles$
|
|
1559
|
+
var classNames = [[styles$o[type], !!type && !!styles$o[type]], [styles$o[onlyOn], true]];
|
|
1549
1560
|
|
|
1550
1561
|
if (styleContext) {
|
|
1551
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
1562
|
+
classNames = makeStyleContext(classNames, styleContext, styles$o);
|
|
1552
1563
|
}
|
|
1553
1564
|
|
|
1554
1565
|
switch (type) {
|
|
@@ -1584,7 +1595,7 @@ var SimpleBlock = function SimpleBlock(_ref) {
|
|
|
1584
1595
|
});
|
|
1585
1596
|
};
|
|
1586
1597
|
|
|
1587
|
-
var styles$
|
|
1598
|
+
var styles$p = {"root":"ListBlock-module_root__3Q3Ga","ol":"ListBlock-module_ol__21CgV","ul":"ListBlock-module_ul__2MRrS","center":"ListBlock-module_center__tdIwd","isInImportantLead":"ListBlock-module_isInImportantLead__UP0ic","dark":"ListBlock-module_dark__3E3tV","mobile":"ListBlock-module_mobile__2-nuV","desktop":"ListBlock-module_desktop__1EE0g"};
|
|
1588
1599
|
|
|
1589
1600
|
var ListBlock = function ListBlock(_ref) {
|
|
1590
1601
|
var _ref$block = _ref.block,
|
|
@@ -1593,10 +1604,10 @@ var ListBlock = function ListBlock(_ref) {
|
|
|
1593
1604
|
onlyOn = _ref$block.only_on,
|
|
1594
1605
|
styleContext = _ref.styleContext;
|
|
1595
1606
|
var TagName = type;
|
|
1596
|
-
var classNames = [[styles$
|
|
1607
|
+
var classNames = [[styles$p.root, true], [styles$p[onlyOn], true], [styles$p[type], !!type && !!styles$p[type]]];
|
|
1597
1608
|
|
|
1598
1609
|
if (styleContext) {
|
|
1599
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
1610
|
+
classNames = makeStyleContext(classNames, styleContext, styles$p);
|
|
1600
1611
|
}
|
|
1601
1612
|
|
|
1602
1613
|
return React.createElement(TagName, {
|
|
@@ -1612,7 +1623,7 @@ var ListBlock = function ListBlock(_ref) {
|
|
|
1612
1623
|
}));
|
|
1613
1624
|
};
|
|
1614
1625
|
|
|
1615
|
-
var styles$
|
|
1626
|
+
var styles$q = {"root":"RelatedBlock-module_root__IKcQq","header":"RelatedBlock-module_header__2SuWP","items":"RelatedBlock-module_items__2V-Ap","rich":"RelatedBlock-module_rich__ddaHq","first":"RelatedBlock-module_first__BKItW","simple":"RelatedBlock-module_simple__29HVO","center":"RelatedBlock-module_center__1LmW8","isInSlideMaterial":"RelatedBlock-module_isInSlideMaterial__2YSYG","mobile":"RelatedBlock-module_mobile__2XM5a","desktop":"RelatedBlock-module_desktop__2mXeq"};
|
|
1616
1627
|
|
|
1617
1628
|
var RelatedBlock = function RelatedBlock(_ref) {
|
|
1618
1629
|
var _ref$block = _ref.block,
|
|
@@ -1621,32 +1632,32 @@ var RelatedBlock = function RelatedBlock(_ref) {
|
|
|
1621
1632
|
related = _ref$block$data.related,
|
|
1622
1633
|
onlyOn = _ref$block.only_on,
|
|
1623
1634
|
styleContext = _ref.styleContext;
|
|
1624
|
-
var classNames = [[styles$
|
|
1635
|
+
var classNames = [[styles$q.root, true], [styles$q[onlyOn], true]];
|
|
1625
1636
|
|
|
1626
1637
|
if (styleContext) {
|
|
1627
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
1638
|
+
classNames = makeStyleContext(classNames, styleContext, styles$q);
|
|
1628
1639
|
}
|
|
1629
1640
|
|
|
1630
1641
|
return React.createElement("div", {
|
|
1631
1642
|
"data-testid": "related-block",
|
|
1632
1643
|
className: makeClassName(classNames)
|
|
1633
1644
|
}, React.createElement("h3", {
|
|
1634
|
-
className: styles$
|
|
1645
|
+
className: styles$q.header
|
|
1635
1646
|
}, title), React.createElement("ul", {
|
|
1636
|
-
className: styles$
|
|
1647
|
+
className: styles$q.items
|
|
1637
1648
|
}, related.map(function (item, index) {
|
|
1638
1649
|
return React.createElement("li", {
|
|
1639
1650
|
key: item.id || index,
|
|
1640
|
-
className: styles$
|
|
1651
|
+
className: styles$q[item.layout]
|
|
1641
1652
|
}, React.createElement(Link, {
|
|
1642
1653
|
to: item.full_url || "/" + item.url
|
|
1643
1654
|
}, React.createElement("span", {
|
|
1644
|
-
className: styles$
|
|
1655
|
+
className: styles$q.first
|
|
1645
1656
|
}, item.title), item.second_title && ' ', item.second_title && React.createElement("span", null, item.second_title)));
|
|
1646
1657
|
})));
|
|
1647
1658
|
};
|
|
1648
1659
|
|
|
1649
|
-
var styles$
|
|
1660
|
+
var styles$r = {"root":"SourceBlock-module_root__1P3XD","text":"SourceBlock-module_text__Si4vm","origin":"SourceBlock-module_origin__l3JbO","center":"SourceBlock-module_center__3P93B","mobile":"SourceBlock-module_mobile__2gw4S","desktop":"SourceBlock-module_desktop__DecT6","isDark":"SourceBlock-module_isDark__3hEEp"};
|
|
1650
1661
|
|
|
1651
1662
|
var SourceBlock = function SourceBlock(_ref) {
|
|
1652
1663
|
var _ref$block = _ref.block,
|
|
@@ -1656,10 +1667,10 @@ var SourceBlock = function SourceBlock(_ref) {
|
|
|
1656
1667
|
origin = _ref$block$data.origin,
|
|
1657
1668
|
url = _ref$block$data.url,
|
|
1658
1669
|
styleContext = _ref.styleContext;
|
|
1659
|
-
var classNames = [[styles$
|
|
1670
|
+
var classNames = [[styles$r.root, true], [styles$r[onlyOn], true]];
|
|
1660
1671
|
|
|
1661
1672
|
if (styleContext) {
|
|
1662
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
1673
|
+
classNames = makeStyleContext(classNames, styleContext, styles$r);
|
|
1663
1674
|
}
|
|
1664
1675
|
|
|
1665
1676
|
return React.createElement("blockquote", {
|
|
@@ -1667,7 +1678,7 @@ var SourceBlock = function SourceBlock(_ref) {
|
|
|
1667
1678
|
cite: url,
|
|
1668
1679
|
className: makeClassName(classNames)
|
|
1669
1680
|
}, React.createElement("a", {
|
|
1670
|
-
className: styles$
|
|
1681
|
+
className: styles$r.text,
|
|
1671
1682
|
href: url,
|
|
1672
1683
|
target: "_blank",
|
|
1673
1684
|
rel: "noopener noreferrer"
|
|
@@ -1679,11 +1690,11 @@ var SourceBlock = function SourceBlock(_ref) {
|
|
|
1679
1690
|
}
|
|
1680
1691
|
});
|
|
1681
1692
|
}), React.createElement("footer", null, React.createElement("cite", {
|
|
1682
|
-
className: styles$
|
|
1693
|
+
className: styles$r.origin
|
|
1683
1694
|
}, origin))));
|
|
1684
1695
|
};
|
|
1685
1696
|
|
|
1686
|
-
var styles$
|
|
1697
|
+
var styles$s = {"root":"SensitiveBlock-module_root__2iJbD","container":"SensitiveBlock-module_container__1Wtix","overlay":"SensitiveBlock-module_overlay__hfDVS","content":"SensitiveBlock-module_content__sNpxZ","button":"SensitiveBlock-module_button__3BGZK","default":"SensitiveBlock-module_default__2HgmZ","full":"SensitiveBlock-module_full__3Hph9","media":"SensitiveBlock-module_media__3wnlo","super_full":"SensitiveBlock-module_super_full__14UOv","visible":"SensitiveBlock-module_visible__1B-NV","isInCard":"SensitiveBlock-module_isInCard__1L-lu","isInSlide":"SensitiveBlock-module_isInSlide__f_Ql2"};
|
|
1687
1698
|
|
|
1688
1699
|
var SensitiveBlock = function SensitiveBlock(_ref) {
|
|
1689
1700
|
var block = _ref.block,
|
|
@@ -1703,11 +1714,11 @@ var SensitiveBlock = function SensitiveBlock(_ref) {
|
|
|
1703
1714
|
isVisible(true);
|
|
1704
1715
|
};
|
|
1705
1716
|
|
|
1706
|
-
var classNames = [[styles$
|
|
1717
|
+
var classNames = [[styles$s.root, true], [styles$s.visible, visible], [styles$s[display], display && styles$s[display]]];
|
|
1707
1718
|
var context = ['isInSensitiveBlock'];
|
|
1708
1719
|
|
|
1709
1720
|
if (styleContext) {
|
|
1710
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
1721
|
+
classNames = makeStyleContext(classNames, styleContext, styles$s);
|
|
1711
1722
|
context = [].concat(styleContext, ['isInSensitiveBlock']);
|
|
1712
1723
|
}
|
|
1713
1724
|
|
|
@@ -1715,32 +1726,32 @@ var SensitiveBlock = function SensitiveBlock(_ref) {
|
|
|
1715
1726
|
"data-testid": "sensitive-block",
|
|
1716
1727
|
className: makeClassName(classNames)
|
|
1717
1728
|
}, React.createElement("div", {
|
|
1718
|
-
className: styles$
|
|
1729
|
+
className: styles$s.container
|
|
1719
1730
|
}, React.createElement("div", {
|
|
1720
|
-
className: styles$
|
|
1731
|
+
className: styles$s.overlay,
|
|
1721
1732
|
style: {
|
|
1722
1733
|
backgroundImage: "url(" + blurredImage + ")"
|
|
1723
1734
|
}
|
|
1724
1735
|
}, React.createElement("div", {
|
|
1725
|
-
className: styles$
|
|
1736
|
+
className: styles$s.content
|
|
1726
1737
|
}, React.createElement("p", {
|
|
1727
1738
|
dangerouslySetInnerHTML: {
|
|
1728
1739
|
__html: block.title
|
|
1729
1740
|
}
|
|
1730
1741
|
}), React.createElement("div", {
|
|
1731
|
-
className: styles$
|
|
1742
|
+
className: styles$s.button
|
|
1732
1743
|
}, React.createElement(Button, {
|
|
1733
1744
|
onClick: function onClick() {
|
|
1734
1745
|
return handleClick();
|
|
1735
1746
|
},
|
|
1736
1747
|
theme: "light"
|
|
1737
1748
|
}, block.button.text)))), React.createElement("div", {
|
|
1738
|
-
className: styles$
|
|
1749
|
+
className: styles$s.media
|
|
1739
1750
|
}, React.createElement(EmbedBlockContainer, {
|
|
1740
1751
|
block: block.item,
|
|
1741
1752
|
styleContext: context
|
|
1742
1753
|
}))), cc && React.createElement("figcaption", {
|
|
1743
|
-
className: styles$
|
|
1754
|
+
className: styles$s.figcaption
|
|
1744
1755
|
}, React.createElement(MediaCaption, {
|
|
1745
1756
|
credit: credit,
|
|
1746
1757
|
caption: caption,
|
|
@@ -1748,7 +1759,7 @@ var SensitiveBlock = function SensitiveBlock(_ref) {
|
|
|
1748
1759
|
})));
|
|
1749
1760
|
};
|
|
1750
1761
|
|
|
1751
|
-
var styles$
|
|
1762
|
+
var styles$t = {"root":"GroupedBlock-module_root__2qfQA","hasFigcaption":"GroupedBlock-module_hasFigcaption__2_mcf","item":"GroupedBlock-module_item__3sz9_","items":"GroupedBlock-module_items__2DV2X","figcaption":"GroupedBlock-module_figcaption__2Q_wf","default":"GroupedBlock-module_default__3ylw_","full":"GroupedBlock-module_full__1dzQR","super_full":"GroupedBlock-module_super_full__1PU72","mobile":"GroupedBlock-module_mobile__3n8Ub","desktop":"GroupedBlock-module_desktop__6ZRpA"};
|
|
1752
1763
|
|
|
1753
1764
|
var GroupedBlock = function GroupedBlock(_ref) {
|
|
1754
1765
|
var block = _ref.block,
|
|
@@ -1765,21 +1776,21 @@ var GroupedBlock = function GroupedBlock(_ref) {
|
|
|
1765
1776
|
var sumWidth = normalizedBoxesWidth.reduce(function (sum, x) {
|
|
1766
1777
|
return sum + x;
|
|
1767
1778
|
});
|
|
1768
|
-
var classNames = [[styles$
|
|
1779
|
+
var classNames = [[styles$t.root, true], [styles$t[onlyOn], true], [styles$t.hasFigcaption, block.cc === 'default'], [styles$t[block.display], !!block.display && styles$t[block.display]]];
|
|
1769
1780
|
|
|
1770
1781
|
if (styleContext) {
|
|
1771
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
1782
|
+
classNames = makeStyleContext(classNames, styleContext, styles$t);
|
|
1772
1783
|
}
|
|
1773
1784
|
|
|
1774
1785
|
return React.createElement("div", {
|
|
1775
1786
|
"data-testid": "grouped-block",
|
|
1776
1787
|
className: makeClassName(classNames)
|
|
1777
1788
|
}, React.createElement("div", {
|
|
1778
|
-
className: styles$
|
|
1789
|
+
className: styles$t.items
|
|
1779
1790
|
}, block.data.map(function (item, index) {
|
|
1780
1791
|
var percentWidth = normalizedBoxesWidth[index] / sumWidth * 100;
|
|
1781
1792
|
return React.createElement("div", {
|
|
1782
|
-
className: styles$
|
|
1793
|
+
className: styles$t.item,
|
|
1783
1794
|
key: item.id,
|
|
1784
1795
|
style: {
|
|
1785
1796
|
width: percentWidth + "%"
|
|
@@ -1792,7 +1803,7 @@ var GroupedBlock = function GroupedBlock(_ref) {
|
|
|
1792
1803
|
styleContext: ['isInGroupedBlock']
|
|
1793
1804
|
}));
|
|
1794
1805
|
})), block.cc && React.createElement("figcaption", {
|
|
1795
|
-
className: styles$
|
|
1806
|
+
className: styles$t.figcaption
|
|
1796
1807
|
}, React.createElement(MediaCaption, {
|
|
1797
1808
|
credit: block.credit,
|
|
1798
1809
|
caption: block.caption,
|
|
@@ -1800,32 +1811,32 @@ var GroupedBlock = function GroupedBlock(_ref) {
|
|
|
1800
1811
|
})));
|
|
1801
1812
|
};
|
|
1802
1813
|
|
|
1803
|
-
var styles$
|
|
1814
|
+
var styles$u = {"root":"MetaItem-module_root__2VQom","hasBullets":"MetaItem-module_hasBullets__CkQPI","hasSource":"MetaItem-module_hasSource__1DmCI","listened":"MetaItem-module_listened__lwvAO","read":"MetaItem-module_read__5eAIG","datetime":"MetaItem-module_datetime__3tOWm"};
|
|
1804
1815
|
|
|
1805
1816
|
var MetaItem = function MetaItem(_ref) {
|
|
1806
1817
|
var hasSource = _ref.hasSource,
|
|
1807
1818
|
type = _ref.type,
|
|
1808
1819
|
children = _ref.children,
|
|
1809
1820
|
bullets = _ref.bullets;
|
|
1810
|
-
var classNames = [[styles$
|
|
1821
|
+
var classNames = [[styles$u.root, true], [styles$u[type], !!type && !!styles$u[type]], [styles$u.hasSource, !!hasSource], [styles$u.hasBullets, !!bullets]];
|
|
1811
1822
|
return React.createElement("div", {
|
|
1812
1823
|
"data-testid": "meta-item",
|
|
1813
1824
|
className: makeClassName(classNames)
|
|
1814
1825
|
}, children);
|
|
1815
1826
|
};
|
|
1816
1827
|
|
|
1817
|
-
var styles$
|
|
1828
|
+
var styles$v = {"root":"MetaItemLive-module_root__2mpD3","gold":"MetaItemLive-module_gold__3yZEV","frame":"MetaItemLive-module_frame__1H_Ha","liveMiddle":"MetaItemLive-module_liveMiddle__wyuV3","liveFirstWave":"MetaItemLive-module_liveFirstWave__3dbvz","liveSecondWave":"MetaItemLive-module_liveSecondWave__12g57"};
|
|
1818
1829
|
|
|
1819
1830
|
var MetaItemLive = function MetaItemLive(_ref) {
|
|
1820
1831
|
var _ref$theme = _ref.theme,
|
|
1821
1832
|
theme = _ref$theme === void 0 ? 'gold' : _ref$theme;
|
|
1822
|
-
var classNames = [[styles$
|
|
1833
|
+
var classNames = [[styles$v.root, true], [styles$v[theme], !!theme && styles$v[theme]]];
|
|
1823
1834
|
return React.createElement("div", {
|
|
1824
1835
|
"data-testid": "meta-item-live",
|
|
1825
1836
|
"data-meta": "live",
|
|
1826
1837
|
className: makeClassName(classNames)
|
|
1827
1838
|
}, React.createElement("div", {
|
|
1828
|
-
className: styles$
|
|
1839
|
+
className: styles$v.frame
|
|
1829
1840
|
}));
|
|
1830
1841
|
};
|
|
1831
1842
|
|
|
@@ -1850,7 +1861,7 @@ var pluralize = function pluralize(number, one, two, five) {
|
|
|
1850
1861
|
return five;
|
|
1851
1862
|
};
|
|
1852
1863
|
|
|
1853
|
-
var styles$
|
|
1864
|
+
var styles$w = {"root":"DocumentItemsCount-module_root__P3q-z","items":"DocumentItemsCount-module_items__3pfxW"};
|
|
1854
1865
|
|
|
1855
1866
|
var DocumentItemsCount = function DocumentItemsCount(_ref) {
|
|
1856
1867
|
var type = _ref.type,
|
|
@@ -1887,9 +1898,9 @@ var DocumentItemsCount = function DocumentItemsCount(_ref) {
|
|
|
1887
1898
|
var itemsCount = items + " " + pluralize(items, i18n[lang][type].one, i18n[lang][type].two, i18n[lang][type].five);
|
|
1888
1899
|
return React.createElement("div", {
|
|
1889
1900
|
"data-testid": "document-items-count",
|
|
1890
|
-
className: styles$
|
|
1901
|
+
className: styles$w.root
|
|
1891
1902
|
}, children, React.createElement("span", {
|
|
1892
|
-
className: styles$
|
|
1903
|
+
className: styles$w.items
|
|
1893
1904
|
}, itemsCount));
|
|
1894
1905
|
};
|
|
1895
1906
|
|
|
@@ -2012,7 +2023,7 @@ var MetaContainer = function MetaContainer(_ref) {
|
|
|
2012
2023
|
icon: isListened ? 'listened' : 'read',
|
|
2013
2024
|
size: "unset"
|
|
2014
2025
|
})), isSlides && lang === 'ru' && React.createElement("div", {
|
|
2015
|
-
className: styles$
|
|
2026
|
+
className: styles$g.bookmark
|
|
2016
2027
|
}, React.createElement(BookmarkButton, {
|
|
2017
2028
|
isInBookmarks: isInBookmarks,
|
|
2018
2029
|
onClick: function onClick() {
|
|
@@ -2021,16 +2032,16 @@ var MetaContainer = function MetaContainer(_ref) {
|
|
|
2021
2032
|
})));
|
|
2022
2033
|
};
|
|
2023
2034
|
|
|
2024
|
-
var styles$
|
|
2035
|
+
var styles$x = {"root":"DonatesTeaser-module_root__3rtaJ","main":"DonatesTeaser-module_main__YBt6p","title":"DonatesTeaser-module_title__hs-yr","text":"DonatesTeaser-module_text__ro-QA","cta":"DonatesTeaser-module_cta__1orPb","center":"DonatesTeaser-module_center__2Ynx9","isInCard":"DonatesTeaser-module_isInCard__HrFh8","isInSlide":"DonatesTeaser-module_isInSlide__1vC4Z","ru":"DonatesTeaser-module_ru__3Gr0n","en":"DonatesTeaser-module_en__2HSwc"};
|
|
2025
2036
|
|
|
2026
2037
|
var DonatesTeaser = function DonatesTeaser(_ref) {
|
|
2027
2038
|
var styleContext = _ref.styleContext,
|
|
2028
2039
|
_ref$lang = _ref.lang,
|
|
2029
2040
|
lang = _ref$lang === void 0 ? 'ru' : _ref$lang;
|
|
2030
|
-
var classNames = [[styles$
|
|
2041
|
+
var classNames = [[styles$x.root, true], [styles$x[lang], styles$x[lang]]];
|
|
2031
2042
|
|
|
2032
2043
|
if (styleContext) {
|
|
2033
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
2044
|
+
classNames = makeStyleContext(classNames, styleContext, styles$x);
|
|
2034
2045
|
}
|
|
2035
2046
|
|
|
2036
2047
|
var data = {
|
|
@@ -2051,20 +2062,20 @@ var DonatesTeaser = function DonatesTeaser(_ref) {
|
|
|
2051
2062
|
"data-testid": "donates-teaser",
|
|
2052
2063
|
className: makeClassName(classNames)
|
|
2053
2064
|
}, React.createElement("div", {
|
|
2054
|
-
className: styles$
|
|
2065
|
+
className: styles$x.main
|
|
2055
2066
|
}, React.createElement("h3", {
|
|
2056
|
-
className: styles$
|
|
2067
|
+
className: styles$x.title
|
|
2057
2068
|
}, React.createElement("span", {
|
|
2058
2069
|
dangerouslySetInnerHTML: {
|
|
2059
2070
|
__html: data[lang].title
|
|
2060
2071
|
}
|
|
2061
2072
|
}), " ", React.createElement("span", {
|
|
2062
|
-
className: styles$
|
|
2073
|
+
className: styles$x.text,
|
|
2063
2074
|
dangerouslySetInnerHTML: {
|
|
2064
2075
|
__html: data[lang].subtitle
|
|
2065
2076
|
}
|
|
2066
2077
|
}))), React.createElement("div", {
|
|
2067
|
-
className: styles$
|
|
2078
|
+
className: styles$x.cta
|
|
2068
2079
|
}, React.createElement("a", {
|
|
2069
2080
|
href: data[lang].href,
|
|
2070
2081
|
target: "_blank",
|
|
@@ -2072,16 +2083,16 @@ var DonatesTeaser = function DonatesTeaser(_ref) {
|
|
|
2072
2083
|
}, React.createElement("span", null, data[lang].button))));
|
|
2073
2084
|
};
|
|
2074
2085
|
|
|
2075
|
-
var styles$
|
|
2086
|
+
var styles$y = {"root":"AnnouncementInText-module_root__3zM9x","body":"AnnouncementInText-module_body__1yI8T","title":"AnnouncementInText-module_title__29CXr","footer":"AnnouncementInText-module_footer__1fyWt","button":"AnnouncementInText-module_button__2dEXa","link":"AnnouncementInText-module_link__1GxOy","center":"AnnouncementInText-module_center__3VLl2","isInCard":"AnnouncementInText-module_isInCard__2Xq_I","isInSlide":"AnnouncementInText-module_isInSlide__1PsC2","ru":"AnnouncementInText-module_ru__3vDy7","en":"AnnouncementInText-module_en__1Mgvm"};
|
|
2076
2087
|
|
|
2077
2088
|
var AnnouncementInText = function AnnouncementInText(_ref) {
|
|
2078
2089
|
var styleContext = _ref.styleContext,
|
|
2079
2090
|
_ref$lang = _ref.lang,
|
|
2080
2091
|
lang = _ref$lang === void 0 ? 'ru' : _ref$lang;
|
|
2081
|
-
var classNames = [[styles$
|
|
2092
|
+
var classNames = [[styles$y.root, true], [styles$y[lang], styles$y[lang]]];
|
|
2082
2093
|
|
|
2083
2094
|
if (styleContext) {
|
|
2084
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
2095
|
+
classNames = makeStyleContext(classNames, styleContext, styles$y);
|
|
2085
2096
|
}
|
|
2086
2097
|
|
|
2087
2098
|
var data = {
|
|
@@ -2103,9 +2114,9 @@ var AnnouncementInText = function AnnouncementInText(_ref) {
|
|
|
2103
2114
|
"data-testid": "announcement-in-text",
|
|
2104
2115
|
className: makeClassName(classNames)
|
|
2105
2116
|
}, React.createElement("div", {
|
|
2106
|
-
className: styles$
|
|
2117
|
+
className: styles$y.body
|
|
2107
2118
|
}, React.createElement("h3", {
|
|
2108
|
-
className: styles$
|
|
2119
|
+
className: styles$y.title,
|
|
2109
2120
|
dangerouslySetInnerHTML: {
|
|
2110
2121
|
__html: localeData.title
|
|
2111
2122
|
}
|
|
@@ -2114,14 +2125,14 @@ var AnnouncementInText = function AnnouncementInText(_ref) {
|
|
|
2114
2125
|
__html: localeData.text
|
|
2115
2126
|
}
|
|
2116
2127
|
})), React.createElement("div", {
|
|
2117
|
-
className: styles$
|
|
2128
|
+
className: styles$y.footer
|
|
2118
2129
|
}, React.createElement("a", {
|
|
2119
|
-
className: styles$
|
|
2130
|
+
className: styles$y.link,
|
|
2120
2131
|
href: localeData.href,
|
|
2121
2132
|
target: "_blank",
|
|
2122
2133
|
rel: "noreferrer"
|
|
2123
2134
|
}, React.createElement("span", null, localeData.button)), React.createElement("span", {
|
|
2124
|
-
className: styles$
|
|
2135
|
+
className: styles$y.button
|
|
2125
2136
|
}, React.createElement("span", null, localeData.button))));
|
|
2126
2137
|
};
|
|
2127
2138
|
|
|
@@ -2291,7 +2302,7 @@ var RenderBlocks = function RenderBlocks(_ref) {
|
|
|
2291
2302
|
}
|
|
2292
2303
|
};
|
|
2293
2304
|
|
|
2294
|
-
var styles$
|
|
2305
|
+
var styles$z = {"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"};
|
|
2295
2306
|
|
|
2296
2307
|
var Cover = function Cover(_ref) {
|
|
2297
2308
|
var _ref$block = _ref.block,
|
|
@@ -2312,15 +2323,15 @@ var Cover = function Cover(_ref) {
|
|
|
2312
2323
|
setIsPopoverShown = _useState[1];
|
|
2313
2324
|
|
|
2314
2325
|
var style = {};
|
|
2315
|
-
var classNames = [[styles$
|
|
2326
|
+
var classNames = [[styles$z.root, true], [styles$z[onlyOn], !!onlyOn && !!styles$z[onlyOn]]];
|
|
2316
2327
|
|
|
2317
2328
|
if (styleContext) {
|
|
2318
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
2329
|
+
classNames = makeStyleContext(classNames, styleContext, styles$z);
|
|
2319
2330
|
}
|
|
2320
2331
|
|
|
2321
2332
|
if (gradients) {
|
|
2322
2333
|
var theme = [gradients.text_rgb === '0,0,0' ? 'dark' : 'light'];
|
|
2323
|
-
classNames = makeStyleContext(classNames, theme, styles$
|
|
2334
|
+
classNames = makeStyleContext(classNames, theme, styles$z);
|
|
2324
2335
|
style.backgroundImage = generateGradient(gradients.bg_rgb, 'mediaBlockBottom');
|
|
2325
2336
|
}
|
|
2326
2337
|
|
|
@@ -2336,13 +2347,13 @@ var Cover = function Cover(_ref) {
|
|
|
2336
2347
|
"data-testid": "cover",
|
|
2337
2348
|
className: makeClassName(classNames)
|
|
2338
2349
|
}, React.createElement("div", {
|
|
2339
|
-
className: styles$
|
|
2350
|
+
className: styles$z.image
|
|
2340
2351
|
}, React.createElement(Image, {
|
|
2341
2352
|
optimized: urls,
|
|
2342
2353
|
ratio: mobileRatio,
|
|
2343
2354
|
display: "narrow"
|
|
2344
2355
|
})), React.createElement("div", {
|
|
2345
|
-
className: styles$
|
|
2356
|
+
className: styles$z.body,
|
|
2346
2357
|
style: style
|
|
2347
2358
|
}, blocks.map(function (item) {
|
|
2348
2359
|
return React.createElement(RenderBlocks, {
|
|
@@ -2351,7 +2362,7 @@ var Cover = function Cover(_ref) {
|
|
|
2351
2362
|
styleContext: styleContext
|
|
2352
2363
|
});
|
|
2353
2364
|
})), cc === 'button' && React.createElement("button", {
|
|
2354
|
-
className: styles$
|
|
2365
|
+
className: styles$z.control,
|
|
2355
2366
|
type: "button",
|
|
2356
2367
|
"aria-label": "Open",
|
|
2357
2368
|
onClick: function onClick() {
|
|
@@ -2364,7 +2375,7 @@ var Cover = function Cover(_ref) {
|
|
|
2364
2375
|
}, renderCC('isInPopover')));
|
|
2365
2376
|
};
|
|
2366
2377
|
|
|
2367
|
-
var styles$
|
|
2378
|
+
var styles$A = {"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"};
|
|
2368
2379
|
|
|
2369
2380
|
var HalfBlock = function HalfBlock(_ref) {
|
|
2370
2381
|
var _ref$block = _ref.block,
|
|
@@ -2376,25 +2387,25 @@ var HalfBlock = function HalfBlock(_ref) {
|
|
|
2376
2387
|
credit = _ref$block$data$cover.credit,
|
|
2377
2388
|
caption = _ref$block$data$cover.caption,
|
|
2378
2389
|
styleContext = _ref.styleContext;
|
|
2379
|
-
var classNames = [[styles$
|
|
2390
|
+
var classNames = [[styles$A.root, true], [styles$A[onlyOn], true]];
|
|
2380
2391
|
|
|
2381
2392
|
if (styleContext) {
|
|
2382
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
2393
|
+
classNames = makeStyleContext(classNames, styleContext, styles$A);
|
|
2383
2394
|
}
|
|
2384
2395
|
|
|
2385
2396
|
return React.createElement("div", {
|
|
2386
2397
|
"data-testid": "half-block",
|
|
2387
2398
|
className: makeClassName(classNames)
|
|
2388
2399
|
}, React.createElement("div", {
|
|
2389
|
-
className: styles$
|
|
2400
|
+
className: styles$A.main
|
|
2390
2401
|
}, React.createElement("div", {
|
|
2391
|
-
className: styles$
|
|
2402
|
+
className: styles$A.image
|
|
2392
2403
|
}, React.createElement(Image, {
|
|
2393
2404
|
optimized: optimized,
|
|
2394
2405
|
ratio: ratio,
|
|
2395
2406
|
display: "super_full"
|
|
2396
2407
|
})), React.createElement("div", {
|
|
2397
|
-
className: styles$
|
|
2408
|
+
className: styles$A.body
|
|
2398
2409
|
}, data.blocks.map(function (item) {
|
|
2399
2410
|
return React.createElement(RenderBlocks, {
|
|
2400
2411
|
key: item.id,
|
|
@@ -2402,7 +2413,7 @@ var HalfBlock = function HalfBlock(_ref) {
|
|
|
2402
2413
|
styleContext: ['rich']
|
|
2403
2414
|
});
|
|
2404
2415
|
}))), React.createElement("div", {
|
|
2405
|
-
className: styles$
|
|
2416
|
+
className: styles$A.footer
|
|
2406
2417
|
}, React.createElement(MediaCaption, {
|
|
2407
2418
|
credit: credit,
|
|
2408
2419
|
caption: caption,
|
|
@@ -2410,17 +2421,17 @@ var HalfBlock = function HalfBlock(_ref) {
|
|
|
2410
2421
|
})));
|
|
2411
2422
|
};
|
|
2412
2423
|
|
|
2413
|
-
var styles$
|
|
2424
|
+
var styles$B = {"root":"ImportantLead-module_root__2BdT3","slide":"ImportantLead-module_slide__3kQ9x","mobile":"ImportantLead-module_mobile__3BXbm","desktop":"ImportantLead-module_desktop__3Zljc"};
|
|
2414
2425
|
|
|
2415
2426
|
var ImportantLead = function ImportantLead(_ref) {
|
|
2416
2427
|
var _ref$block = _ref.block,
|
|
2417
2428
|
onlyOn = _ref$block.only_on,
|
|
2418
2429
|
data = _ref$block.data,
|
|
2419
2430
|
styleContext = _ref.styleContext;
|
|
2420
|
-
var classNames = [[styles$
|
|
2431
|
+
var classNames = [[styles$B.root, true], [styles$B[onlyOn], !!onlyOn]];
|
|
2421
2432
|
|
|
2422
2433
|
if (styleContext) {
|
|
2423
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
2434
|
+
classNames = makeStyleContext(classNames, styleContext, styles$B);
|
|
2424
2435
|
}
|
|
2425
2436
|
|
|
2426
2437
|
return React.createElement("div", {
|
|
@@ -2435,7 +2446,7 @@ var ImportantLead = function ImportantLead(_ref) {
|
|
|
2435
2446
|
}));
|
|
2436
2447
|
};
|
|
2437
2448
|
|
|
2438
|
-
var styles$
|
|
2449
|
+
var styles$C = {"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","spoilerStickyBg":"Spoiler-module_spoilerStickyBg__nYdlo","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"};
|
|
2439
2450
|
|
|
2440
2451
|
var Spoiler = function Spoiler(_ref) {
|
|
2441
2452
|
var _ref$block = _ref.block,
|
|
@@ -2470,11 +2481,11 @@ var Spoiler = function Spoiler(_ref) {
|
|
|
2470
2481
|
}
|
|
2471
2482
|
};
|
|
2472
2483
|
|
|
2473
|
-
var classNames = [[styles$
|
|
2484
|
+
var classNames = [[styles$C.root, true], [styles$C[onlyOn], !!onlyOn], [styles$C[display], !!display && styles$C[display]], [[styles$C.spoiled], !!spoiled]];
|
|
2474
2485
|
var context = ['center'];
|
|
2475
2486
|
|
|
2476
2487
|
if (styleContext) {
|
|
2477
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
2488
|
+
classNames = makeStyleContext(classNames, styleContext, styles$C);
|
|
2478
2489
|
}
|
|
2479
2490
|
|
|
2480
2491
|
var buttonCollapse = button ? button.collapse : 'Свернуть';
|
|
@@ -2484,9 +2495,9 @@ var Spoiler = function Spoiler(_ref) {
|
|
|
2484
2495
|
className: makeClassName(classNames),
|
|
2485
2496
|
"data-testid": "spoiler"
|
|
2486
2497
|
}, React.createElement("div", {
|
|
2487
|
-
className: styles$
|
|
2498
|
+
className: styles$C.header
|
|
2488
2499
|
}, title && React.createElement("h3", null, title)), React.createElement("div", {
|
|
2489
|
-
className: styles$
|
|
2500
|
+
className: styles$C.body
|
|
2490
2501
|
}, blocks.map(function (item) {
|
|
2491
2502
|
return React.createElement(RenderBlocks, {
|
|
2492
2503
|
key: item.id,
|
|
@@ -2494,7 +2505,7 @@ var Spoiler = function Spoiler(_ref) {
|
|
|
2494
2505
|
styleContext: context
|
|
2495
2506
|
});
|
|
2496
2507
|
})), React.createElement("div", {
|
|
2497
|
-
className: styles$
|
|
2508
|
+
className: styles$C.footer
|
|
2498
2509
|
}, React.createElement(Button, {
|
|
2499
2510
|
size: "default",
|
|
2500
2511
|
theme: "gray",
|
|
@@ -2507,7 +2518,7 @@ var Spoiler = function Spoiler(_ref) {
|
|
|
2507
2518
|
}))));
|
|
2508
2519
|
};
|
|
2509
2520
|
|
|
2510
|
-
var styles$
|
|
2521
|
+
var styles$D = {"root":"RelatedRichBlock-module_root__3NYmj","wrapper":"RelatedRichBlock-module_wrapper__1eLIQ","overlay":"RelatedRichBlock-module_overlay__3XSg_","overlayHeader":"RelatedRichBlock-module_overlayHeader__2Nmbv","body":"RelatedRichBlock-module_body__1ZHZS","isRich":"RelatedRichBlock-module_isRich__1LnA4","hasGradient":"RelatedRichBlock-module_hasGradient__27LOk","picture":"RelatedRichBlock-module_picture__128HJ","isCard":"RelatedRichBlock-module_isCard__2naDz","cover":"RelatedRichBlock-module_cover__3yygp","tag":"RelatedRichBlock-module_tag__3OLyG","center":"RelatedRichBlock-module_center__197sx","dark":"RelatedRichBlock-module_dark__3Y1fE","light":"RelatedRichBlock-module_light__2mUxL","mobile":"RelatedRichBlock-module_mobile__JpCS4","desktop":"RelatedRichBlock-module_desktop__trL0D"};
|
|
2511
2522
|
|
|
2512
2523
|
/* eslint-disable react/jsx-no-target-blank */
|
|
2513
2524
|
var RelatedRichBlock = function RelatedRichBlock(_ref) {
|
|
@@ -2546,18 +2557,18 @@ var RelatedRichBlock = function RelatedRichBlock(_ref) {
|
|
|
2546
2557
|
postMessage('richRelated', url, 'click');
|
|
2547
2558
|
};
|
|
2548
2559
|
|
|
2549
|
-
var classNames = [[styles$
|
|
2560
|
+
var classNames = [[styles$D.root, true], [styles$D[cardType], !!layout && !!styles$D[cardType]], [styles$D.hasGradient, !!gradients], [styles$D[onlyOn], !!onlyOn && !!styles$D[onlyOn]]];
|
|
2550
2561
|
var context = ['isInMediaBlock'];
|
|
2551
2562
|
|
|
2552
2563
|
if (styleContext) {
|
|
2553
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
2564
|
+
classNames = makeStyleContext(classNames, styleContext, styles$D);
|
|
2554
2565
|
context = [].concat(styleContext, ['isInMediaBlock']);
|
|
2555
2566
|
}
|
|
2556
2567
|
|
|
2557
2568
|
if (gradients) {
|
|
2558
2569
|
styleHeader.backgroundImage = generateGradient(gradients.bg_rgb, 'mediaBlockTop');
|
|
2559
2570
|
var theme = [gradients.text_rgb === '0,0,0' ? 'dark' : 'light'];
|
|
2560
|
-
classNames = makeStyleContext(classNames, theme, styles$
|
|
2571
|
+
classNames = makeStyleContext(classNames, theme, styles$D);
|
|
2561
2572
|
|
|
2562
2573
|
if (onlyOn === 'desktop') {
|
|
2563
2574
|
style.backgroundImage = generateGradient(gradients.bg_rgb, 'mediaBlockBottom');
|
|
@@ -2573,27 +2584,27 @@ var RelatedRichBlock = function RelatedRichBlock(_ref) {
|
|
|
2573
2584
|
},
|
|
2574
2585
|
ref: ref
|
|
2575
2586
|
}, layout === 'rich' && React.createElement(React.Fragment, null, React.createElement("div", {
|
|
2576
|
-
className: styles$
|
|
2587
|
+
className: styles$D.overlay,
|
|
2577
2588
|
style: style
|
|
2578
2589
|
}), React.createElement("div", {
|
|
2579
|
-
className: styles$
|
|
2590
|
+
className: styles$D.overlayHeader,
|
|
2580
2591
|
style: styleHeader
|
|
2581
2592
|
})), React.createElement("div", {
|
|
2582
|
-
className: styles$
|
|
2593
|
+
className: styles$D.tag
|
|
2583
2594
|
}, React.createElement(Tag, {
|
|
2584
2595
|
size: "small",
|
|
2585
2596
|
theme: "inherit",
|
|
2586
2597
|
styleContext: "richRelated"
|
|
2587
2598
|
}, tag)), React.createElement("div", {
|
|
2588
|
-
className: styles$
|
|
2599
|
+
className: styles$D.cover
|
|
2589
2600
|
}, React.createElement("div", {
|
|
2590
|
-
className: styles$
|
|
2601
|
+
className: styles$D.picture
|
|
2591
2602
|
}, React.createElement(Image, {
|
|
2592
2603
|
optimized: urls,
|
|
2593
2604
|
ratio: ratio,
|
|
2594
2605
|
display: "narrow"
|
|
2595
2606
|
}))), React.createElement("div", {
|
|
2596
|
-
className: styles$
|
|
2607
|
+
className: styles$D.body
|
|
2597
2608
|
}, blocks.map(function (item) {
|
|
2598
2609
|
return React.createElement(RenderBlocks, {
|
|
2599
2610
|
key: item.id,
|
|
@@ -2603,7 +2614,7 @@ var RelatedRichBlock = function RelatedRichBlock(_ref) {
|
|
|
2603
2614
|
})));
|
|
2604
2615
|
};
|
|
2605
2616
|
|
|
2606
|
-
var styles$
|
|
2617
|
+
var styles$E = {"root":"ShopRelatedBlock-module_root__x4vdk","wrapper":"ShopRelatedBlock-module_wrapper__3jQp9","overlay":"ShopRelatedBlock-module_overlay__15S5a","overlayHeader":"ShopRelatedBlock-module_overlayHeader__2IXK-","body":"ShopRelatedBlock-module_body__3ipYj","hasGradient":"ShopRelatedBlock-module_hasGradient__1pghj","picture":"ShopRelatedBlock-module_picture__1bu9H","tag":"ShopRelatedBlock-module_tag__2vTKm","center":"ShopRelatedBlock-module_center__2H85-","title":"ShopRelatedBlock-module_title__1ZIW0","price":"ShopRelatedBlock-module_price__2cVXM","dark":"ShopRelatedBlock-module_dark__3Gfbc","light":"ShopRelatedBlock-module_light__1y8Qy","mobile":"ShopRelatedBlock-module_mobile__AleU0","desktop":"ShopRelatedBlock-module_desktop__2--zA"};
|
|
2607
2618
|
|
|
2608
2619
|
/* eslint-disable react/jsx-no-target-blank */
|
|
2609
2620
|
var ShopRelatedBlock = function ShopRelatedBlock(_ref) {
|
|
@@ -2642,16 +2653,16 @@ var ShopRelatedBlock = function ShopRelatedBlock(_ref) {
|
|
|
2642
2653
|
postMessage('productRelated', url, 'click');
|
|
2643
2654
|
};
|
|
2644
2655
|
|
|
2645
|
-
var classNames = [[styles$
|
|
2656
|
+
var classNames = [[styles$E.root, true], [styles$E.hasGradient, !!gradients], [styles$E[onlyOn], !!onlyOn && !!styles$E[onlyOn]]];
|
|
2646
2657
|
|
|
2647
2658
|
if (styleContext) {
|
|
2648
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
2659
|
+
classNames = makeStyleContext(classNames, styleContext, styles$E);
|
|
2649
2660
|
}
|
|
2650
2661
|
|
|
2651
2662
|
if (gradients) {
|
|
2652
2663
|
styleHeader.backgroundImage = generateGradient(gradients.bg_rgb, 'mediaBlockTop');
|
|
2653
2664
|
var theme = [gradients.text_rgb === '0,0,0' ? 'dark' : 'light'];
|
|
2654
|
-
classNames = makeStyleContext(classNames, theme, styles$
|
|
2665
|
+
classNames = makeStyleContext(classNames, theme, styles$E);
|
|
2655
2666
|
|
|
2656
2667
|
if (onlyOn === 'desktop') {
|
|
2657
2668
|
style.backgroundImage = generateGradient(gradients.bg_rgb, 'mediaBlockBottom');
|
|
@@ -2668,31 +2679,31 @@ var ShopRelatedBlock = function ShopRelatedBlock(_ref) {
|
|
|
2668
2679
|
},
|
|
2669
2680
|
ref: ref
|
|
2670
2681
|
}, layout === 'rich' && React.createElement(React.Fragment, null, React.createElement("div", {
|
|
2671
|
-
className: styles$
|
|
2682
|
+
className: styles$E.overlay,
|
|
2672
2683
|
style: style
|
|
2673
2684
|
}), React.createElement("div", {
|
|
2674
|
-
className: styles$
|
|
2685
|
+
className: styles$E.overlayHeader,
|
|
2675
2686
|
style: styleHeader
|
|
2676
2687
|
})), React.createElement("div", {
|
|
2677
|
-
className: styles$
|
|
2688
|
+
className: styles$E.tag
|
|
2678
2689
|
}, React.createElement(Tag, {
|
|
2679
2690
|
size: "small",
|
|
2680
2691
|
theme: "inherit",
|
|
2681
2692
|
styleContext: "richRelated"
|
|
2682
2693
|
}, tag)), React.createElement("div", {
|
|
2683
|
-
className: styles$
|
|
2694
|
+
className: styles$E.cover
|
|
2684
2695
|
}, React.createElement("div", {
|
|
2685
|
-
className: styles$
|
|
2696
|
+
className: styles$E.picture
|
|
2686
2697
|
}, React.createElement(Image, {
|
|
2687
2698
|
optimized: urls,
|
|
2688
2699
|
ratio: ratio,
|
|
2689
2700
|
display: "narrow"
|
|
2690
2701
|
}))), React.createElement("div", {
|
|
2691
|
-
className: styles$
|
|
2702
|
+
className: styles$E.body
|
|
2692
2703
|
}, React.createElement("h2", {
|
|
2693
|
-
className: styles$
|
|
2704
|
+
className: styles$E.title
|
|
2694
2705
|
}, firstTitle, React.createElement("span", {
|
|
2695
|
-
className: styles$
|
|
2706
|
+
className: styles$E.price
|
|
2696
2707
|
}, secondTitle))));
|
|
2697
2708
|
};
|
|
2698
2709
|
|
|
@@ -2777,40 +2788,62 @@ var RawHtmlBlock = function RawHtmlBlock(_ref) {
|
|
|
2777
2788
|
}
|
|
2778
2789
|
};
|
|
2779
2790
|
|
|
2780
|
-
var styles$
|
|
2791
|
+
var styles$F = {"root":"ToolbarButton-module_root__xN-fq","isDark":"ToolbarButton-module_isDark__2q5U7","dark":"ToolbarButton-module_dark__GrIOr","bookmark":"ToolbarButton-module_bookmark__3369b","isActive":"ToolbarButton-module_isActive__3NLAE","icon":"ToolbarButton-module_icon__4wCid","text":"ToolbarButton-module_text__32m6s"};
|
|
2781
2792
|
|
|
2782
2793
|
var ToolbarButton = function ToolbarButton(_ref) {
|
|
2783
|
-
var
|
|
2784
|
-
type = _ref.type,
|
|
2794
|
+
var type = _ref.type,
|
|
2785
2795
|
theme = _ref.theme,
|
|
2786
2796
|
isActive = _ref.isActive,
|
|
2787
2797
|
_ref$lang = _ref.lang,
|
|
2788
2798
|
lang = _ref$lang === void 0 ? 'ru' : _ref$lang,
|
|
2799
|
+
text = _ref.text,
|
|
2789
2800
|
icon = _ref.icon,
|
|
2790
2801
|
_onClick = _ref.onClick;
|
|
2791
|
-
var classNames = [[styles$
|
|
2802
|
+
var classNames = [[styles$F.root, true], [styles$F[type], !!styles$F[type]], [styles$F[theme], !!styles$F[theme] && !!theme], [styles$F.isActive, !!isActive]];
|
|
2792
2803
|
var label = SocialLabels[lang][type];
|
|
2793
|
-
return React.createElement("
|
|
2794
|
-
className: toolbarStyles.item
|
|
2795
|
-
}, React.createElement("button", {
|
|
2804
|
+
return React.createElement("button", {
|
|
2796
2805
|
"data-testid": "toolbar-button",
|
|
2797
2806
|
className: makeClassName(classNames),
|
|
2798
2807
|
type: "button",
|
|
2799
|
-
onClick: function onClick() {
|
|
2800
|
-
return _onClick(type);
|
|
2808
|
+
onClick: function onClick(event) {
|
|
2809
|
+
return _onClick(event, type);
|
|
2801
2810
|
}
|
|
2802
2811
|
}, icon && React.createElement("div", {
|
|
2803
|
-
className: styles$
|
|
2812
|
+
className: styles$F.icon
|
|
2804
2813
|
}, React.createElement(SvgSymbol, {
|
|
2805
2814
|
size: "medium",
|
|
2806
2815
|
icon: icon,
|
|
2807
2816
|
styleContext: "isInToolbar"
|
|
2808
2817
|
})), React.createElement("span", {
|
|
2809
|
-
className: styles$
|
|
2810
|
-
}, label)
|
|
2811
|
-
|
|
2812
|
-
|
|
2818
|
+
className: styles$F.text
|
|
2819
|
+
}, text || label));
|
|
2820
|
+
};
|
|
2821
|
+
|
|
2822
|
+
var styles$G = {"root":"Tooltip-module_root__2ErmQ","isCenterBottom":"Tooltip-module_isCenterBottom__3qg-Z","isLeftBottom":"Tooltip-module_isLeftBottom__2d0hw","isCenterTop":"Tooltip-module_isCenterTop__3gKNn","isLeftTop":"Tooltip-module_isLeftTop__2_Evh","body":"Tooltip-module_body__es5-o","footer":"Tooltip-module_footer__1nYQ1"};
|
|
2823
|
+
|
|
2824
|
+
var capitalizeFirstLetter = function capitalizeFirstLetter(string) {
|
|
2825
|
+
return string.charAt(0).toUpperCase() + string.slice(1);
|
|
2826
|
+
};
|
|
2827
|
+
|
|
2828
|
+
var Tooltip = function Tooltip(_ref) {
|
|
2829
|
+
var children = _ref.children,
|
|
2830
|
+
position = _ref.position;
|
|
2831
|
+
var x = position[0],
|
|
2832
|
+
y = position[1];
|
|
2833
|
+
var positionClass = "is" + capitalizeFirstLetter(x) + capitalizeFirstLetter(y);
|
|
2834
|
+
return React.createElement("div", {
|
|
2835
|
+
className: makeClassName([[styles$G.root, true], [styles$G[positionClass], true]])
|
|
2836
|
+
}, React.createElement("div", {
|
|
2837
|
+
className: styles$G.body
|
|
2838
|
+
}, children));
|
|
2839
|
+
};
|
|
2840
|
+
|
|
2841
|
+
var TooltipFooter = function TooltipFooter(_ref) {
|
|
2842
|
+
var children = _ref.children;
|
|
2843
|
+
return React.createElement("div", {
|
|
2844
|
+
className: styles$G.footer
|
|
2845
|
+
}, children);
|
|
2813
2846
|
};
|
|
2814
2847
|
|
|
2815
|
-
export { AnnouncementInText, BookmarkButton, Button, CardTitle, ChapterBlock, Cover, DocumentItemsCount, DonatesTeaser, DotsOnImage, Dropdown, EmbedBlockContainer, Footnote, GroupedBlock, HalfBlock, Image, ImportantLead, Lazy, ListBlock, MaterialNote, MaterialTitle, MediaCaption, Menu, Meta, MetaItem, MetaItemLive, Popover, Primary, QuoteBlock, RawHtmlBlock, RelatedBlock, RelatedRichBlock, RenderBlocks, RichTitle, Secondary, SensitiveBlock, ShopRelatedBlock, SimpleBlock, SimpleTitle, SourceBlock, Spoiler, SvgSymbol, Switcher, Table, Tag, Timestamp, Toolbar, ToolbarButton };
|
|
2848
|
+
export { AnnouncementInText, BookmarkButton, Button, ButtonLoader, CardTitle, ChapterBlock, Cover, DocumentItemsCount, DonatesTeaser, DotsOnImage, Dropdown, EmbedBlockContainer, Footnote, GroupedBlock, HalfBlock, Image, ImportantLead, Lazy, ListBlock, MaterialNote, MaterialTitle, MediaCaption, Menu, Meta, MetaItem, MetaItemLive, Popover, Primary, QuoteBlock, RawHtmlBlock, RelatedBlock, RelatedRichBlock, RenderBlocks, RichTitle, Secondary, SensitiveBlock, ShopRelatedBlock, SimpleBlock, SimpleTitle, SourceBlock, Spoiler, SvgSymbol, Switcher, Table, Tag, Timestamp, Toolbar, ToolbarButton, ToolbarItem, Tooltip, TooltipFooter };
|
|
2816
2849
|
//# sourceMappingURL=ui-kit-2.esm.js.map
|