@meduza/ui-kit-2 0.1.69 → 0.1.70
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/DonatesTeaser/DonatesTeaser.stories.d.ts +10 -0
- package/dist/DonatesTeaser/DonatesTeaser.types.d.ts +3 -0
- package/dist/DonatesTeaser/index.d.ts +3 -0
- package/dist/index.d.ts +1 -0
- package/dist/ui-kit-2.cjs.development.js +166 -133
- 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 +166 -134
- package/dist/ui-kit-2.esm.js.map +1 -1
- package/dist/ui-kit.css +1903 -1778
- package/package.json +1 -1
- package/src/DonatesTeaser/DonatesTeaser.module.css +119 -0
- package/src/DonatesTeaser/DonatesTeaser.stories.module.css +5 -0
- package/src/DonatesTeaser/DonatesTeaser.stories.tsx +34 -0
- package/src/DonatesTeaser/DonatesTeaser.test.tsx +20 -0
- package/src/DonatesTeaser/DonatesTeaser.types.ts +3 -0
- package/src/DonatesTeaser/index.tsx +35 -0
- package/src/MaterialNote/index.tsx +15 -10
- package/src/index.tsx +1 -0
package/dist/ui-kit-2.esm.js
CHANGED
|
@@ -900,11 +900,10 @@ var Table = function Table(_ref) {
|
|
|
900
900
|
}));
|
|
901
901
|
};
|
|
902
902
|
|
|
903
|
-
var styles$b = {"root":"
|
|
903
|
+
var styles$b = {"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","ctaInner":"DonatesTeaser-module_ctaInner__2LChL","center":"DonatesTeaser-module_center__2Ynx9"};
|
|
904
904
|
|
|
905
|
-
var
|
|
906
|
-
var
|
|
907
|
-
styleContext = _ref.styleContext;
|
|
905
|
+
var DonatesTeaser = function DonatesTeaser(_ref) {
|
|
906
|
+
var styleContext = _ref.styleContext;
|
|
908
907
|
var classNames = [[styles$b.root, true]];
|
|
909
908
|
|
|
910
909
|
if (styleContext) {
|
|
@@ -912,37 +911,70 @@ var MaterialNote = function MaterialNote(_ref) {
|
|
|
912
911
|
}
|
|
913
912
|
|
|
914
913
|
return React.createElement("div", {
|
|
914
|
+
"data-testid": "donates-teaser",
|
|
915
|
+
className: makeClassName(classNames)
|
|
916
|
+
}, React.createElement("div", {
|
|
917
|
+
className: styles$b.main
|
|
918
|
+
}, React.createElement("h3", {
|
|
919
|
+
className: styles$b.title
|
|
920
|
+
}, "\u0421\u043F\u0430\u0441\u0442\u0438 \xAB\u041C\u0435\u0434\u0443\u0437\u0443\xBB"), React.createElement("p", {
|
|
921
|
+
className: styles$b.text
|
|
922
|
+
}, "\u0420\u043E\u0441\u0441\u0438\u0439\u0441\u043A\u0438\u0435 \u0432\u043B\u0430\u0441\u0442\u0438 \u043E\u0431\u044A\u044F\u0432\u0438\u043B\u0438 \xAB\u041C\u0435\u0434\u0443\u0437\u0443\xBB \u0438\u043D\u043E\u0441\u0442\u0440\u0430\u043D\u043D\u044B\u043C \u0430\u0433\u0435\u043D\u0442\u043E\u043C. \u0423\xA0\u043D\u0430\u0441 \u0431\u043E\u043B\u044C\u0448\u0435 \u043D\u0435\u0442 \u0440\u0435\u043A\u043B\u0430\u043C\u043E\u0434\u0430\u0442\u0435\u043B\u0435\u0439 \u2014 \u0430 \u0437\u043D\u0430\u0447\u0438\u0442 \u043D\u0435\u0442 \u0434\u0435\u043D\u0435\u0433. \u041D\u043E \u0443 \u043D\u0430\u0441 \u0435\u0441\u0442\u044C \u0432\u044B \u2014 \u043D\u0430\u0448\u0438 \u0447\u0438\u0442\u0430\u0442\u0435\u043B\u0438. \u041F\u043E\u043C\u043E\u0433\u0438\u0442\u0435 \u043D\u0430\u043C \u0441\u043F\u0430\u0441\u0442\u0438 \xAB\u041C\u0435\u0434\u0443\u0437\u0443\xBB!")), React.createElement("div", {
|
|
923
|
+
className: styles$b.cta
|
|
924
|
+
}, React.createElement("a", {
|
|
925
|
+
href: "https://support.meduza.io",
|
|
926
|
+
target: "_blank",
|
|
927
|
+
rel: "noreferrer"
|
|
928
|
+
}, React.createElement("span", {
|
|
929
|
+
className: styles$b.ctaInner
|
|
930
|
+
}, "\u041F\u043E\u043C\u043E\u0447\u044C!"))));
|
|
931
|
+
};
|
|
932
|
+
|
|
933
|
+
var styles$c = {"root":"MaterialNote-module_root__1AcYe","dark":"MaterialNote-module_dark__xCry-","note_credit":"MaterialNote-module_note_credit__PuFyX","note_caption":"MaterialNote-module_note_caption__1ezSo","center":"MaterialNote-module_center__18RxI","default":"MaterialNote-module_default__1lQPl","card":"MaterialNote-module_card__OWXbQ","slide":"MaterialNote-module_slide__1ZBBq","game":"MaterialNote-module_game__cADMe","gameSurvey":"MaterialNote-module_gameSurvey__3SiG-"};
|
|
934
|
+
|
|
935
|
+
var MaterialNote = function MaterialNote(_ref) {
|
|
936
|
+
var data = _ref.block.data,
|
|
937
|
+
styleContext = _ref.styleContext;
|
|
938
|
+
var classNames = [[styles$c.root, true]];
|
|
939
|
+
|
|
940
|
+
if (styleContext) {
|
|
941
|
+
classNames = makeStyleContext(classNames, styleContext, styles$c);
|
|
942
|
+
}
|
|
943
|
+
|
|
944
|
+
return React.createElement(React.Fragment, null, React.createElement(DonatesTeaser, {
|
|
945
|
+
styleContext: styleContext
|
|
946
|
+
}), React.createElement("div", {
|
|
915
947
|
"data-testid": "material-note",
|
|
916
948
|
className: makeClassName(classNames)
|
|
917
949
|
}, data && data.map(function (item) {
|
|
918
950
|
return React.createElement("p", {
|
|
919
|
-
className: styles$
|
|
951
|
+
className: styles$c[item.type],
|
|
920
952
|
key: item.id,
|
|
921
953
|
dangerouslySetInnerHTML: {
|
|
922
954
|
__html: item.data
|
|
923
955
|
}
|
|
924
956
|
});
|
|
925
|
-
}));
|
|
957
|
+
})));
|
|
926
958
|
};
|
|
927
959
|
|
|
928
|
-
var styles$
|
|
960
|
+
var styles$d = {"root":"BookmarkButton-module_root__3KmuY","control":"BookmarkButton-module_control__1A0ea","dark":"BookmarkButton-module_dark__1cwyi","light":"BookmarkButton-module_light__1uQyH","isInBookmarks":"BookmarkButton-module_isInBookmarks__1_5kB","isInGrid":"BookmarkButton-module_isInGrid__2pQ2B"};
|
|
929
961
|
|
|
930
962
|
var BookmarkButton = function BookmarkButton(_ref) {
|
|
931
963
|
var styleContext = _ref.styleContext,
|
|
932
964
|
theme = _ref.theme,
|
|
933
965
|
isInBookmarks = _ref.isInBookmarks,
|
|
934
966
|
_onClick = _ref.onClick;
|
|
935
|
-
var classNames = [[styles$
|
|
967
|
+
var classNames = [[styles$d.root, true], [styles$d.isInBookmarks, isInBookmarks], [styles$d[theme], !!theme && !!styles$d[theme]]];
|
|
936
968
|
|
|
937
969
|
if (styleContext) {
|
|
938
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
970
|
+
classNames = makeStyleContext(classNames, styleContext, styles$d);
|
|
939
971
|
}
|
|
940
972
|
|
|
941
973
|
return React.createElement("div", {
|
|
942
974
|
"data-testid": "bookmark-button",
|
|
943
975
|
className: makeClassName(classNames)
|
|
944
976
|
}, React.createElement("button", {
|
|
945
|
-
className: styles$
|
|
977
|
+
className: styles$d.control,
|
|
946
978
|
onClick: function onClick() {
|
|
947
979
|
return _onClick();
|
|
948
980
|
},
|
|
@@ -953,45 +985,45 @@ var BookmarkButton = function BookmarkButton(_ref) {
|
|
|
953
985
|
})));
|
|
954
986
|
};
|
|
955
987
|
|
|
956
|
-
var styles$
|
|
988
|
+
var styles$e = {"root":"MaterialTitle-module_root__18ku-","primary":"MaterialTitle-module_primary__2Sfmx","secondary":"MaterialTitle-module_secondary__3uDp4"};
|
|
957
989
|
|
|
958
990
|
var Primary = function Primary(_ref) {
|
|
959
991
|
var children = _ref.children;
|
|
960
992
|
return React.createElement("span", {
|
|
961
|
-
className: styles$
|
|
993
|
+
className: styles$e.primary
|
|
962
994
|
}, children);
|
|
963
995
|
};
|
|
964
996
|
var Secondary = function Secondary(_ref2) {
|
|
965
997
|
var children = _ref2.children;
|
|
966
998
|
return React.createElement("span", {
|
|
967
|
-
className: styles$
|
|
999
|
+
className: styles$e.secondary
|
|
968
1000
|
}, children);
|
|
969
1001
|
};
|
|
970
1002
|
var MaterialTitle = function MaterialTitle(_ref3) {
|
|
971
1003
|
var children = _ref3.children;
|
|
972
1004
|
return React.createElement("h1", {
|
|
973
|
-
className: styles$
|
|
1005
|
+
className: styles$e.root,
|
|
974
1006
|
"data-testid": "material-title"
|
|
975
1007
|
}, children);
|
|
976
1008
|
};
|
|
977
1009
|
|
|
978
|
-
var styles$
|
|
1010
|
+
var styles$f = {"root":"Dropdown-module_root__11PNk","active":"Dropdown-module_active__3IwAl","menu":"Dropdown-module_menu__3PIqD","isInAudioPanel":"Dropdown-module_isInAudioPanel__1zv7F"};
|
|
979
1011
|
|
|
980
1012
|
var Menu = function Menu(_ref) {
|
|
981
1013
|
var children = _ref.children;
|
|
982
1014
|
return React.createElement("div", {
|
|
983
1015
|
"data-testid": "dropdown",
|
|
984
|
-
className: styles$
|
|
1016
|
+
className: styles$f.menu
|
|
985
1017
|
}, children);
|
|
986
1018
|
};
|
|
987
1019
|
var Dropdown = function Dropdown(_ref2) {
|
|
988
1020
|
var children = _ref2.children,
|
|
989
1021
|
active = _ref2.active,
|
|
990
1022
|
styleContext = _ref2.styleContext;
|
|
991
|
-
var classNames = [[styles$
|
|
1023
|
+
var classNames = [[styles$f.root, true], [styles$f.active, !!active && !!styles$f.active]];
|
|
992
1024
|
|
|
993
1025
|
if (styleContext) {
|
|
994
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
1026
|
+
classNames = makeStyleContext(classNames, styleContext, styles$f);
|
|
995
1027
|
}
|
|
996
1028
|
|
|
997
1029
|
return React.createElement("div", {
|
|
@@ -1019,7 +1051,7 @@ var Toolbar = function Toolbar(_ref) {
|
|
|
1019
1051
|
}, children));
|
|
1020
1052
|
};
|
|
1021
1053
|
|
|
1022
|
-
var styles$
|
|
1054
|
+
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","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"};
|
|
1023
1055
|
|
|
1024
1056
|
var Meta = function Meta(_ref) {
|
|
1025
1057
|
var hasSource = _ref.hasSource,
|
|
@@ -1027,10 +1059,10 @@ var Meta = function Meta(_ref) {
|
|
|
1027
1059
|
children = _ref.children,
|
|
1028
1060
|
onlyOn = _ref.onlyOn,
|
|
1029
1061
|
styleContext = _ref.styleContext;
|
|
1030
|
-
var classNames = [[styles$
|
|
1062
|
+
var classNames = [[styles$g.root, true], [styles$g[theme], !!theme && !!styles$g[theme]], [styles$g[onlyOn], !!onlyOn], [styles$g.hasSource, hasSource]];
|
|
1031
1063
|
|
|
1032
1064
|
if (styleContext) {
|
|
1033
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
1065
|
+
classNames = makeStyleContext(classNames, styleContext, styles$g);
|
|
1034
1066
|
}
|
|
1035
1067
|
|
|
1036
1068
|
return React.createElement("div", {
|
|
@@ -1039,7 +1071,7 @@ var Meta = function Meta(_ref) {
|
|
|
1039
1071
|
}, children);
|
|
1040
1072
|
};
|
|
1041
1073
|
|
|
1042
|
-
var styles$
|
|
1074
|
+
var styles$h = {"root":"Timestamp-module_root__coOvT"};
|
|
1043
1075
|
|
|
1044
1076
|
var Timestamp = function Timestamp(_ref) {
|
|
1045
1077
|
var publishedAt = _ref.publishedAt,
|
|
@@ -1065,7 +1097,7 @@ var Timestamp = function Timestamp(_ref) {
|
|
|
1065
1097
|
return React.createElement("time", {
|
|
1066
1098
|
suppressHydrationWarning: true,
|
|
1067
1099
|
"data-testid": "timestamp",
|
|
1068
|
-
className: styles$
|
|
1100
|
+
className: styles$h.root
|
|
1069
1101
|
}, published);
|
|
1070
1102
|
};
|
|
1071
1103
|
|
|
@@ -1132,7 +1164,7 @@ var DangerousHTML = function DangerousHTML(_ref) {
|
|
|
1132
1164
|
}));
|
|
1133
1165
|
};
|
|
1134
1166
|
|
|
1135
|
-
var styles$
|
|
1167
|
+
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_"};
|
|
1136
1168
|
|
|
1137
1169
|
var EmbedGif = function EmbedGif(_ref) {
|
|
1138
1170
|
var gif = _ref.gif,
|
|
@@ -1178,9 +1210,9 @@ var EmbedGif = function EmbedGif(_ref) {
|
|
|
1178
1210
|
};
|
|
1179
1211
|
}, []);
|
|
1180
1212
|
return React.createElement("div", {
|
|
1181
|
-
className: styles$
|
|
1213
|
+
className: styles$i.figure
|
|
1182
1214
|
}, React.createElement("div", {
|
|
1183
|
-
className: styles$
|
|
1215
|
+
className: styles$i.objectWrap,
|
|
1184
1216
|
style: style,
|
|
1185
1217
|
"data-frozen": videoFrozen
|
|
1186
1218
|
}, React.createElement("video", {
|
|
@@ -1246,7 +1278,7 @@ var EmbedBlock = function EmbedBlock(_ref) {
|
|
|
1246
1278
|
case 'image':
|
|
1247
1279
|
{
|
|
1248
1280
|
return React.createElement("div", {
|
|
1249
|
-
className: styles$
|
|
1281
|
+
className: styles$i.figure
|
|
1250
1282
|
}, React.createElement(Image, {
|
|
1251
1283
|
source: !optimized && [small, large],
|
|
1252
1284
|
optimized: block.data.optimized,
|
|
@@ -1262,7 +1294,7 @@ var EmbedBlock = function EmbedBlock(_ref) {
|
|
|
1262
1294
|
case 'game_embed':
|
|
1263
1295
|
{
|
|
1264
1296
|
return React.createElement("div", {
|
|
1265
|
-
className: styles$
|
|
1297
|
+
className: styles$i.gameEmbed
|
|
1266
1298
|
}, React.createElement("iframe", {
|
|
1267
1299
|
src: block.data.game_src,
|
|
1268
1300
|
id: block.data.game_id,
|
|
@@ -1273,7 +1305,7 @@ var EmbedBlock = function EmbedBlock(_ref) {
|
|
|
1273
1305
|
case 'dots_on_image':
|
|
1274
1306
|
{
|
|
1275
1307
|
return React.createElement("div", {
|
|
1276
|
-
className: styles$
|
|
1308
|
+
className: styles$i.figure
|
|
1277
1309
|
}, React.createElement(DotsOnImage, {
|
|
1278
1310
|
block: data
|
|
1279
1311
|
}));
|
|
@@ -1282,12 +1314,12 @@ var EmbedBlock = function EmbedBlock(_ref) {
|
|
|
1282
1314
|
default:
|
|
1283
1315
|
{
|
|
1284
1316
|
return React.createElement("div", {
|
|
1285
|
-
className: styles$
|
|
1317
|
+
className: styles$i.object
|
|
1286
1318
|
}, React.createElement("div", {
|
|
1287
|
-
className: styles$
|
|
1319
|
+
className: styles$i.wrapper,
|
|
1288
1320
|
style: style
|
|
1289
1321
|
}, React.createElement(DangerousHTML, {
|
|
1290
|
-
className: styles$
|
|
1322
|
+
className: styles$i.objectWrap,
|
|
1291
1323
|
html: html
|
|
1292
1324
|
})));
|
|
1293
1325
|
}
|
|
@@ -1299,31 +1331,31 @@ var EmbedBlock = function EmbedBlock(_ref) {
|
|
|
1299
1331
|
style.height = 0;
|
|
1300
1332
|
}
|
|
1301
1333
|
|
|
1302
|
-
var classNames = [[styles$
|
|
1334
|
+
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,
|
|
1303
1335
|
// чтобы не применились лишние модификаторы
|
|
1304
1336
|
// TODO: в w6 модификаторы должны передаваться явно
|
|
1305
1337
|
|
|
1306
1338
|
if (styleContext && Array.isArray(styleContext)) {
|
|
1307
1339
|
var filteredContext = styleContext.filter(function (key) {
|
|
1308
|
-
return key.startsWith('isIn') && styles$
|
|
1340
|
+
return key.startsWith('isIn') && styles$i[key];
|
|
1309
1341
|
}).reduce(function (acc, key) {
|
|
1310
1342
|
acc.push(key);
|
|
1311
1343
|
return acc;
|
|
1312
1344
|
}, []);
|
|
1313
|
-
classNames = makeStyleContext(classNames, filteredContext, styles$
|
|
1345
|
+
classNames = makeStyleContext(classNames, filteredContext, styles$i);
|
|
1314
1346
|
}
|
|
1315
1347
|
|
|
1316
1348
|
return React.createElement("figure", {
|
|
1317
1349
|
className: makeClassName(classNames)
|
|
1318
1350
|
}, children && React.createElement("div", {
|
|
1319
|
-
className: styles$
|
|
1351
|
+
className: styles$i.object
|
|
1320
1352
|
}, React.createElement("div", {
|
|
1321
|
-
className: styles$
|
|
1353
|
+
className: styles$i.wrapper,
|
|
1322
1354
|
style: style
|
|
1323
1355
|
}, React.createElement("div", {
|
|
1324
|
-
className: styles$
|
|
1356
|
+
className: styles$i.objectWrap
|
|
1325
1357
|
}, children))), !children && renderEmbed(style), cc === 'default' && React.createElement("figcaption", null, renderCC()), cc === 'button' && React.createElement("button", {
|
|
1326
|
-
className: styles$
|
|
1358
|
+
className: styles$i.control,
|
|
1327
1359
|
type: "button",
|
|
1328
1360
|
"aria-label": "Open",
|
|
1329
1361
|
onClick: function onClick() {
|
|
@@ -1399,15 +1431,15 @@ var EmbedBlockContainer = function EmbedBlockContainer(_ref) {
|
|
|
1399
1431
|
});
|
|
1400
1432
|
};
|
|
1401
1433
|
|
|
1402
|
-
var styles$
|
|
1434
|
+
var styles$j = {"root":"QuoteBlock-module_root__2GrcC","center":"QuoteBlock-module_center__cTFNy"};
|
|
1403
1435
|
|
|
1404
1436
|
var QuoteBlock = function QuoteBlock(_ref) {
|
|
1405
1437
|
var data = _ref.block.data,
|
|
1406
1438
|
styleContext = _ref.styleContext;
|
|
1407
|
-
var classNames = [[styles$
|
|
1439
|
+
var classNames = [[styles$j.root, true]];
|
|
1408
1440
|
|
|
1409
1441
|
if (styleContext) {
|
|
1410
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
1442
|
+
classNames = makeStyleContext(classNames, styleContext, styles$j);
|
|
1411
1443
|
}
|
|
1412
1444
|
|
|
1413
1445
|
return React.createElement("div", {
|
|
@@ -1420,7 +1452,7 @@ var QuoteBlock = function QuoteBlock(_ref) {
|
|
|
1420
1452
|
}));
|
|
1421
1453
|
};
|
|
1422
1454
|
|
|
1423
|
-
var styles$
|
|
1455
|
+
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"};
|
|
1424
1456
|
|
|
1425
1457
|
var CardTitle = function CardTitle(_ref) {
|
|
1426
1458
|
var _ref$block$data = _ref.block.data,
|
|
@@ -1430,15 +1462,15 @@ var CardTitle = function CardTitle(_ref) {
|
|
|
1430
1462
|
styleContext = _ref.styleContext;
|
|
1431
1463
|
return React.createElement("div", {
|
|
1432
1464
|
"data-testid": "card-title",
|
|
1433
|
-
className: makeClassName([[styles$
|
|
1465
|
+
className: makeClassName([[styles$k.root, true], [styles$k[onlyOn], !!onlyOn], [styles$k[styleContext], !!styleContext && !!styles$k[styleContext]]])
|
|
1434
1466
|
}, React.createElement("div", {
|
|
1435
|
-
className: styles$
|
|
1467
|
+
className: styles$k.index
|
|
1436
1468
|
}, index), React.createElement("h3", {
|
|
1437
|
-
className: styles$
|
|
1469
|
+
className: styles$k.title
|
|
1438
1470
|
}, text));
|
|
1439
1471
|
};
|
|
1440
1472
|
|
|
1441
|
-
var styles$
|
|
1473
|
+
var styles$l = {"root":"ChapterBlock-module_root__1WyVn","subtitle":"ChapterBlock-module_subtitle__3TXll","mobile":"ChapterBlock-module_mobile__CiO0w","desktop":"ChapterBlock-module_desktop__tk1Nk"};
|
|
1442
1474
|
|
|
1443
1475
|
var ChapterBlock = function ChapterBlock(_ref) {
|
|
1444
1476
|
var _ref$block = _ref.block,
|
|
@@ -1447,9 +1479,9 @@ var ChapterBlock = function ChapterBlock(_ref) {
|
|
|
1447
1479
|
styleContext = _ref.styleContext;
|
|
1448
1480
|
return React.createElement("div", {
|
|
1449
1481
|
"data-testid": "chapter-block",
|
|
1450
|
-
className: makeClassName([[styles$
|
|
1482
|
+
className: makeClassName([[styles$l.root, true], [styles$l[onlyOn], !!onlyOn]])
|
|
1451
1483
|
}, React.createElement("div", {
|
|
1452
|
-
className: makeClassName([[styles$
|
|
1484
|
+
className: makeClassName([[styles$l.subtitle, true], [styles$l[styleContext], !!styleContext && !!styles$l[styleContext]]]),
|
|
1453
1485
|
dangerouslySetInnerHTML: {
|
|
1454
1486
|
__html: data
|
|
1455
1487
|
}
|
|
@@ -1467,17 +1499,17 @@ var generateGradient = function generateGradient(color, type) {
|
|
|
1467
1499
|
return "linear-gradient(-180deg, " + gradient + ")";
|
|
1468
1500
|
};
|
|
1469
1501
|
|
|
1470
|
-
var styles$
|
|
1502
|
+
var styles$m = {"root":"SimpleTitle-module_root__2jVQN","mobile":"SimpleTitle-module_mobile__11gBz","desktop":"SimpleTitle-module_desktop__3yXgy"};
|
|
1471
1503
|
|
|
1472
1504
|
var SimpleTitle = function SimpleTitle(_ref) {
|
|
1473
1505
|
var _ref$block = _ref.block,
|
|
1474
1506
|
first = _ref$block.data.first,
|
|
1475
1507
|
onlyOn = _ref$block.only_on,
|
|
1476
1508
|
styleContext = _ref.styleContext;
|
|
1477
|
-
var classNames = [[styles$
|
|
1509
|
+
var classNames = [[styles$m.root, true], [styles$m[onlyOn], true]];
|
|
1478
1510
|
|
|
1479
1511
|
if (styleContext) {
|
|
1480
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
1512
|
+
classNames = makeStyleContext(classNames, styleContext, styles$m);
|
|
1481
1513
|
}
|
|
1482
1514
|
|
|
1483
1515
|
return React.createElement("h1", {
|
|
@@ -1486,7 +1518,7 @@ var SimpleTitle = function SimpleTitle(_ref) {
|
|
|
1486
1518
|
}, first);
|
|
1487
1519
|
};
|
|
1488
1520
|
|
|
1489
|
-
var styles$
|
|
1521
|
+
var styles$n = {"root":"RichTitle-module_root__BK_WT","slide":"RichTitle-module_slide__1A-gB","game":"RichTitle-module_game__1g8Bn","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"};
|
|
1490
1522
|
|
|
1491
1523
|
var RichTitle = function RichTitle(_ref) {
|
|
1492
1524
|
var _ref$block = _ref.block,
|
|
@@ -1498,10 +1530,10 @@ var RichTitle = function RichTitle(_ref) {
|
|
|
1498
1530
|
_ref$block$data$as = _ref$block$data.as,
|
|
1499
1531
|
TagName = _ref$block$data$as === void 0 ? 'h1' : _ref$block$data$as,
|
|
1500
1532
|
styleContext = _ref.styleContext;
|
|
1501
|
-
var classNames = [[styles$
|
|
1533
|
+
var classNames = [[styles$n.root, true], [styles$n[onlyOn], true], [styles$n.featured, !!featured]];
|
|
1502
1534
|
|
|
1503
1535
|
if (styleContext) {
|
|
1504
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
1536
|
+
classNames = makeStyleContext(classNames, styleContext, styles$n);
|
|
1505
1537
|
}
|
|
1506
1538
|
|
|
1507
1539
|
return React.createElement(TagName, {
|
|
@@ -1510,7 +1542,7 @@ var RichTitle = function RichTitle(_ref) {
|
|
|
1510
1542
|
}, first, second && React.createElement("span", null, " ", second));
|
|
1511
1543
|
};
|
|
1512
1544
|
|
|
1513
|
-
var styles$
|
|
1545
|
+
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","isInIntro":"SimpleBlock-module_isInIntro__DfutD","center":"SimpleBlock-module_center__2rjif","isInImportantLead":"SimpleBlock-module_isInImportantLead__3VGzT","isInAnswer":"SimpleBlock-module_isInAnswer__3aX6X","mobile":"SimpleBlock-module_mobile__Ckgek","desktop":"SimpleBlock-module_desktop__2se2o","isDark":"SimpleBlock-module_isDark__22q5s"};
|
|
1514
1546
|
|
|
1515
1547
|
var SimpleBlock = function SimpleBlock(_ref) {
|
|
1516
1548
|
var _ref$block = _ref.block,
|
|
@@ -1519,10 +1551,10 @@ var SimpleBlock = function SimpleBlock(_ref) {
|
|
|
1519
1551
|
onlyOn = _ref$block.only_on,
|
|
1520
1552
|
styleContext = _ref.styleContext;
|
|
1521
1553
|
var TagName;
|
|
1522
|
-
var classNames = [[styles$
|
|
1554
|
+
var classNames = [[styles$o[type], !!type && !!styles$o[type]], [styles$o[onlyOn], true]];
|
|
1523
1555
|
|
|
1524
1556
|
if (styleContext) {
|
|
1525
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
1557
|
+
classNames = makeStyleContext(classNames, styleContext, styles$o);
|
|
1526
1558
|
}
|
|
1527
1559
|
|
|
1528
1560
|
switch (type) {
|
|
@@ -1553,7 +1585,7 @@ var SimpleBlock = function SimpleBlock(_ref) {
|
|
|
1553
1585
|
});
|
|
1554
1586
|
};
|
|
1555
1587
|
|
|
1556
|
-
var styles$
|
|
1588
|
+
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"};
|
|
1557
1589
|
|
|
1558
1590
|
var ListBlock = function ListBlock(_ref) {
|
|
1559
1591
|
var _ref$block = _ref.block,
|
|
@@ -1562,10 +1594,10 @@ var ListBlock = function ListBlock(_ref) {
|
|
|
1562
1594
|
onlyOn = _ref$block.only_on,
|
|
1563
1595
|
styleContext = _ref.styleContext;
|
|
1564
1596
|
var TagName = type;
|
|
1565
|
-
var classNames = [[styles$
|
|
1597
|
+
var classNames = [[styles$p.root, true], [styles$p[onlyOn], true], [styles$p[type], !!type && !!styles$p[type]]];
|
|
1566
1598
|
|
|
1567
1599
|
if (styleContext) {
|
|
1568
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
1600
|
+
classNames = makeStyleContext(classNames, styleContext, styles$p);
|
|
1569
1601
|
}
|
|
1570
1602
|
|
|
1571
1603
|
return React.createElement(TagName, {
|
|
@@ -1581,7 +1613,7 @@ var ListBlock = function ListBlock(_ref) {
|
|
|
1581
1613
|
}));
|
|
1582
1614
|
};
|
|
1583
1615
|
|
|
1584
|
-
var styles$
|
|
1616
|
+
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"};
|
|
1585
1617
|
|
|
1586
1618
|
var RelatedBlock = function RelatedBlock(_ref) {
|
|
1587
1619
|
var _ref$block = _ref.block,
|
|
@@ -1590,32 +1622,32 @@ var RelatedBlock = function RelatedBlock(_ref) {
|
|
|
1590
1622
|
related = _ref$block$data.related,
|
|
1591
1623
|
onlyOn = _ref$block.only_on,
|
|
1592
1624
|
styleContext = _ref.styleContext;
|
|
1593
|
-
var classNames = [[styles$
|
|
1625
|
+
var classNames = [[styles$q.root, true], [styles$q[onlyOn], true]];
|
|
1594
1626
|
|
|
1595
1627
|
if (styleContext) {
|
|
1596
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
1628
|
+
classNames = makeStyleContext(classNames, styleContext, styles$q);
|
|
1597
1629
|
}
|
|
1598
1630
|
|
|
1599
1631
|
return React.createElement("div", {
|
|
1600
1632
|
"data-testid": "related-block",
|
|
1601
1633
|
className: makeClassName(classNames)
|
|
1602
1634
|
}, React.createElement("h3", {
|
|
1603
|
-
className: styles$
|
|
1635
|
+
className: styles$q.header
|
|
1604
1636
|
}, title), React.createElement("ul", {
|
|
1605
|
-
className: styles$
|
|
1637
|
+
className: styles$q.items
|
|
1606
1638
|
}, related.map(function (item, index) {
|
|
1607
1639
|
return React.createElement("li", {
|
|
1608
1640
|
key: item.id || index,
|
|
1609
|
-
className: styles$
|
|
1641
|
+
className: styles$q[item.layout]
|
|
1610
1642
|
}, React.createElement(Link, {
|
|
1611
1643
|
to: item.full_url || "/" + item.url
|
|
1612
1644
|
}, React.createElement("span", {
|
|
1613
|
-
className: styles$
|
|
1645
|
+
className: styles$q.first
|
|
1614
1646
|
}, item.title), item.second_title && ' ', item.second_title && React.createElement("span", null, item.second_title)));
|
|
1615
1647
|
})));
|
|
1616
1648
|
};
|
|
1617
1649
|
|
|
1618
|
-
var styles$
|
|
1650
|
+
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"};
|
|
1619
1651
|
|
|
1620
1652
|
var SourceBlock = function SourceBlock(_ref) {
|
|
1621
1653
|
var _ref$block = _ref.block,
|
|
@@ -1625,10 +1657,10 @@ var SourceBlock = function SourceBlock(_ref) {
|
|
|
1625
1657
|
origin = _ref$block$data.origin,
|
|
1626
1658
|
url = _ref$block$data.url,
|
|
1627
1659
|
styleContext = _ref.styleContext;
|
|
1628
|
-
var classNames = [[styles$
|
|
1660
|
+
var classNames = [[styles$r.root, true], [styles$r[onlyOn], true]];
|
|
1629
1661
|
|
|
1630
1662
|
if (styleContext) {
|
|
1631
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
1663
|
+
classNames = makeStyleContext(classNames, styleContext, styles$r);
|
|
1632
1664
|
}
|
|
1633
1665
|
|
|
1634
1666
|
return React.createElement("blockquote", {
|
|
@@ -1636,7 +1668,7 @@ var SourceBlock = function SourceBlock(_ref) {
|
|
|
1636
1668
|
cite: url,
|
|
1637
1669
|
className: makeClassName(classNames)
|
|
1638
1670
|
}, React.createElement("a", {
|
|
1639
|
-
className: styles$
|
|
1671
|
+
className: styles$r.text,
|
|
1640
1672
|
href: url,
|
|
1641
1673
|
target: "_blank",
|
|
1642
1674
|
rel: "noopener noreferrer"
|
|
@@ -1648,11 +1680,11 @@ var SourceBlock = function SourceBlock(_ref) {
|
|
|
1648
1680
|
}
|
|
1649
1681
|
});
|
|
1650
1682
|
}), React.createElement("footer", null, React.createElement("cite", {
|
|
1651
|
-
className: styles$
|
|
1683
|
+
className: styles$r.origin
|
|
1652
1684
|
}, origin))));
|
|
1653
1685
|
};
|
|
1654
1686
|
|
|
1655
|
-
var styles$
|
|
1687
|
+
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"};
|
|
1656
1688
|
|
|
1657
1689
|
var SensitiveBlock = function SensitiveBlock(_ref) {
|
|
1658
1690
|
var block = _ref.block,
|
|
@@ -1672,11 +1704,11 @@ var SensitiveBlock = function SensitiveBlock(_ref) {
|
|
|
1672
1704
|
isVisible(true);
|
|
1673
1705
|
};
|
|
1674
1706
|
|
|
1675
|
-
var classNames = [[styles$
|
|
1707
|
+
var classNames = [[styles$s.root, true], [styles$s.visible, visible], [styles$s[display], display && styles$s[display]]];
|
|
1676
1708
|
var context = ['isInSensitiveBlock'];
|
|
1677
1709
|
|
|
1678
1710
|
if (styleContext) {
|
|
1679
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
1711
|
+
classNames = makeStyleContext(classNames, styleContext, styles$s);
|
|
1680
1712
|
context = [].concat(styleContext, ['isInSensitiveBlock']);
|
|
1681
1713
|
}
|
|
1682
1714
|
|
|
@@ -1684,32 +1716,32 @@ var SensitiveBlock = function SensitiveBlock(_ref) {
|
|
|
1684
1716
|
"data-testid": "sensitive-block",
|
|
1685
1717
|
className: makeClassName(classNames)
|
|
1686
1718
|
}, React.createElement("div", {
|
|
1687
|
-
className: styles$
|
|
1719
|
+
className: styles$s.container
|
|
1688
1720
|
}, React.createElement("div", {
|
|
1689
|
-
className: styles$
|
|
1721
|
+
className: styles$s.overlay,
|
|
1690
1722
|
style: {
|
|
1691
1723
|
backgroundImage: "url(" + blurredImage + ")"
|
|
1692
1724
|
}
|
|
1693
1725
|
}, React.createElement("div", {
|
|
1694
|
-
className: styles$
|
|
1726
|
+
className: styles$s.content
|
|
1695
1727
|
}, React.createElement("p", {
|
|
1696
1728
|
dangerouslySetInnerHTML: {
|
|
1697
1729
|
__html: block.title
|
|
1698
1730
|
}
|
|
1699
1731
|
}), React.createElement("div", {
|
|
1700
|
-
className: styles$
|
|
1732
|
+
className: styles$s.button
|
|
1701
1733
|
}, React.createElement(Button, {
|
|
1702
1734
|
onClick: function onClick() {
|
|
1703
1735
|
return handleClick();
|
|
1704
1736
|
},
|
|
1705
1737
|
theme: "light"
|
|
1706
1738
|
}, block.button.text)))), React.createElement("div", {
|
|
1707
|
-
className: styles$
|
|
1739
|
+
className: styles$s.media
|
|
1708
1740
|
}, React.createElement(EmbedBlockContainer, {
|
|
1709
1741
|
block: block.item,
|
|
1710
1742
|
styleContext: context
|
|
1711
1743
|
}))), cc && React.createElement("figcaption", {
|
|
1712
|
-
className: styles$
|
|
1744
|
+
className: styles$s.figcaption
|
|
1713
1745
|
}, React.createElement(MediaCaption, {
|
|
1714
1746
|
credit: credit,
|
|
1715
1747
|
caption: caption,
|
|
@@ -1717,7 +1749,7 @@ var SensitiveBlock = function SensitiveBlock(_ref) {
|
|
|
1717
1749
|
})));
|
|
1718
1750
|
};
|
|
1719
1751
|
|
|
1720
|
-
var styles$
|
|
1752
|
+
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"};
|
|
1721
1753
|
|
|
1722
1754
|
var GroupedBlock = function GroupedBlock(_ref) {
|
|
1723
1755
|
var block = _ref.block,
|
|
@@ -1734,21 +1766,21 @@ var GroupedBlock = function GroupedBlock(_ref) {
|
|
|
1734
1766
|
var sumWidth = normalizedBoxesWidth.reduce(function (sum, x) {
|
|
1735
1767
|
return sum + x;
|
|
1736
1768
|
});
|
|
1737
|
-
var classNames = [[styles$
|
|
1769
|
+
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]]];
|
|
1738
1770
|
|
|
1739
1771
|
if (styleContext) {
|
|
1740
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
1772
|
+
classNames = makeStyleContext(classNames, styleContext, styles$t);
|
|
1741
1773
|
}
|
|
1742
1774
|
|
|
1743
1775
|
return React.createElement("div", {
|
|
1744
1776
|
"data-testid": "grouped-block",
|
|
1745
1777
|
className: makeClassName(classNames)
|
|
1746
1778
|
}, React.createElement("div", {
|
|
1747
|
-
className: styles$
|
|
1779
|
+
className: styles$t.items
|
|
1748
1780
|
}, block.data.map(function (item, index) {
|
|
1749
1781
|
var percentWidth = normalizedBoxesWidth[index] / sumWidth * 100;
|
|
1750
1782
|
return React.createElement("div", {
|
|
1751
|
-
className: styles$
|
|
1783
|
+
className: styles$t.item,
|
|
1752
1784
|
key: item.id,
|
|
1753
1785
|
style: {
|
|
1754
1786
|
width: percentWidth + "%"
|
|
@@ -1761,7 +1793,7 @@ var GroupedBlock = function GroupedBlock(_ref) {
|
|
|
1761
1793
|
styleContext: ['isInGroupedBlock']
|
|
1762
1794
|
}));
|
|
1763
1795
|
})), block.cc && React.createElement("figcaption", {
|
|
1764
|
-
className: styles$
|
|
1796
|
+
className: styles$t.figcaption
|
|
1765
1797
|
}, React.createElement(MediaCaption, {
|
|
1766
1798
|
credit: block.credit,
|
|
1767
1799
|
caption: block.caption,
|
|
@@ -1769,32 +1801,32 @@ var GroupedBlock = function GroupedBlock(_ref) {
|
|
|
1769
1801
|
})));
|
|
1770
1802
|
};
|
|
1771
1803
|
|
|
1772
|
-
var styles$
|
|
1804
|
+
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"};
|
|
1773
1805
|
|
|
1774
1806
|
var MetaItem = function MetaItem(_ref) {
|
|
1775
1807
|
var hasSource = _ref.hasSource,
|
|
1776
1808
|
type = _ref.type,
|
|
1777
1809
|
children = _ref.children,
|
|
1778
1810
|
bullets = _ref.bullets;
|
|
1779
|
-
var classNames = [[styles$
|
|
1811
|
+
var classNames = [[styles$u.root, true], [styles$u[type], !!type && !!styles$u[type]], [styles$u.hasSource, !!hasSource], [styles$u.hasBullets, !!bullets]];
|
|
1780
1812
|
return React.createElement("div", {
|
|
1781
1813
|
"data-testid": "meta-item",
|
|
1782
1814
|
className: makeClassName(classNames)
|
|
1783
1815
|
}, children);
|
|
1784
1816
|
};
|
|
1785
1817
|
|
|
1786
|
-
var styles$
|
|
1818
|
+
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"};
|
|
1787
1819
|
|
|
1788
1820
|
var MetaItemLive = function MetaItemLive(_ref) {
|
|
1789
1821
|
var _ref$theme = _ref.theme,
|
|
1790
1822
|
theme = _ref$theme === void 0 ? 'gold' : _ref$theme;
|
|
1791
|
-
var classNames = [[styles$
|
|
1823
|
+
var classNames = [[styles$v.root, true], [styles$v[theme], !!theme && styles$v[theme]]];
|
|
1792
1824
|
return React.createElement("div", {
|
|
1793
1825
|
"data-testid": "meta-item-live",
|
|
1794
1826
|
"data-meta": "live",
|
|
1795
1827
|
className: makeClassName(classNames)
|
|
1796
1828
|
}, React.createElement("div", {
|
|
1797
|
-
className: styles$
|
|
1829
|
+
className: styles$v.frame
|
|
1798
1830
|
}));
|
|
1799
1831
|
};
|
|
1800
1832
|
|
|
@@ -1819,7 +1851,7 @@ var pluralize = function pluralize(number, one, two, five) {
|
|
|
1819
1851
|
return five;
|
|
1820
1852
|
};
|
|
1821
1853
|
|
|
1822
|
-
var styles$
|
|
1854
|
+
var styles$w = {"root":"DocumentItemsCount-module_root__P3q-z","items":"DocumentItemsCount-module_items__3pfxW"};
|
|
1823
1855
|
|
|
1824
1856
|
var DocumentItemsCount = function DocumentItemsCount(_ref) {
|
|
1825
1857
|
var type = _ref.type,
|
|
@@ -1856,9 +1888,9 @@ var DocumentItemsCount = function DocumentItemsCount(_ref) {
|
|
|
1856
1888
|
var itemsCount = items + " " + pluralize(items, i18n[lang][type].one, i18n[lang][type].two, i18n[lang][type].five);
|
|
1857
1889
|
return React.createElement("div", {
|
|
1858
1890
|
"data-testid": "document-items-count",
|
|
1859
|
-
className: styles$
|
|
1891
|
+
className: styles$w.root
|
|
1860
1892
|
}, children, React.createElement("span", {
|
|
1861
|
-
className: styles$
|
|
1893
|
+
className: styles$w.items
|
|
1862
1894
|
}, itemsCount));
|
|
1863
1895
|
};
|
|
1864
1896
|
|
|
@@ -1981,7 +2013,7 @@ var MetaContainer = function MetaContainer(_ref) {
|
|
|
1981
2013
|
icon: isListened ? 'listened' : 'read',
|
|
1982
2014
|
size: "unset"
|
|
1983
2015
|
})), isSlides && lang === 'ru' && React.createElement("div", {
|
|
1984
|
-
className: styles$
|
|
2016
|
+
className: styles$g.bookmark
|
|
1985
2017
|
}, React.createElement(BookmarkButton, {
|
|
1986
2018
|
isInBookmarks: isInBookmarks,
|
|
1987
2019
|
onClick: function onClick() {
|
|
@@ -2143,7 +2175,7 @@ var RenderBlocks = function RenderBlocks(_ref) {
|
|
|
2143
2175
|
}
|
|
2144
2176
|
};
|
|
2145
2177
|
|
|
2146
|
-
var styles$
|
|
2178
|
+
var styles$x = {"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"};
|
|
2147
2179
|
|
|
2148
2180
|
var Cover = function Cover(_ref) {
|
|
2149
2181
|
var _ref$block = _ref.block,
|
|
@@ -2164,15 +2196,15 @@ var Cover = function Cover(_ref) {
|
|
|
2164
2196
|
setIsPopoverShown = _useState[1];
|
|
2165
2197
|
|
|
2166
2198
|
var style = {};
|
|
2167
|
-
var classNames = [[styles$
|
|
2199
|
+
var classNames = [[styles$x.root, true], [styles$x[onlyOn], !!onlyOn && !!styles$x[onlyOn]]];
|
|
2168
2200
|
|
|
2169
2201
|
if (styleContext) {
|
|
2170
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
2202
|
+
classNames = makeStyleContext(classNames, styleContext, styles$x);
|
|
2171
2203
|
}
|
|
2172
2204
|
|
|
2173
2205
|
if (gradients) {
|
|
2174
2206
|
var theme = [gradients.text_rgb === '0,0,0' ? 'dark' : 'light'];
|
|
2175
|
-
classNames = makeStyleContext(classNames, theme, styles$
|
|
2207
|
+
classNames = makeStyleContext(classNames, theme, styles$x);
|
|
2176
2208
|
style.backgroundImage = generateGradient(gradients.bg_rgb, 'mediaBlockBottom');
|
|
2177
2209
|
}
|
|
2178
2210
|
|
|
@@ -2188,13 +2220,13 @@ var Cover = function Cover(_ref) {
|
|
|
2188
2220
|
"data-testid": "cover",
|
|
2189
2221
|
className: makeClassName(classNames)
|
|
2190
2222
|
}, React.createElement("div", {
|
|
2191
|
-
className: styles$
|
|
2223
|
+
className: styles$x.image
|
|
2192
2224
|
}, React.createElement(Image, {
|
|
2193
2225
|
optimized: urls,
|
|
2194
2226
|
ratio: mobileRatio,
|
|
2195
2227
|
display: "narrow"
|
|
2196
2228
|
})), React.createElement("div", {
|
|
2197
|
-
className: styles$
|
|
2229
|
+
className: styles$x.body,
|
|
2198
2230
|
style: style
|
|
2199
2231
|
}, blocks.map(function (item) {
|
|
2200
2232
|
return React.createElement(RenderBlocks, {
|
|
@@ -2203,7 +2235,7 @@ var Cover = function Cover(_ref) {
|
|
|
2203
2235
|
styleContext: styleContext
|
|
2204
2236
|
});
|
|
2205
2237
|
})), cc === 'button' && React.createElement("button", {
|
|
2206
|
-
className: styles$
|
|
2238
|
+
className: styles$x.control,
|
|
2207
2239
|
type: "button",
|
|
2208
2240
|
"aria-label": "Open",
|
|
2209
2241
|
onClick: function onClick() {
|
|
@@ -2216,7 +2248,7 @@ var Cover = function Cover(_ref) {
|
|
|
2216
2248
|
}, renderCC('isInPopover')));
|
|
2217
2249
|
};
|
|
2218
2250
|
|
|
2219
|
-
var styles$
|
|
2251
|
+
var styles$y = {"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"};
|
|
2220
2252
|
|
|
2221
2253
|
var HalfBlock = function HalfBlock(_ref) {
|
|
2222
2254
|
var _ref$block = _ref.block,
|
|
@@ -2228,25 +2260,25 @@ var HalfBlock = function HalfBlock(_ref) {
|
|
|
2228
2260
|
credit = _ref$block$data$cover.credit,
|
|
2229
2261
|
caption = _ref$block$data$cover.caption,
|
|
2230
2262
|
styleContext = _ref.styleContext;
|
|
2231
|
-
var classNames = [[styles$
|
|
2263
|
+
var classNames = [[styles$y.root, true], [styles$y[onlyOn], true]];
|
|
2232
2264
|
|
|
2233
2265
|
if (styleContext) {
|
|
2234
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
2266
|
+
classNames = makeStyleContext(classNames, styleContext, styles$y);
|
|
2235
2267
|
}
|
|
2236
2268
|
|
|
2237
2269
|
return React.createElement("div", {
|
|
2238
2270
|
"data-testid": "half-block",
|
|
2239
2271
|
className: makeClassName(classNames)
|
|
2240
2272
|
}, React.createElement("div", {
|
|
2241
|
-
className: styles$
|
|
2273
|
+
className: styles$y.main
|
|
2242
2274
|
}, React.createElement("div", {
|
|
2243
|
-
className: styles$
|
|
2275
|
+
className: styles$y.image
|
|
2244
2276
|
}, React.createElement(Image, {
|
|
2245
2277
|
optimized: optimized,
|
|
2246
2278
|
ratio: ratio,
|
|
2247
2279
|
display: "super_full"
|
|
2248
2280
|
})), React.createElement("div", {
|
|
2249
|
-
className: styles$
|
|
2281
|
+
className: styles$y.body
|
|
2250
2282
|
}, data.blocks.map(function (item) {
|
|
2251
2283
|
return React.createElement(RenderBlocks, {
|
|
2252
2284
|
key: item.id,
|
|
@@ -2254,7 +2286,7 @@ var HalfBlock = function HalfBlock(_ref) {
|
|
|
2254
2286
|
styleContext: ['rich']
|
|
2255
2287
|
});
|
|
2256
2288
|
}))), React.createElement("div", {
|
|
2257
|
-
className: styles$
|
|
2289
|
+
className: styles$y.footer
|
|
2258
2290
|
}, React.createElement(MediaCaption, {
|
|
2259
2291
|
credit: credit,
|
|
2260
2292
|
caption: caption,
|
|
@@ -2262,17 +2294,17 @@ var HalfBlock = function HalfBlock(_ref) {
|
|
|
2262
2294
|
})));
|
|
2263
2295
|
};
|
|
2264
2296
|
|
|
2265
|
-
var styles$
|
|
2297
|
+
var styles$z = {"root":"ImportantLead-module_root__2BdT3","slide":"ImportantLead-module_slide__3kQ9x","mobile":"ImportantLead-module_mobile__3BXbm","desktop":"ImportantLead-module_desktop__3Zljc"};
|
|
2266
2298
|
|
|
2267
2299
|
var ImportantLead = function ImportantLead(_ref) {
|
|
2268
2300
|
var _ref$block = _ref.block,
|
|
2269
2301
|
onlyOn = _ref$block.only_on,
|
|
2270
2302
|
data = _ref$block.data,
|
|
2271
2303
|
styleContext = _ref.styleContext;
|
|
2272
|
-
var classNames = [[styles$
|
|
2304
|
+
var classNames = [[styles$z.root, true], [styles$z[onlyOn], !!onlyOn]];
|
|
2273
2305
|
|
|
2274
2306
|
if (styleContext) {
|
|
2275
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
2307
|
+
classNames = makeStyleContext(classNames, styleContext, styles$z);
|
|
2276
2308
|
}
|
|
2277
2309
|
|
|
2278
2310
|
return React.createElement("div", {
|
|
@@ -2287,7 +2319,7 @@ var ImportantLead = function ImportantLead(_ref) {
|
|
|
2287
2319
|
}));
|
|
2288
2320
|
};
|
|
2289
2321
|
|
|
2290
|
-
var styles$
|
|
2322
|
+
var styles$A = {"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"};
|
|
2291
2323
|
|
|
2292
2324
|
var Spoiler = function Spoiler(_ref) {
|
|
2293
2325
|
var _ref$block = _ref.block,
|
|
@@ -2322,11 +2354,11 @@ var Spoiler = function Spoiler(_ref) {
|
|
|
2322
2354
|
}
|
|
2323
2355
|
};
|
|
2324
2356
|
|
|
2325
|
-
var classNames = [[styles$
|
|
2357
|
+
var classNames = [[styles$A.root, true], [styles$A[onlyOn], !!onlyOn], [styles$A[display], !!display && styles$A[display]], [[styles$A.spoiled], !!spoiled]];
|
|
2326
2358
|
var context = ['center'];
|
|
2327
2359
|
|
|
2328
2360
|
if (styleContext) {
|
|
2329
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
2361
|
+
classNames = makeStyleContext(classNames, styleContext, styles$A);
|
|
2330
2362
|
}
|
|
2331
2363
|
|
|
2332
2364
|
var buttonCollapse = button ? button.collapse : 'Свернуть';
|
|
@@ -2336,9 +2368,9 @@ var Spoiler = function Spoiler(_ref) {
|
|
|
2336
2368
|
className: makeClassName(classNames),
|
|
2337
2369
|
"data-testid": "spoiler"
|
|
2338
2370
|
}, React.createElement("div", {
|
|
2339
|
-
className: styles$
|
|
2371
|
+
className: styles$A.header
|
|
2340
2372
|
}, title && React.createElement("h3", null, title)), React.createElement("div", {
|
|
2341
|
-
className: styles$
|
|
2373
|
+
className: styles$A.body
|
|
2342
2374
|
}, blocks.map(function (item) {
|
|
2343
2375
|
return React.createElement(RenderBlocks, {
|
|
2344
2376
|
key: item.id,
|
|
@@ -2346,7 +2378,7 @@ var Spoiler = function Spoiler(_ref) {
|
|
|
2346
2378
|
styleContext: context
|
|
2347
2379
|
});
|
|
2348
2380
|
})), React.createElement("div", {
|
|
2349
|
-
className: styles$
|
|
2381
|
+
className: styles$A.footer
|
|
2350
2382
|
}, React.createElement(Button, {
|
|
2351
2383
|
size: "default",
|
|
2352
2384
|
theme: "gray",
|
|
@@ -2359,7 +2391,7 @@ var Spoiler = function Spoiler(_ref) {
|
|
|
2359
2391
|
}))));
|
|
2360
2392
|
};
|
|
2361
2393
|
|
|
2362
|
-
var styles$
|
|
2394
|
+
var styles$B = {"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"};
|
|
2363
2395
|
|
|
2364
2396
|
/* eslint-disable react/jsx-no-target-blank */
|
|
2365
2397
|
var RelatedRichBlock = function RelatedRichBlock(_ref) {
|
|
@@ -2398,18 +2430,18 @@ var RelatedRichBlock = function RelatedRichBlock(_ref) {
|
|
|
2398
2430
|
postMessage('richRelated', url, 'click');
|
|
2399
2431
|
};
|
|
2400
2432
|
|
|
2401
|
-
var classNames = [[styles$
|
|
2433
|
+
var classNames = [[styles$B.root, true], [styles$B[cardType], !!layout && !!styles$B[cardType]], [styles$B.hasGradient, !!gradients], [styles$B[onlyOn], !!onlyOn && !!styles$B[onlyOn]]];
|
|
2402
2434
|
var context = ['isInMediaBlock'];
|
|
2403
2435
|
|
|
2404
2436
|
if (styleContext) {
|
|
2405
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
2437
|
+
classNames = makeStyleContext(classNames, styleContext, styles$B);
|
|
2406
2438
|
context = [].concat(styleContext, ['isInMediaBlock']);
|
|
2407
2439
|
}
|
|
2408
2440
|
|
|
2409
2441
|
if (gradients) {
|
|
2410
2442
|
styleHeader.backgroundImage = generateGradient(gradients.bg_rgb, 'mediaBlockTop');
|
|
2411
2443
|
var theme = [gradients.text_rgb === '0,0,0' ? 'dark' : 'light'];
|
|
2412
|
-
classNames = makeStyleContext(classNames, theme, styles$
|
|
2444
|
+
classNames = makeStyleContext(classNames, theme, styles$B);
|
|
2413
2445
|
|
|
2414
2446
|
if (onlyOn === 'desktop') {
|
|
2415
2447
|
style.backgroundImage = generateGradient(gradients.bg_rgb, 'mediaBlockBottom');
|
|
@@ -2425,27 +2457,27 @@ var RelatedRichBlock = function RelatedRichBlock(_ref) {
|
|
|
2425
2457
|
},
|
|
2426
2458
|
ref: ref
|
|
2427
2459
|
}, layout === 'rich' && React.createElement(React.Fragment, null, React.createElement("div", {
|
|
2428
|
-
className: styles$
|
|
2460
|
+
className: styles$B.overlay,
|
|
2429
2461
|
style: style
|
|
2430
2462
|
}), React.createElement("div", {
|
|
2431
|
-
className: styles$
|
|
2463
|
+
className: styles$B.overlayHeader,
|
|
2432
2464
|
style: styleHeader
|
|
2433
2465
|
})), React.createElement("div", {
|
|
2434
|
-
className: styles$
|
|
2466
|
+
className: styles$B.tag
|
|
2435
2467
|
}, React.createElement(Tag, {
|
|
2436
2468
|
size: "small",
|
|
2437
2469
|
theme: "inherit",
|
|
2438
2470
|
styleContext: "richRelated"
|
|
2439
2471
|
}, tag)), React.createElement("div", {
|
|
2440
|
-
className: styles$
|
|
2472
|
+
className: styles$B.cover
|
|
2441
2473
|
}, React.createElement("div", {
|
|
2442
|
-
className: styles$
|
|
2474
|
+
className: styles$B.picture
|
|
2443
2475
|
}, React.createElement(Image, {
|
|
2444
2476
|
optimized: urls,
|
|
2445
2477
|
ratio: ratio,
|
|
2446
2478
|
display: "narrow"
|
|
2447
2479
|
}))), React.createElement("div", {
|
|
2448
|
-
className: styles$
|
|
2480
|
+
className: styles$B.body
|
|
2449
2481
|
}, blocks.map(function (item) {
|
|
2450
2482
|
return React.createElement(RenderBlocks, {
|
|
2451
2483
|
key: item.id,
|
|
@@ -2526,7 +2558,7 @@ var RawHtmlBlock = function RawHtmlBlock(_ref) {
|
|
|
2526
2558
|
}
|
|
2527
2559
|
};
|
|
2528
2560
|
|
|
2529
|
-
var styles$
|
|
2561
|
+
var styles$C = {"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","text":"ToolbarButton-module_text__32m6s"};
|
|
2530
2562
|
|
|
2531
2563
|
var ToolbarButton = function ToolbarButton(_ref) {
|
|
2532
2564
|
var children = _ref.children,
|
|
@@ -2534,7 +2566,7 @@ var ToolbarButton = function ToolbarButton(_ref) {
|
|
|
2534
2566
|
theme = _ref.theme,
|
|
2535
2567
|
isActive = _ref.isActive,
|
|
2536
2568
|
_onClick = _ref.onClick;
|
|
2537
|
-
var classNames = [[styles$
|
|
2569
|
+
var classNames = [[styles$C.root, true], [styles$C[type], !!styles$C[type]], [styles$C[theme], !!styles$C[theme] && !!theme], [styles$C.isActive, !!isActive]];
|
|
2538
2570
|
return React.createElement("li", {
|
|
2539
2571
|
className: toolbarStyles.item
|
|
2540
2572
|
}, React.createElement("button", {
|
|
@@ -2549,9 +2581,9 @@ var ToolbarButton = function ToolbarButton(_ref) {
|
|
|
2549
2581
|
icon: type,
|
|
2550
2582
|
styleContext: "isInToolbar"
|
|
2551
2583
|
}), children && React.createElement("span", {
|
|
2552
|
-
className: styles$
|
|
2584
|
+
className: styles$C.text
|
|
2553
2585
|
}, children)));
|
|
2554
2586
|
};
|
|
2555
2587
|
|
|
2556
|
-
export { BookmarkButton, Button, CardTitle, ChapterBlock, Cover, DocumentItemsCount, DotsOnImage, Dropdown, EmbedBlockContainer, Footnote, GroupedBlock, HalfBlock, Image, ImportantLead, Lazy, ListBlock, MaterialNote, MaterialTitle, MediaCaption, Menu, Meta, MetaItem, MetaItemLive, Popover, Primary, QuoteBlock, RawHtmlBlock, RelatedBlock, RelatedRichBlock, RenderBlocks, RichTitle, Secondary, SensitiveBlock, SimpleBlock, SimpleTitle, SourceBlock, Spoiler, SvgSymbol, Switcher, Table, Tag, Timestamp, Toolbar, ToolbarButton };
|
|
2588
|
+
export { 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, SimpleBlock, SimpleTitle, SourceBlock, Spoiler, SvgSymbol, Switcher, Table, Tag, Timestamp, Toolbar, ToolbarButton };
|
|
2557
2589
|
//# sourceMappingURL=ui-kit-2.esm.js.map
|