@meduza/ui-kit-2 0.2.37 → 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 -0
- package/dist/index.d.ts +1 -0
- package/dist/ui-kit-2.cjs.development.js +203 -162
- 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 +200 -163
- package/dist/ui-kit-2.esm.js.map +1 -1
- package/dist/ui-kit.css +3390 -3305
- 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 +17 -16
- 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 +2 -0
- 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,
|
|
@@ -378,6 +384,7 @@ var SocialLabels = {
|
|
|
378
384
|
fb: 'Фейсбук',
|
|
379
385
|
tw: 'Твиттер',
|
|
380
386
|
pdf: 'PDF',
|
|
387
|
+
unblock: 'Magic link',
|
|
381
388
|
bookmark: 'В закладки',
|
|
382
389
|
reaction: 'Напишите нам'
|
|
383
390
|
},
|
|
@@ -386,6 +393,7 @@ var SocialLabels = {
|
|
|
386
393
|
fb: 'Fb',
|
|
387
394
|
tw: 'Twitter',
|
|
388
395
|
pdf: 'PDF',
|
|
396
|
+
unblock: 'Magic link',
|
|
389
397
|
bookmark: 'Add to bookmarks'
|
|
390
398
|
}
|
|
391
399
|
};
|
|
@@ -1022,26 +1030,33 @@ var Dropdown = function Dropdown(_ref2) {
|
|
|
1022
1030
|
}, children);
|
|
1023
1031
|
};
|
|
1024
1032
|
|
|
1025
|
-
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
|
+
};
|
|
1026
1041
|
|
|
1027
1042
|
var Toolbar = function Toolbar(_ref) {
|
|
1028
1043
|
var children = _ref.children,
|
|
1029
1044
|
styleContext = _ref.styleContext;
|
|
1030
|
-
var classNames = [[
|
|
1045
|
+
var classNames = [[styles$f.root, true]];
|
|
1031
1046
|
|
|
1032
1047
|
if (styleContext) {
|
|
1033
|
-
classNames = makeStyleContext(classNames, styleContext,
|
|
1048
|
+
classNames = makeStyleContext(classNames, styleContext, styles$f);
|
|
1034
1049
|
}
|
|
1035
1050
|
|
|
1036
1051
|
return React.createElement("div", {
|
|
1037
1052
|
"data-testid": "toolbar",
|
|
1038
1053
|
className: makeClassName(classNames)
|
|
1039
1054
|
}, React.createElement("ul", {
|
|
1040
|
-
className:
|
|
1055
|
+
className: styles$f.list
|
|
1041
1056
|
}, children));
|
|
1042
1057
|
};
|
|
1043
1058
|
|
|
1044
|
-
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"};
|
|
1045
1060
|
|
|
1046
1061
|
var Meta = function Meta(_ref) {
|
|
1047
1062
|
var hasSource = _ref.hasSource,
|
|
@@ -1049,10 +1064,10 @@ var Meta = function Meta(_ref) {
|
|
|
1049
1064
|
children = _ref.children,
|
|
1050
1065
|
onlyOn = _ref.onlyOn,
|
|
1051
1066
|
styleContext = _ref.styleContext;
|
|
1052
|
-
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]];
|
|
1053
1068
|
|
|
1054
1069
|
if (styleContext) {
|
|
1055
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
1070
|
+
classNames = makeStyleContext(classNames, styleContext, styles$g);
|
|
1056
1071
|
}
|
|
1057
1072
|
|
|
1058
1073
|
return React.createElement("div", {
|
|
@@ -1061,7 +1076,7 @@ var Meta = function Meta(_ref) {
|
|
|
1061
1076
|
}, children);
|
|
1062
1077
|
};
|
|
1063
1078
|
|
|
1064
|
-
var styles$
|
|
1079
|
+
var styles$h = {"root":"Timestamp-module_root__coOvT"};
|
|
1065
1080
|
|
|
1066
1081
|
var Timestamp = function Timestamp(_ref) {
|
|
1067
1082
|
var publishedAt = _ref.publishedAt,
|
|
@@ -1087,7 +1102,7 @@ var Timestamp = function Timestamp(_ref) {
|
|
|
1087
1102
|
return React.createElement("time", {
|
|
1088
1103
|
suppressHydrationWarning: true,
|
|
1089
1104
|
"data-testid": "timestamp",
|
|
1090
|
-
className: styles$
|
|
1105
|
+
className: styles$h.root
|
|
1091
1106
|
}, published);
|
|
1092
1107
|
};
|
|
1093
1108
|
|
|
@@ -1154,7 +1169,7 @@ var DangerousHTML = function DangerousHTML(_ref) {
|
|
|
1154
1169
|
}));
|
|
1155
1170
|
};
|
|
1156
1171
|
|
|
1157
|
-
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_"};
|
|
1158
1173
|
|
|
1159
1174
|
var EmbedGif = function EmbedGif(_ref) {
|
|
1160
1175
|
var gif = _ref.gif,
|
|
@@ -1200,9 +1215,9 @@ var EmbedGif = function EmbedGif(_ref) {
|
|
|
1200
1215
|
};
|
|
1201
1216
|
}, []);
|
|
1202
1217
|
return React.createElement("div", {
|
|
1203
|
-
className: styles$
|
|
1218
|
+
className: styles$i.figure
|
|
1204
1219
|
}, React.createElement("div", {
|
|
1205
|
-
className: styles$
|
|
1220
|
+
className: styles$i.objectWrap,
|
|
1206
1221
|
style: style,
|
|
1207
1222
|
"data-frozen": videoFrozen
|
|
1208
1223
|
}, React.createElement("video", {
|
|
@@ -1268,7 +1283,7 @@ var EmbedBlock = function EmbedBlock(_ref) {
|
|
|
1268
1283
|
case 'image':
|
|
1269
1284
|
{
|
|
1270
1285
|
return React.createElement("div", {
|
|
1271
|
-
className: styles$
|
|
1286
|
+
className: styles$i.figure
|
|
1272
1287
|
}, React.createElement(Image, {
|
|
1273
1288
|
source: !optimized && [small, large],
|
|
1274
1289
|
optimized: block.data.optimized,
|
|
@@ -1284,7 +1299,7 @@ var EmbedBlock = function EmbedBlock(_ref) {
|
|
|
1284
1299
|
case 'game_embed':
|
|
1285
1300
|
{
|
|
1286
1301
|
return React.createElement("div", {
|
|
1287
|
-
className: styles$
|
|
1302
|
+
className: styles$i.gameEmbed
|
|
1288
1303
|
}, React.createElement("iframe", {
|
|
1289
1304
|
src: block.data.game_src,
|
|
1290
1305
|
id: block.data.game_id,
|
|
@@ -1295,7 +1310,7 @@ var EmbedBlock = function EmbedBlock(_ref) {
|
|
|
1295
1310
|
case 'dots_on_image':
|
|
1296
1311
|
{
|
|
1297
1312
|
return React.createElement("div", {
|
|
1298
|
-
className: styles$
|
|
1313
|
+
className: styles$i.figure
|
|
1299
1314
|
}, React.createElement(DotsOnImage, {
|
|
1300
1315
|
block: data
|
|
1301
1316
|
}));
|
|
@@ -1304,12 +1319,12 @@ var EmbedBlock = function EmbedBlock(_ref) {
|
|
|
1304
1319
|
default:
|
|
1305
1320
|
{
|
|
1306
1321
|
return React.createElement("div", {
|
|
1307
|
-
className: styles$
|
|
1322
|
+
className: styles$i.object
|
|
1308
1323
|
}, React.createElement("div", {
|
|
1309
|
-
className: styles$
|
|
1324
|
+
className: styles$i.wrapper,
|
|
1310
1325
|
style: style
|
|
1311
1326
|
}, React.createElement(DangerousHTML, {
|
|
1312
|
-
className: styles$
|
|
1327
|
+
className: styles$i.objectWrap,
|
|
1313
1328
|
html: html
|
|
1314
1329
|
})));
|
|
1315
1330
|
}
|
|
@@ -1321,31 +1336,31 @@ var EmbedBlock = function EmbedBlock(_ref) {
|
|
|
1321
1336
|
style.height = 0;
|
|
1322
1337
|
}
|
|
1323
1338
|
|
|
1324
|
-
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,
|
|
1325
1340
|
// чтобы не применились лишние модификаторы
|
|
1326
1341
|
// TODO: в w6 модификаторы должны передаваться явно
|
|
1327
1342
|
|
|
1328
1343
|
if (styleContext && Array.isArray(styleContext)) {
|
|
1329
1344
|
var filteredContext = styleContext.filter(function (key) {
|
|
1330
|
-
return key.startsWith('isIn') && styles$
|
|
1345
|
+
return key.startsWith('isIn') && styles$i[key];
|
|
1331
1346
|
}).reduce(function (acc, key) {
|
|
1332
1347
|
acc.push(key);
|
|
1333
1348
|
return acc;
|
|
1334
1349
|
}, []);
|
|
1335
|
-
classNames = makeStyleContext(classNames, filteredContext, styles$
|
|
1350
|
+
classNames = makeStyleContext(classNames, filteredContext, styles$i);
|
|
1336
1351
|
}
|
|
1337
1352
|
|
|
1338
1353
|
return React.createElement("figure", {
|
|
1339
1354
|
className: makeClassName(classNames)
|
|
1340
1355
|
}, children && React.createElement("div", {
|
|
1341
|
-
className: styles$
|
|
1356
|
+
className: styles$i.object
|
|
1342
1357
|
}, React.createElement("div", {
|
|
1343
|
-
className: styles$
|
|
1358
|
+
className: styles$i.wrapper,
|
|
1344
1359
|
style: style
|
|
1345
1360
|
}, React.createElement("div", {
|
|
1346
|
-
className: styles$
|
|
1361
|
+
className: styles$i.objectWrap
|
|
1347
1362
|
}, children))), !children && renderEmbed(style), cc === 'default' && React.createElement("figcaption", null, renderCC()), cc === 'button' && React.createElement("button", {
|
|
1348
|
-
className: styles$
|
|
1363
|
+
className: styles$i.control,
|
|
1349
1364
|
type: "button",
|
|
1350
1365
|
"aria-label": "Open",
|
|
1351
1366
|
onClick: function onClick() {
|
|
@@ -1421,15 +1436,15 @@ var EmbedBlockContainer = function EmbedBlockContainer(_ref) {
|
|
|
1421
1436
|
});
|
|
1422
1437
|
};
|
|
1423
1438
|
|
|
1424
|
-
var styles$
|
|
1439
|
+
var styles$j = {"root":"QuoteBlock-module_root__2GrcC","center":"QuoteBlock-module_center__cTFNy"};
|
|
1425
1440
|
|
|
1426
1441
|
var QuoteBlock = function QuoteBlock(_ref) {
|
|
1427
1442
|
var data = _ref.block.data,
|
|
1428
1443
|
styleContext = _ref.styleContext;
|
|
1429
|
-
var classNames = [[styles$
|
|
1444
|
+
var classNames = [[styles$j.root, true]];
|
|
1430
1445
|
|
|
1431
1446
|
if (styleContext) {
|
|
1432
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
1447
|
+
classNames = makeStyleContext(classNames, styleContext, styles$j);
|
|
1433
1448
|
}
|
|
1434
1449
|
|
|
1435
1450
|
return React.createElement("div", {
|
|
@@ -1442,7 +1457,7 @@ var QuoteBlock = function QuoteBlock(_ref) {
|
|
|
1442
1457
|
}));
|
|
1443
1458
|
};
|
|
1444
1459
|
|
|
1445
|
-
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"};
|
|
1446
1461
|
|
|
1447
1462
|
var CardTitle = function CardTitle(_ref) {
|
|
1448
1463
|
var _ref$block$data = _ref.block.data,
|
|
@@ -1452,15 +1467,15 @@ var CardTitle = function CardTitle(_ref) {
|
|
|
1452
1467
|
styleContext = _ref.styleContext;
|
|
1453
1468
|
return React.createElement("div", {
|
|
1454
1469
|
"data-testid": "card-title",
|
|
1455
|
-
className: makeClassName([[styles$
|
|
1470
|
+
className: makeClassName([[styles$k.root, true], [styles$k[onlyOn], !!onlyOn], [styles$k[styleContext], !!styleContext && !!styles$k[styleContext]]])
|
|
1456
1471
|
}, React.createElement("div", {
|
|
1457
|
-
className: styles$
|
|
1472
|
+
className: styles$k.index
|
|
1458
1473
|
}, index), React.createElement("h3", {
|
|
1459
|
-
className: styles$
|
|
1474
|
+
className: styles$k.title
|
|
1460
1475
|
}, text));
|
|
1461
1476
|
};
|
|
1462
1477
|
|
|
1463
|
-
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"};
|
|
1464
1479
|
|
|
1465
1480
|
var ChapterBlock = function ChapterBlock(_ref) {
|
|
1466
1481
|
var _ref$block = _ref.block,
|
|
@@ -1469,9 +1484,9 @@ var ChapterBlock = function ChapterBlock(_ref) {
|
|
|
1469
1484
|
styleContext = _ref.styleContext;
|
|
1470
1485
|
return React.createElement("div", {
|
|
1471
1486
|
"data-testid": "chapter-block",
|
|
1472
|
-
className: makeClassName([[styles$
|
|
1487
|
+
className: makeClassName([[styles$l.root, true], [styles$l[onlyOn], !!onlyOn]])
|
|
1473
1488
|
}, React.createElement("div", {
|
|
1474
|
-
className: makeClassName([[styles$
|
|
1489
|
+
className: makeClassName([[styles$l.subtitle, true], [styles$l[styleContext], !!styleContext && !!styles$l[styleContext]]]),
|
|
1475
1490
|
dangerouslySetInnerHTML: {
|
|
1476
1491
|
__html: data
|
|
1477
1492
|
}
|
|
@@ -1489,17 +1504,17 @@ var generateGradient = function generateGradient(color, type) {
|
|
|
1489
1504
|
return "linear-gradient(-180deg, " + gradient + ")";
|
|
1490
1505
|
};
|
|
1491
1506
|
|
|
1492
|
-
var styles$
|
|
1507
|
+
var styles$m = {"root":"SimpleTitle-module_root__2jVQN","mobile":"SimpleTitle-module_mobile__11gBz","desktop":"SimpleTitle-module_desktop__3yXgy"};
|
|
1493
1508
|
|
|
1494
1509
|
var SimpleTitle = function SimpleTitle(_ref) {
|
|
1495
1510
|
var _ref$block = _ref.block,
|
|
1496
1511
|
first = _ref$block.data.first,
|
|
1497
1512
|
onlyOn = _ref$block.only_on,
|
|
1498
1513
|
styleContext = _ref.styleContext;
|
|
1499
|
-
var classNames = [[styles$
|
|
1514
|
+
var classNames = [[styles$m.root, true], [styles$m[onlyOn], true]];
|
|
1500
1515
|
|
|
1501
1516
|
if (styleContext) {
|
|
1502
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
1517
|
+
classNames = makeStyleContext(classNames, styleContext, styles$m);
|
|
1503
1518
|
}
|
|
1504
1519
|
|
|
1505
1520
|
return React.createElement("h1", {
|
|
@@ -1508,7 +1523,7 @@ var SimpleTitle = function SimpleTitle(_ref) {
|
|
|
1508
1523
|
}, first);
|
|
1509
1524
|
};
|
|
1510
1525
|
|
|
1511
|
-
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"};
|
|
1512
1527
|
|
|
1513
1528
|
var RichTitle = function RichTitle(_ref) {
|
|
1514
1529
|
var _ref$block = _ref.block,
|
|
@@ -1520,10 +1535,10 @@ var RichTitle = function RichTitle(_ref) {
|
|
|
1520
1535
|
_ref$block$data$as = _ref$block$data.as,
|
|
1521
1536
|
TagName = _ref$block$data$as === void 0 ? 'h1' : _ref$block$data$as,
|
|
1522
1537
|
styleContext = _ref.styleContext;
|
|
1523
|
-
var classNames = [[styles$
|
|
1538
|
+
var classNames = [[styles$n.root, true], [styles$n[onlyOn], true], [styles$n.featured, !!featured]];
|
|
1524
1539
|
|
|
1525
1540
|
if (styleContext) {
|
|
1526
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
1541
|
+
classNames = makeStyleContext(classNames, styleContext, styles$n);
|
|
1527
1542
|
}
|
|
1528
1543
|
|
|
1529
1544
|
return React.createElement(TagName, {
|
|
@@ -1532,7 +1547,7 @@ var RichTitle = function RichTitle(_ref) {
|
|
|
1532
1547
|
}, first, second && React.createElement("span", null, " ", second));
|
|
1533
1548
|
};
|
|
1534
1549
|
|
|
1535
|
-
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"};
|
|
1536
1551
|
|
|
1537
1552
|
var SimpleBlock = function SimpleBlock(_ref) {
|
|
1538
1553
|
var _ref$block = _ref.block,
|
|
@@ -1541,10 +1556,10 @@ var SimpleBlock = function SimpleBlock(_ref) {
|
|
|
1541
1556
|
onlyOn = _ref$block.only_on,
|
|
1542
1557
|
styleContext = _ref.styleContext;
|
|
1543
1558
|
var TagName;
|
|
1544
|
-
var classNames = [[styles$
|
|
1559
|
+
var classNames = [[styles$o[type], !!type && !!styles$o[type]], [styles$o[onlyOn], true]];
|
|
1545
1560
|
|
|
1546
1561
|
if (styleContext) {
|
|
1547
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
1562
|
+
classNames = makeStyleContext(classNames, styleContext, styles$o);
|
|
1548
1563
|
}
|
|
1549
1564
|
|
|
1550
1565
|
switch (type) {
|
|
@@ -1580,7 +1595,7 @@ var SimpleBlock = function SimpleBlock(_ref) {
|
|
|
1580
1595
|
});
|
|
1581
1596
|
};
|
|
1582
1597
|
|
|
1583
|
-
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"};
|
|
1584
1599
|
|
|
1585
1600
|
var ListBlock = function ListBlock(_ref) {
|
|
1586
1601
|
var _ref$block = _ref.block,
|
|
@@ -1589,10 +1604,10 @@ var ListBlock = function ListBlock(_ref) {
|
|
|
1589
1604
|
onlyOn = _ref$block.only_on,
|
|
1590
1605
|
styleContext = _ref.styleContext;
|
|
1591
1606
|
var TagName = type;
|
|
1592
|
-
var classNames = [[styles$
|
|
1607
|
+
var classNames = [[styles$p.root, true], [styles$p[onlyOn], true], [styles$p[type], !!type && !!styles$p[type]]];
|
|
1593
1608
|
|
|
1594
1609
|
if (styleContext) {
|
|
1595
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
1610
|
+
classNames = makeStyleContext(classNames, styleContext, styles$p);
|
|
1596
1611
|
}
|
|
1597
1612
|
|
|
1598
1613
|
return React.createElement(TagName, {
|
|
@@ -1608,7 +1623,7 @@ var ListBlock = function ListBlock(_ref) {
|
|
|
1608
1623
|
}));
|
|
1609
1624
|
};
|
|
1610
1625
|
|
|
1611
|
-
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"};
|
|
1612
1627
|
|
|
1613
1628
|
var RelatedBlock = function RelatedBlock(_ref) {
|
|
1614
1629
|
var _ref$block = _ref.block,
|
|
@@ -1617,32 +1632,32 @@ var RelatedBlock = function RelatedBlock(_ref) {
|
|
|
1617
1632
|
related = _ref$block$data.related,
|
|
1618
1633
|
onlyOn = _ref$block.only_on,
|
|
1619
1634
|
styleContext = _ref.styleContext;
|
|
1620
|
-
var classNames = [[styles$
|
|
1635
|
+
var classNames = [[styles$q.root, true], [styles$q[onlyOn], true]];
|
|
1621
1636
|
|
|
1622
1637
|
if (styleContext) {
|
|
1623
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
1638
|
+
classNames = makeStyleContext(classNames, styleContext, styles$q);
|
|
1624
1639
|
}
|
|
1625
1640
|
|
|
1626
1641
|
return React.createElement("div", {
|
|
1627
1642
|
"data-testid": "related-block",
|
|
1628
1643
|
className: makeClassName(classNames)
|
|
1629
1644
|
}, React.createElement("h3", {
|
|
1630
|
-
className: styles$
|
|
1645
|
+
className: styles$q.header
|
|
1631
1646
|
}, title), React.createElement("ul", {
|
|
1632
|
-
className: styles$
|
|
1647
|
+
className: styles$q.items
|
|
1633
1648
|
}, related.map(function (item, index) {
|
|
1634
1649
|
return React.createElement("li", {
|
|
1635
1650
|
key: item.id || index,
|
|
1636
|
-
className: styles$
|
|
1651
|
+
className: styles$q[item.layout]
|
|
1637
1652
|
}, React.createElement(Link, {
|
|
1638
1653
|
to: item.full_url || "/" + item.url
|
|
1639
1654
|
}, React.createElement("span", {
|
|
1640
|
-
className: styles$
|
|
1655
|
+
className: styles$q.first
|
|
1641
1656
|
}, item.title), item.second_title && ' ', item.second_title && React.createElement("span", null, item.second_title)));
|
|
1642
1657
|
})));
|
|
1643
1658
|
};
|
|
1644
1659
|
|
|
1645
|
-
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"};
|
|
1646
1661
|
|
|
1647
1662
|
var SourceBlock = function SourceBlock(_ref) {
|
|
1648
1663
|
var _ref$block = _ref.block,
|
|
@@ -1652,10 +1667,10 @@ var SourceBlock = function SourceBlock(_ref) {
|
|
|
1652
1667
|
origin = _ref$block$data.origin,
|
|
1653
1668
|
url = _ref$block$data.url,
|
|
1654
1669
|
styleContext = _ref.styleContext;
|
|
1655
|
-
var classNames = [[styles$
|
|
1670
|
+
var classNames = [[styles$r.root, true], [styles$r[onlyOn], true]];
|
|
1656
1671
|
|
|
1657
1672
|
if (styleContext) {
|
|
1658
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
1673
|
+
classNames = makeStyleContext(classNames, styleContext, styles$r);
|
|
1659
1674
|
}
|
|
1660
1675
|
|
|
1661
1676
|
return React.createElement("blockquote", {
|
|
@@ -1663,7 +1678,7 @@ var SourceBlock = function SourceBlock(_ref) {
|
|
|
1663
1678
|
cite: url,
|
|
1664
1679
|
className: makeClassName(classNames)
|
|
1665
1680
|
}, React.createElement("a", {
|
|
1666
|
-
className: styles$
|
|
1681
|
+
className: styles$r.text,
|
|
1667
1682
|
href: url,
|
|
1668
1683
|
target: "_blank",
|
|
1669
1684
|
rel: "noopener noreferrer"
|
|
@@ -1675,11 +1690,11 @@ var SourceBlock = function SourceBlock(_ref) {
|
|
|
1675
1690
|
}
|
|
1676
1691
|
});
|
|
1677
1692
|
}), React.createElement("footer", null, React.createElement("cite", {
|
|
1678
|
-
className: styles$
|
|
1693
|
+
className: styles$r.origin
|
|
1679
1694
|
}, origin))));
|
|
1680
1695
|
};
|
|
1681
1696
|
|
|
1682
|
-
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"};
|
|
1683
1698
|
|
|
1684
1699
|
var SensitiveBlock = function SensitiveBlock(_ref) {
|
|
1685
1700
|
var block = _ref.block,
|
|
@@ -1699,11 +1714,11 @@ var SensitiveBlock = function SensitiveBlock(_ref) {
|
|
|
1699
1714
|
isVisible(true);
|
|
1700
1715
|
};
|
|
1701
1716
|
|
|
1702
|
-
var classNames = [[styles$
|
|
1717
|
+
var classNames = [[styles$s.root, true], [styles$s.visible, visible], [styles$s[display], display && styles$s[display]]];
|
|
1703
1718
|
var context = ['isInSensitiveBlock'];
|
|
1704
1719
|
|
|
1705
1720
|
if (styleContext) {
|
|
1706
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
1721
|
+
classNames = makeStyleContext(classNames, styleContext, styles$s);
|
|
1707
1722
|
context = [].concat(styleContext, ['isInSensitiveBlock']);
|
|
1708
1723
|
}
|
|
1709
1724
|
|
|
@@ -1711,32 +1726,32 @@ var SensitiveBlock = function SensitiveBlock(_ref) {
|
|
|
1711
1726
|
"data-testid": "sensitive-block",
|
|
1712
1727
|
className: makeClassName(classNames)
|
|
1713
1728
|
}, React.createElement("div", {
|
|
1714
|
-
className: styles$
|
|
1729
|
+
className: styles$s.container
|
|
1715
1730
|
}, React.createElement("div", {
|
|
1716
|
-
className: styles$
|
|
1731
|
+
className: styles$s.overlay,
|
|
1717
1732
|
style: {
|
|
1718
1733
|
backgroundImage: "url(" + blurredImage + ")"
|
|
1719
1734
|
}
|
|
1720
1735
|
}, React.createElement("div", {
|
|
1721
|
-
className: styles$
|
|
1736
|
+
className: styles$s.content
|
|
1722
1737
|
}, React.createElement("p", {
|
|
1723
1738
|
dangerouslySetInnerHTML: {
|
|
1724
1739
|
__html: block.title
|
|
1725
1740
|
}
|
|
1726
1741
|
}), React.createElement("div", {
|
|
1727
|
-
className: styles$
|
|
1742
|
+
className: styles$s.button
|
|
1728
1743
|
}, React.createElement(Button, {
|
|
1729
1744
|
onClick: function onClick() {
|
|
1730
1745
|
return handleClick();
|
|
1731
1746
|
},
|
|
1732
1747
|
theme: "light"
|
|
1733
1748
|
}, block.button.text)))), React.createElement("div", {
|
|
1734
|
-
className: styles$
|
|
1749
|
+
className: styles$s.media
|
|
1735
1750
|
}, React.createElement(EmbedBlockContainer, {
|
|
1736
1751
|
block: block.item,
|
|
1737
1752
|
styleContext: context
|
|
1738
1753
|
}))), cc && React.createElement("figcaption", {
|
|
1739
|
-
className: styles$
|
|
1754
|
+
className: styles$s.figcaption
|
|
1740
1755
|
}, React.createElement(MediaCaption, {
|
|
1741
1756
|
credit: credit,
|
|
1742
1757
|
caption: caption,
|
|
@@ -1744,7 +1759,7 @@ var SensitiveBlock = function SensitiveBlock(_ref) {
|
|
|
1744
1759
|
})));
|
|
1745
1760
|
};
|
|
1746
1761
|
|
|
1747
|
-
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"};
|
|
1748
1763
|
|
|
1749
1764
|
var GroupedBlock = function GroupedBlock(_ref) {
|
|
1750
1765
|
var block = _ref.block,
|
|
@@ -1761,21 +1776,21 @@ var GroupedBlock = function GroupedBlock(_ref) {
|
|
|
1761
1776
|
var sumWidth = normalizedBoxesWidth.reduce(function (sum, x) {
|
|
1762
1777
|
return sum + x;
|
|
1763
1778
|
});
|
|
1764
|
-
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]]];
|
|
1765
1780
|
|
|
1766
1781
|
if (styleContext) {
|
|
1767
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
1782
|
+
classNames = makeStyleContext(classNames, styleContext, styles$t);
|
|
1768
1783
|
}
|
|
1769
1784
|
|
|
1770
1785
|
return React.createElement("div", {
|
|
1771
1786
|
"data-testid": "grouped-block",
|
|
1772
1787
|
className: makeClassName(classNames)
|
|
1773
1788
|
}, React.createElement("div", {
|
|
1774
|
-
className: styles$
|
|
1789
|
+
className: styles$t.items
|
|
1775
1790
|
}, block.data.map(function (item, index) {
|
|
1776
1791
|
var percentWidth = normalizedBoxesWidth[index] / sumWidth * 100;
|
|
1777
1792
|
return React.createElement("div", {
|
|
1778
|
-
className: styles$
|
|
1793
|
+
className: styles$t.item,
|
|
1779
1794
|
key: item.id,
|
|
1780
1795
|
style: {
|
|
1781
1796
|
width: percentWidth + "%"
|
|
@@ -1788,7 +1803,7 @@ var GroupedBlock = function GroupedBlock(_ref) {
|
|
|
1788
1803
|
styleContext: ['isInGroupedBlock']
|
|
1789
1804
|
}));
|
|
1790
1805
|
})), block.cc && React.createElement("figcaption", {
|
|
1791
|
-
className: styles$
|
|
1806
|
+
className: styles$t.figcaption
|
|
1792
1807
|
}, React.createElement(MediaCaption, {
|
|
1793
1808
|
credit: block.credit,
|
|
1794
1809
|
caption: block.caption,
|
|
@@ -1796,32 +1811,32 @@ var GroupedBlock = function GroupedBlock(_ref) {
|
|
|
1796
1811
|
})));
|
|
1797
1812
|
};
|
|
1798
1813
|
|
|
1799
|
-
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"};
|
|
1800
1815
|
|
|
1801
1816
|
var MetaItem = function MetaItem(_ref) {
|
|
1802
1817
|
var hasSource = _ref.hasSource,
|
|
1803
1818
|
type = _ref.type,
|
|
1804
1819
|
children = _ref.children,
|
|
1805
1820
|
bullets = _ref.bullets;
|
|
1806
|
-
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]];
|
|
1807
1822
|
return React.createElement("div", {
|
|
1808
1823
|
"data-testid": "meta-item",
|
|
1809
1824
|
className: makeClassName(classNames)
|
|
1810
1825
|
}, children);
|
|
1811
1826
|
};
|
|
1812
1827
|
|
|
1813
|
-
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"};
|
|
1814
1829
|
|
|
1815
1830
|
var MetaItemLive = function MetaItemLive(_ref) {
|
|
1816
1831
|
var _ref$theme = _ref.theme,
|
|
1817
1832
|
theme = _ref$theme === void 0 ? 'gold' : _ref$theme;
|
|
1818
|
-
var classNames = [[styles$
|
|
1833
|
+
var classNames = [[styles$v.root, true], [styles$v[theme], !!theme && styles$v[theme]]];
|
|
1819
1834
|
return React.createElement("div", {
|
|
1820
1835
|
"data-testid": "meta-item-live",
|
|
1821
1836
|
"data-meta": "live",
|
|
1822
1837
|
className: makeClassName(classNames)
|
|
1823
1838
|
}, React.createElement("div", {
|
|
1824
|
-
className: styles$
|
|
1839
|
+
className: styles$v.frame
|
|
1825
1840
|
}));
|
|
1826
1841
|
};
|
|
1827
1842
|
|
|
@@ -1846,7 +1861,7 @@ var pluralize = function pluralize(number, one, two, five) {
|
|
|
1846
1861
|
return five;
|
|
1847
1862
|
};
|
|
1848
1863
|
|
|
1849
|
-
var styles$
|
|
1864
|
+
var styles$w = {"root":"DocumentItemsCount-module_root__P3q-z","items":"DocumentItemsCount-module_items__3pfxW"};
|
|
1850
1865
|
|
|
1851
1866
|
var DocumentItemsCount = function DocumentItemsCount(_ref) {
|
|
1852
1867
|
var type = _ref.type,
|
|
@@ -1883,9 +1898,9 @@ var DocumentItemsCount = function DocumentItemsCount(_ref) {
|
|
|
1883
1898
|
var itemsCount = items + " " + pluralize(items, i18n[lang][type].one, i18n[lang][type].two, i18n[lang][type].five);
|
|
1884
1899
|
return React.createElement("div", {
|
|
1885
1900
|
"data-testid": "document-items-count",
|
|
1886
|
-
className: styles$
|
|
1901
|
+
className: styles$w.root
|
|
1887
1902
|
}, children, React.createElement("span", {
|
|
1888
|
-
className: styles$
|
|
1903
|
+
className: styles$w.items
|
|
1889
1904
|
}, itemsCount));
|
|
1890
1905
|
};
|
|
1891
1906
|
|
|
@@ -2008,7 +2023,7 @@ var MetaContainer = function MetaContainer(_ref) {
|
|
|
2008
2023
|
icon: isListened ? 'listened' : 'read',
|
|
2009
2024
|
size: "unset"
|
|
2010
2025
|
})), isSlides && lang === 'ru' && React.createElement("div", {
|
|
2011
|
-
className: styles$
|
|
2026
|
+
className: styles$g.bookmark
|
|
2012
2027
|
}, React.createElement(BookmarkButton, {
|
|
2013
2028
|
isInBookmarks: isInBookmarks,
|
|
2014
2029
|
onClick: function onClick() {
|
|
@@ -2017,16 +2032,16 @@ var MetaContainer = function MetaContainer(_ref) {
|
|
|
2017
2032
|
})));
|
|
2018
2033
|
};
|
|
2019
2034
|
|
|
2020
|
-
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"};
|
|
2021
2036
|
|
|
2022
2037
|
var DonatesTeaser = function DonatesTeaser(_ref) {
|
|
2023
2038
|
var styleContext = _ref.styleContext,
|
|
2024
2039
|
_ref$lang = _ref.lang,
|
|
2025
2040
|
lang = _ref$lang === void 0 ? 'ru' : _ref$lang;
|
|
2026
|
-
var classNames = [[styles$
|
|
2041
|
+
var classNames = [[styles$x.root, true], [styles$x[lang], styles$x[lang]]];
|
|
2027
2042
|
|
|
2028
2043
|
if (styleContext) {
|
|
2029
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
2044
|
+
classNames = makeStyleContext(classNames, styleContext, styles$x);
|
|
2030
2045
|
}
|
|
2031
2046
|
|
|
2032
2047
|
var data = {
|
|
@@ -2047,20 +2062,20 @@ var DonatesTeaser = function DonatesTeaser(_ref) {
|
|
|
2047
2062
|
"data-testid": "donates-teaser",
|
|
2048
2063
|
className: makeClassName(classNames)
|
|
2049
2064
|
}, React.createElement("div", {
|
|
2050
|
-
className: styles$
|
|
2065
|
+
className: styles$x.main
|
|
2051
2066
|
}, React.createElement("h3", {
|
|
2052
|
-
className: styles$
|
|
2067
|
+
className: styles$x.title
|
|
2053
2068
|
}, React.createElement("span", {
|
|
2054
2069
|
dangerouslySetInnerHTML: {
|
|
2055
2070
|
__html: data[lang].title
|
|
2056
2071
|
}
|
|
2057
2072
|
}), " ", React.createElement("span", {
|
|
2058
|
-
className: styles$
|
|
2073
|
+
className: styles$x.text,
|
|
2059
2074
|
dangerouslySetInnerHTML: {
|
|
2060
2075
|
__html: data[lang].subtitle
|
|
2061
2076
|
}
|
|
2062
2077
|
}))), React.createElement("div", {
|
|
2063
|
-
className: styles$
|
|
2078
|
+
className: styles$x.cta
|
|
2064
2079
|
}, React.createElement("a", {
|
|
2065
2080
|
href: data[lang].href,
|
|
2066
2081
|
target: "_blank",
|
|
@@ -2068,16 +2083,16 @@ var DonatesTeaser = function DonatesTeaser(_ref) {
|
|
|
2068
2083
|
}, React.createElement("span", null, data[lang].button))));
|
|
2069
2084
|
};
|
|
2070
2085
|
|
|
2071
|
-
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"};
|
|
2072
2087
|
|
|
2073
2088
|
var AnnouncementInText = function AnnouncementInText(_ref) {
|
|
2074
2089
|
var styleContext = _ref.styleContext,
|
|
2075
2090
|
_ref$lang = _ref.lang,
|
|
2076
2091
|
lang = _ref$lang === void 0 ? 'ru' : _ref$lang;
|
|
2077
|
-
var classNames = [[styles$
|
|
2092
|
+
var classNames = [[styles$y.root, true], [styles$y[lang], styles$y[lang]]];
|
|
2078
2093
|
|
|
2079
2094
|
if (styleContext) {
|
|
2080
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
2095
|
+
classNames = makeStyleContext(classNames, styleContext, styles$y);
|
|
2081
2096
|
}
|
|
2082
2097
|
|
|
2083
2098
|
var data = {
|
|
@@ -2099,9 +2114,9 @@ var AnnouncementInText = function AnnouncementInText(_ref) {
|
|
|
2099
2114
|
"data-testid": "announcement-in-text",
|
|
2100
2115
|
className: makeClassName(classNames)
|
|
2101
2116
|
}, React.createElement("div", {
|
|
2102
|
-
className: styles$
|
|
2117
|
+
className: styles$y.body
|
|
2103
2118
|
}, React.createElement("h3", {
|
|
2104
|
-
className: styles$
|
|
2119
|
+
className: styles$y.title,
|
|
2105
2120
|
dangerouslySetInnerHTML: {
|
|
2106
2121
|
__html: localeData.title
|
|
2107
2122
|
}
|
|
@@ -2110,14 +2125,14 @@ var AnnouncementInText = function AnnouncementInText(_ref) {
|
|
|
2110
2125
|
__html: localeData.text
|
|
2111
2126
|
}
|
|
2112
2127
|
})), React.createElement("div", {
|
|
2113
|
-
className: styles$
|
|
2128
|
+
className: styles$y.footer
|
|
2114
2129
|
}, React.createElement("a", {
|
|
2115
|
-
className: styles$
|
|
2130
|
+
className: styles$y.link,
|
|
2116
2131
|
href: localeData.href,
|
|
2117
2132
|
target: "_blank",
|
|
2118
2133
|
rel: "noreferrer"
|
|
2119
2134
|
}, React.createElement("span", null, localeData.button)), React.createElement("span", {
|
|
2120
|
-
className: styles$
|
|
2135
|
+
className: styles$y.button
|
|
2121
2136
|
}, React.createElement("span", null, localeData.button))));
|
|
2122
2137
|
};
|
|
2123
2138
|
|
|
@@ -2287,7 +2302,7 @@ var RenderBlocks = function RenderBlocks(_ref) {
|
|
|
2287
2302
|
}
|
|
2288
2303
|
};
|
|
2289
2304
|
|
|
2290
|
-
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"};
|
|
2291
2306
|
|
|
2292
2307
|
var Cover = function Cover(_ref) {
|
|
2293
2308
|
var _ref$block = _ref.block,
|
|
@@ -2308,15 +2323,15 @@ var Cover = function Cover(_ref) {
|
|
|
2308
2323
|
setIsPopoverShown = _useState[1];
|
|
2309
2324
|
|
|
2310
2325
|
var style = {};
|
|
2311
|
-
var classNames = [[styles$
|
|
2326
|
+
var classNames = [[styles$z.root, true], [styles$z[onlyOn], !!onlyOn && !!styles$z[onlyOn]]];
|
|
2312
2327
|
|
|
2313
2328
|
if (styleContext) {
|
|
2314
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
2329
|
+
classNames = makeStyleContext(classNames, styleContext, styles$z);
|
|
2315
2330
|
}
|
|
2316
2331
|
|
|
2317
2332
|
if (gradients) {
|
|
2318
2333
|
var theme = [gradients.text_rgb === '0,0,0' ? 'dark' : 'light'];
|
|
2319
|
-
classNames = makeStyleContext(classNames, theme, styles$
|
|
2334
|
+
classNames = makeStyleContext(classNames, theme, styles$z);
|
|
2320
2335
|
style.backgroundImage = generateGradient(gradients.bg_rgb, 'mediaBlockBottom');
|
|
2321
2336
|
}
|
|
2322
2337
|
|
|
@@ -2332,13 +2347,13 @@ var Cover = function Cover(_ref) {
|
|
|
2332
2347
|
"data-testid": "cover",
|
|
2333
2348
|
className: makeClassName(classNames)
|
|
2334
2349
|
}, React.createElement("div", {
|
|
2335
|
-
className: styles$
|
|
2350
|
+
className: styles$z.image
|
|
2336
2351
|
}, React.createElement(Image, {
|
|
2337
2352
|
optimized: urls,
|
|
2338
2353
|
ratio: mobileRatio,
|
|
2339
2354
|
display: "narrow"
|
|
2340
2355
|
})), React.createElement("div", {
|
|
2341
|
-
className: styles$
|
|
2356
|
+
className: styles$z.body,
|
|
2342
2357
|
style: style
|
|
2343
2358
|
}, blocks.map(function (item) {
|
|
2344
2359
|
return React.createElement(RenderBlocks, {
|
|
@@ -2347,7 +2362,7 @@ var Cover = function Cover(_ref) {
|
|
|
2347
2362
|
styleContext: styleContext
|
|
2348
2363
|
});
|
|
2349
2364
|
})), cc === 'button' && React.createElement("button", {
|
|
2350
|
-
className: styles$
|
|
2365
|
+
className: styles$z.control,
|
|
2351
2366
|
type: "button",
|
|
2352
2367
|
"aria-label": "Open",
|
|
2353
2368
|
onClick: function onClick() {
|
|
@@ -2360,7 +2375,7 @@ var Cover = function Cover(_ref) {
|
|
|
2360
2375
|
}, renderCC('isInPopover')));
|
|
2361
2376
|
};
|
|
2362
2377
|
|
|
2363
|
-
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"};
|
|
2364
2379
|
|
|
2365
2380
|
var HalfBlock = function HalfBlock(_ref) {
|
|
2366
2381
|
var _ref$block = _ref.block,
|
|
@@ -2372,25 +2387,25 @@ var HalfBlock = function HalfBlock(_ref) {
|
|
|
2372
2387
|
credit = _ref$block$data$cover.credit,
|
|
2373
2388
|
caption = _ref$block$data$cover.caption,
|
|
2374
2389
|
styleContext = _ref.styleContext;
|
|
2375
|
-
var classNames = [[styles$
|
|
2390
|
+
var classNames = [[styles$A.root, true], [styles$A[onlyOn], true]];
|
|
2376
2391
|
|
|
2377
2392
|
if (styleContext) {
|
|
2378
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
2393
|
+
classNames = makeStyleContext(classNames, styleContext, styles$A);
|
|
2379
2394
|
}
|
|
2380
2395
|
|
|
2381
2396
|
return React.createElement("div", {
|
|
2382
2397
|
"data-testid": "half-block",
|
|
2383
2398
|
className: makeClassName(classNames)
|
|
2384
2399
|
}, React.createElement("div", {
|
|
2385
|
-
className: styles$
|
|
2400
|
+
className: styles$A.main
|
|
2386
2401
|
}, React.createElement("div", {
|
|
2387
|
-
className: styles$
|
|
2402
|
+
className: styles$A.image
|
|
2388
2403
|
}, React.createElement(Image, {
|
|
2389
2404
|
optimized: optimized,
|
|
2390
2405
|
ratio: ratio,
|
|
2391
2406
|
display: "super_full"
|
|
2392
2407
|
})), React.createElement("div", {
|
|
2393
|
-
className: styles$
|
|
2408
|
+
className: styles$A.body
|
|
2394
2409
|
}, data.blocks.map(function (item) {
|
|
2395
2410
|
return React.createElement(RenderBlocks, {
|
|
2396
2411
|
key: item.id,
|
|
@@ -2398,7 +2413,7 @@ var HalfBlock = function HalfBlock(_ref) {
|
|
|
2398
2413
|
styleContext: ['rich']
|
|
2399
2414
|
});
|
|
2400
2415
|
}))), React.createElement("div", {
|
|
2401
|
-
className: styles$
|
|
2416
|
+
className: styles$A.footer
|
|
2402
2417
|
}, React.createElement(MediaCaption, {
|
|
2403
2418
|
credit: credit,
|
|
2404
2419
|
caption: caption,
|
|
@@ -2406,17 +2421,17 @@ var HalfBlock = function HalfBlock(_ref) {
|
|
|
2406
2421
|
})));
|
|
2407
2422
|
};
|
|
2408
2423
|
|
|
2409
|
-
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"};
|
|
2410
2425
|
|
|
2411
2426
|
var ImportantLead = function ImportantLead(_ref) {
|
|
2412
2427
|
var _ref$block = _ref.block,
|
|
2413
2428
|
onlyOn = _ref$block.only_on,
|
|
2414
2429
|
data = _ref$block.data,
|
|
2415
2430
|
styleContext = _ref.styleContext;
|
|
2416
|
-
var classNames = [[styles$
|
|
2431
|
+
var classNames = [[styles$B.root, true], [styles$B[onlyOn], !!onlyOn]];
|
|
2417
2432
|
|
|
2418
2433
|
if (styleContext) {
|
|
2419
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
2434
|
+
classNames = makeStyleContext(classNames, styleContext, styles$B);
|
|
2420
2435
|
}
|
|
2421
2436
|
|
|
2422
2437
|
return React.createElement("div", {
|
|
@@ -2431,7 +2446,7 @@ var ImportantLead = function ImportantLead(_ref) {
|
|
|
2431
2446
|
}));
|
|
2432
2447
|
};
|
|
2433
2448
|
|
|
2434
|
-
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"};
|
|
2435
2450
|
|
|
2436
2451
|
var Spoiler = function Spoiler(_ref) {
|
|
2437
2452
|
var _ref$block = _ref.block,
|
|
@@ -2466,11 +2481,11 @@ var Spoiler = function Spoiler(_ref) {
|
|
|
2466
2481
|
}
|
|
2467
2482
|
};
|
|
2468
2483
|
|
|
2469
|
-
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]];
|
|
2470
2485
|
var context = ['center'];
|
|
2471
2486
|
|
|
2472
2487
|
if (styleContext) {
|
|
2473
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
2488
|
+
classNames = makeStyleContext(classNames, styleContext, styles$C);
|
|
2474
2489
|
}
|
|
2475
2490
|
|
|
2476
2491
|
var buttonCollapse = button ? button.collapse : 'Свернуть';
|
|
@@ -2480,9 +2495,9 @@ var Spoiler = function Spoiler(_ref) {
|
|
|
2480
2495
|
className: makeClassName(classNames),
|
|
2481
2496
|
"data-testid": "spoiler"
|
|
2482
2497
|
}, React.createElement("div", {
|
|
2483
|
-
className: styles$
|
|
2498
|
+
className: styles$C.header
|
|
2484
2499
|
}, title && React.createElement("h3", null, title)), React.createElement("div", {
|
|
2485
|
-
className: styles$
|
|
2500
|
+
className: styles$C.body
|
|
2486
2501
|
}, blocks.map(function (item) {
|
|
2487
2502
|
return React.createElement(RenderBlocks, {
|
|
2488
2503
|
key: item.id,
|
|
@@ -2490,7 +2505,7 @@ var Spoiler = function Spoiler(_ref) {
|
|
|
2490
2505
|
styleContext: context
|
|
2491
2506
|
});
|
|
2492
2507
|
})), React.createElement("div", {
|
|
2493
|
-
className: styles$
|
|
2508
|
+
className: styles$C.footer
|
|
2494
2509
|
}, React.createElement(Button, {
|
|
2495
2510
|
size: "default",
|
|
2496
2511
|
theme: "gray",
|
|
@@ -2503,7 +2518,7 @@ var Spoiler = function Spoiler(_ref) {
|
|
|
2503
2518
|
}))));
|
|
2504
2519
|
};
|
|
2505
2520
|
|
|
2506
|
-
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"};
|
|
2507
2522
|
|
|
2508
2523
|
/* eslint-disable react/jsx-no-target-blank */
|
|
2509
2524
|
var RelatedRichBlock = function RelatedRichBlock(_ref) {
|
|
@@ -2542,18 +2557,18 @@ var RelatedRichBlock = function RelatedRichBlock(_ref) {
|
|
|
2542
2557
|
postMessage('richRelated', url, 'click');
|
|
2543
2558
|
};
|
|
2544
2559
|
|
|
2545
|
-
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]]];
|
|
2546
2561
|
var context = ['isInMediaBlock'];
|
|
2547
2562
|
|
|
2548
2563
|
if (styleContext) {
|
|
2549
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
2564
|
+
classNames = makeStyleContext(classNames, styleContext, styles$D);
|
|
2550
2565
|
context = [].concat(styleContext, ['isInMediaBlock']);
|
|
2551
2566
|
}
|
|
2552
2567
|
|
|
2553
2568
|
if (gradients) {
|
|
2554
2569
|
styleHeader.backgroundImage = generateGradient(gradients.bg_rgb, 'mediaBlockTop');
|
|
2555
2570
|
var theme = [gradients.text_rgb === '0,0,0' ? 'dark' : 'light'];
|
|
2556
|
-
classNames = makeStyleContext(classNames, theme, styles$
|
|
2571
|
+
classNames = makeStyleContext(classNames, theme, styles$D);
|
|
2557
2572
|
|
|
2558
2573
|
if (onlyOn === 'desktop') {
|
|
2559
2574
|
style.backgroundImage = generateGradient(gradients.bg_rgb, 'mediaBlockBottom');
|
|
@@ -2569,27 +2584,27 @@ var RelatedRichBlock = function RelatedRichBlock(_ref) {
|
|
|
2569
2584
|
},
|
|
2570
2585
|
ref: ref
|
|
2571
2586
|
}, layout === 'rich' && React.createElement(React.Fragment, null, React.createElement("div", {
|
|
2572
|
-
className: styles$
|
|
2587
|
+
className: styles$D.overlay,
|
|
2573
2588
|
style: style
|
|
2574
2589
|
}), React.createElement("div", {
|
|
2575
|
-
className: styles$
|
|
2590
|
+
className: styles$D.overlayHeader,
|
|
2576
2591
|
style: styleHeader
|
|
2577
2592
|
})), React.createElement("div", {
|
|
2578
|
-
className: styles$
|
|
2593
|
+
className: styles$D.tag
|
|
2579
2594
|
}, React.createElement(Tag, {
|
|
2580
2595
|
size: "small",
|
|
2581
2596
|
theme: "inherit",
|
|
2582
2597
|
styleContext: "richRelated"
|
|
2583
2598
|
}, tag)), React.createElement("div", {
|
|
2584
|
-
className: styles$
|
|
2599
|
+
className: styles$D.cover
|
|
2585
2600
|
}, React.createElement("div", {
|
|
2586
|
-
className: styles$
|
|
2601
|
+
className: styles$D.picture
|
|
2587
2602
|
}, React.createElement(Image, {
|
|
2588
2603
|
optimized: urls,
|
|
2589
2604
|
ratio: ratio,
|
|
2590
2605
|
display: "narrow"
|
|
2591
2606
|
}))), React.createElement("div", {
|
|
2592
|
-
className: styles$
|
|
2607
|
+
className: styles$D.body
|
|
2593
2608
|
}, blocks.map(function (item) {
|
|
2594
2609
|
return React.createElement(RenderBlocks, {
|
|
2595
2610
|
key: item.id,
|
|
@@ -2599,7 +2614,7 @@ var RelatedRichBlock = function RelatedRichBlock(_ref) {
|
|
|
2599
2614
|
})));
|
|
2600
2615
|
};
|
|
2601
2616
|
|
|
2602
|
-
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"};
|
|
2603
2618
|
|
|
2604
2619
|
/* eslint-disable react/jsx-no-target-blank */
|
|
2605
2620
|
var ShopRelatedBlock = function ShopRelatedBlock(_ref) {
|
|
@@ -2638,16 +2653,16 @@ var ShopRelatedBlock = function ShopRelatedBlock(_ref) {
|
|
|
2638
2653
|
postMessage('productRelated', url, 'click');
|
|
2639
2654
|
};
|
|
2640
2655
|
|
|
2641
|
-
var classNames = [[styles$
|
|
2656
|
+
var classNames = [[styles$E.root, true], [styles$E.hasGradient, !!gradients], [styles$E[onlyOn], !!onlyOn && !!styles$E[onlyOn]]];
|
|
2642
2657
|
|
|
2643
2658
|
if (styleContext) {
|
|
2644
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
2659
|
+
classNames = makeStyleContext(classNames, styleContext, styles$E);
|
|
2645
2660
|
}
|
|
2646
2661
|
|
|
2647
2662
|
if (gradients) {
|
|
2648
2663
|
styleHeader.backgroundImage = generateGradient(gradients.bg_rgb, 'mediaBlockTop');
|
|
2649
2664
|
var theme = [gradients.text_rgb === '0,0,0' ? 'dark' : 'light'];
|
|
2650
|
-
classNames = makeStyleContext(classNames, theme, styles$
|
|
2665
|
+
classNames = makeStyleContext(classNames, theme, styles$E);
|
|
2651
2666
|
|
|
2652
2667
|
if (onlyOn === 'desktop') {
|
|
2653
2668
|
style.backgroundImage = generateGradient(gradients.bg_rgb, 'mediaBlockBottom');
|
|
@@ -2664,31 +2679,31 @@ var ShopRelatedBlock = function ShopRelatedBlock(_ref) {
|
|
|
2664
2679
|
},
|
|
2665
2680
|
ref: ref
|
|
2666
2681
|
}, layout === 'rich' && React.createElement(React.Fragment, null, React.createElement("div", {
|
|
2667
|
-
className: styles$
|
|
2682
|
+
className: styles$E.overlay,
|
|
2668
2683
|
style: style
|
|
2669
2684
|
}), React.createElement("div", {
|
|
2670
|
-
className: styles$
|
|
2685
|
+
className: styles$E.overlayHeader,
|
|
2671
2686
|
style: styleHeader
|
|
2672
2687
|
})), React.createElement("div", {
|
|
2673
|
-
className: styles$
|
|
2688
|
+
className: styles$E.tag
|
|
2674
2689
|
}, React.createElement(Tag, {
|
|
2675
2690
|
size: "small",
|
|
2676
2691
|
theme: "inherit",
|
|
2677
2692
|
styleContext: "richRelated"
|
|
2678
2693
|
}, tag)), React.createElement("div", {
|
|
2679
|
-
className: styles$
|
|
2694
|
+
className: styles$E.cover
|
|
2680
2695
|
}, React.createElement("div", {
|
|
2681
|
-
className: styles$
|
|
2696
|
+
className: styles$E.picture
|
|
2682
2697
|
}, React.createElement(Image, {
|
|
2683
2698
|
optimized: urls,
|
|
2684
2699
|
ratio: ratio,
|
|
2685
2700
|
display: "narrow"
|
|
2686
2701
|
}))), React.createElement("div", {
|
|
2687
|
-
className: styles$
|
|
2702
|
+
className: styles$E.body
|
|
2688
2703
|
}, React.createElement("h2", {
|
|
2689
|
-
className: styles$
|
|
2704
|
+
className: styles$E.title
|
|
2690
2705
|
}, firstTitle, React.createElement("span", {
|
|
2691
|
-
className: styles$
|
|
2706
|
+
className: styles$E.price
|
|
2692
2707
|
}, secondTitle))));
|
|
2693
2708
|
};
|
|
2694
2709
|
|
|
@@ -2773,40 +2788,62 @@ var RawHtmlBlock = function RawHtmlBlock(_ref) {
|
|
|
2773
2788
|
}
|
|
2774
2789
|
};
|
|
2775
2790
|
|
|
2776
|
-
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"};
|
|
2777
2792
|
|
|
2778
2793
|
var ToolbarButton = function ToolbarButton(_ref) {
|
|
2779
|
-
var
|
|
2780
|
-
type = _ref.type,
|
|
2794
|
+
var type = _ref.type,
|
|
2781
2795
|
theme = _ref.theme,
|
|
2782
2796
|
isActive = _ref.isActive,
|
|
2783
2797
|
_ref$lang = _ref.lang,
|
|
2784
2798
|
lang = _ref$lang === void 0 ? 'ru' : _ref$lang,
|
|
2799
|
+
text = _ref.text,
|
|
2785
2800
|
icon = _ref.icon,
|
|
2786
2801
|
_onClick = _ref.onClick;
|
|
2787
|
-
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]];
|
|
2788
2803
|
var label = SocialLabels[lang][type];
|
|
2789
|
-
return React.createElement("
|
|
2790
|
-
className: toolbarStyles.item
|
|
2791
|
-
}, React.createElement("button", {
|
|
2804
|
+
return React.createElement("button", {
|
|
2792
2805
|
"data-testid": "toolbar-button",
|
|
2793
2806
|
className: makeClassName(classNames),
|
|
2794
2807
|
type: "button",
|
|
2795
|
-
onClick: function onClick() {
|
|
2796
|
-
return _onClick(type);
|
|
2808
|
+
onClick: function onClick(event) {
|
|
2809
|
+
return _onClick(event, type);
|
|
2797
2810
|
}
|
|
2798
2811
|
}, icon && React.createElement("div", {
|
|
2799
|
-
className: styles$
|
|
2812
|
+
className: styles$F.icon
|
|
2800
2813
|
}, React.createElement(SvgSymbol, {
|
|
2801
2814
|
size: "medium",
|
|
2802
2815
|
icon: icon,
|
|
2803
2816
|
styleContext: "isInToolbar"
|
|
2804
2817
|
})), React.createElement("span", {
|
|
2805
|
-
className: styles$
|
|
2806
|
-
}, label)
|
|
2807
|
-
|
|
2808
|
-
|
|
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);
|
|
2809
2846
|
};
|
|
2810
2847
|
|
|
2811
|
-
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 };
|
|
2812
2849
|
//# sourceMappingURL=ui-kit-2.esm.js.map
|