@meduza/ui-kit-2 1.1.3 → 1.2.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/Meta/Meta.types.d.ts +0 -5
- package/dist/MetaItem/MetaItem.types.d.ts +1 -0
- package/dist/RawHtmlBlock/RawHtmlBlock.types.d.ts +1 -5
- package/dist/RenderBlocks/RenderBlocks.types.d.ts +1 -5
- package/dist/SvgSymbol/SvgSymbol.types.d.ts +2 -2
- package/dist/SvgSymbol/icons.d.ts +0 -25
- package/dist/ToolbarButton/ToolbarButton.types.d.ts +1 -2
- package/dist/constants.d.ts +0 -2
- package/dist/index.d.ts +0 -1
- package/dist/types.d.ts +1 -1
- package/dist/ui-kit-2.cjs.development.js +69 -167
- package/dist/ui-kit-2.cjs.development.js.map +1 -1
- package/dist/ui-kit-2.cjs.production.min.js +1 -1
- package/dist/ui-kit-2.cjs.production.min.js.map +1 -1
- package/dist/ui-kit-2.esm.js +70 -167
- package/dist/ui-kit-2.esm.js.map +1 -1
- package/dist/ui-kit-game.css +47 -156
- package/dist/ui-kit.css +47 -156
- package/package.json +13 -13
- package/src/Cover/Cover.module.css +0 -17
- package/src/Meta/Meta.module.css +0 -11
- package/src/Meta/Meta.stories.tsx +1 -3
- package/src/Meta/Meta.types.ts +0 -5
- package/src/Meta/MetaContainer.tsx +5 -44
- package/src/MetaItem/MetaItem.module.css +12 -22
- package/src/MetaItem/MetaItem.types.ts +1 -0
- package/src/MetaItem/index.tsx +4 -2
- package/src/RawHtmlBlock/RawHtmlBlock.types.ts +1 -5
- package/src/RawHtmlBlock/index.tsx +0 -8
- package/src/RawHtmlBlock/mock.json +1 -2
- package/src/RenderBlocks/RenderBlocks.types.ts +1 -5
- package/src/RenderBlocks/index.tsx +0 -8
- package/src/RichTitle/RichTitle.module.css +22 -3
- package/src/SvgSymbol/SvgSymbol.module.css +1 -26
- package/src/SvgSymbol/SvgSymbol.stories.tsx +1 -2
- package/src/SvgSymbol/SvgSymbol.types.ts +0 -6
- package/src/SvgSymbol/icons.ts +0 -33
- package/src/Tag/Tag.module.css +7 -4
- package/src/Toolbar/Toolbar.stories.tsx +2 -18
- package/src/ToolbarButton/ToolbarButton.module.css +0 -16
- package/src/ToolbarButton/ToolbarButton.types.ts +0 -2
- package/src/ToolbarButton/index.tsx +0 -7
- package/src/constants.ts +1 -3
- package/src/index.tsx +0 -1
- package/src/types.ts +0 -1
- package/dist/BookmarkButton/BookmarkButton.types.d.ts +0 -6
- package/dist/BookmarkButton/index.d.ts +0 -3
- package/src/BookmarkButton/BookmarkButton.css +0 -45
- package/src/BookmarkButton/BookmarkButton.module.css +0 -45
- package/src/BookmarkButton/BookmarkButton.stories.module.css +0 -5
- package/src/BookmarkButton/BookmarkButton.stories.tsx +0 -39
- package/src/BookmarkButton/BookmarkButton.test.tsx +0 -33
- package/src/BookmarkButton/BookmarkButton.types.ts +0 -6
- package/src/BookmarkButton/index.tsx +0 -35
package/dist/ui-kit-2.esm.js
CHANGED
|
@@ -30,7 +30,7 @@ const ButtonLoader = () => (/*#__PURE__*/React.createElement("svg", {
|
|
|
30
30
|
d: "M15 0c8.18 0 14.83 6.547 14.997 14.686L30 15h-2c0-7.077-5.655-12.833-12.693-12.996L15 2V0z"
|
|
31
31
|
}))));
|
|
32
32
|
|
|
33
|
-
var styles$
|
|
33
|
+
var styles$I = {"root":"Button-module_root__9OQ5b","gold":"Button-module_gold__q-XBP","isLoading":"Button-module_isLoading__Z53G4","gray":"Button-module_gray__fypDq","sand":"Button-module_sand__e5v-k","dark":"Button-module_dark__qv4NQ","light":"Button-module_light__TLYLT","black":"Button-module_black__GIsbk","red":"Button-module_red__kybni","default":"Button-module_default__utLb-","isInToolbar":"Button-module_isInToolbar__84SG-","isInPodcast":"Button-module_isInPodcast__SNSpl","isInSpoiler":"Button-module_isInSpoiler__pGp-w","isInChronology":"Button-module_isInChronology__T-znS","ghost":"Button-module_ghost__1s5-r","isInDropdown":"Button-module_isInDropdown__gN7TI","loader":"Button-module_loader__r0Mjs","isFancy":"Button-module_isFancy__gTRmu"};
|
|
34
34
|
|
|
35
35
|
const Button = ({
|
|
36
36
|
theme = 'gold',
|
|
@@ -50,12 +50,12 @@ const Button = ({
|
|
|
50
50
|
};
|
|
51
51
|
return /*#__PURE__*/React.createElement("button", {
|
|
52
52
|
"data-testid": "button",
|
|
53
|
-
className: makeClassName([[styles$
|
|
53
|
+
className: makeClassName([[styles$I.root, true], [styles$I[size], !!size], [styles$I[theme], !!theme], [styles$I[appearance], !!appearance], [styles$I[state], !!state && !!styles$I[state]], [styles$I[styleContext], !!styleContext]]),
|
|
54
54
|
disabled: disabled,
|
|
55
55
|
onClick: handleClick,
|
|
56
56
|
type: "button"
|
|
57
57
|
}, state === 'isLoading' ? (/*#__PURE__*/React.createElement("span", {
|
|
58
|
-
className: styles$
|
|
58
|
+
className: styles$I.loader
|
|
59
59
|
}, /*#__PURE__*/React.createElement(ButtonLoader, null))) : children);
|
|
60
60
|
};
|
|
61
61
|
|
|
@@ -192,11 +192,6 @@ const icons = {
|
|
|
192
192
|
<path d="M1.45592 9.99949C0.895922 9.99949 0.419922 9.53749 0.419922 8.96348C0.419922 8.62748 0.601922 8.31948 0.853922 8.13748C4.40992 5.54748 5.45992 4.62348 5.45992 3.50348C5.45992 2.69148 4.71792 2.28549 3.93392 2.28549C3.16392 2.28549 2.51992 2.52348 1.95992 2.91548C1.81992 3.01348 1.65192 3.06948 1.46992 3.06948C0.979922 3.06948 0.587922 2.67748 0.587922 2.18748C0.587922 1.89348 0.741922 1.62748 0.951922 1.47348C1.81992 0.815485 2.88392 0.521484 3.90592 0.521484C5.89392 0.521484 7.47592 1.64148 7.47592 3.50348C7.47592 5.09948 6.15992 6.48549 3.65392 8.24949H6.76192C7.23792 8.24949 7.64392 8.64149 7.64392 9.11749C7.64392 9.60748 7.23792 9.99949 6.76192 9.99949H1.45592Z" fill="black"/>
|
|
193
193
|
</g>`
|
|
194
194
|
},
|
|
195
|
-
podcastBookmark: {
|
|
196
|
-
width: 25,
|
|
197
|
-
height: 27,
|
|
198
|
-
content: '<path d="M12.5 27C19.404 27 25 21.404 25 14.5S19.404 2 12.5 2 0 7.596 0 14.5 5.596 27 12.5 27zm0-1.5c-6.075 0-11-4.925-11-11s4.925-11 11-11 11 4.925 11 11-4.925 11-11 11z" /> <path d="M17.071 8.25H8a.75.75 0 00-.75.75v11.545l.007.104a.75.75 0 001.228.468l4.05-3.437 4.051 3.437a.75.75 0 001.235-.572V9a.75.75 0 00-.75-.75zm-.75 1.499v9.176l-3.3-2.8-.098-.07a.75.75 0 00-.873.07l-3.3 2.799V9.749h7.571z" data-stroke="true" /> <path d="M17.071 8.25H8a.75.75 0 00-.75.75v11.545l.007.104a.75.75 0 001.228.468l4.05-3.437 4.051 3.437a.75.75 0 001.235-.572V9a.75.75 0 00-.75-.75z" data-fill="true" />'
|
|
199
|
-
},
|
|
200
195
|
reaction: {
|
|
201
196
|
width: 16,
|
|
202
197
|
height: 16,
|
|
@@ -242,31 +237,11 @@ const icons = {
|
|
|
242
237
|
height: 16,
|
|
243
238
|
content: '<path fill="currentColor" fill-rule="nonzero" d="M8 1a4.25 4.25 0 012.676 7.552 6.751 6.751 0 014.074 6.198.75.75 0 11-1.5 0 5.25 5.25 0 00-10.5 0 .75.75 0 11-1.5 0 6.752 6.752 0 014.074-6.199A4.25 4.25 0 018 1zm0 1.5A2.75 2.75 0 108 8a2.75 2.75 0 000-5.5z" />'
|
|
244
239
|
},
|
|
245
|
-
bookmark: {
|
|
246
|
-
width: 30,
|
|
247
|
-
height: 30,
|
|
248
|
-
content: '<g opacity="1"><path fill-rule="evenodd" clip-rule="evenodd" d="M24 21.8237C24 22.847 24 23.3587 23.7885 23.6299C23.6043 23.8659 23.3242 24.007 23.025 24.0145C22.6811 24.0231 22.27 23.7185 21.4476 23.1094L15.9524 19.0388C15.6105 18.7856 15.4396 18.659 15.2523 18.6101C15.0869 18.567 14.9131 18.567 14.7477 18.6101C14.5604 18.659 14.3895 18.7856 14.0476 19.0388L8.55236 23.1094C7.73003 23.7185 7.31886 24.0231 6.97505 24.0145C6.67581 24.007 6.39566 23.8659 6.21155 23.6299C6 23.3587 6 22.847 6 21.8237V6.6C6 6.03995 6 5.75992 6.10899 5.54601C6.20487 5.35785 6.35785 5.20487 6.54601 5.10899C6.75992 5 7.03995 5 7.6 5H22.4C22.9601 5 23.2401 5 23.454 5.10899C23.6422 5.20487 23.7951 5.35785 23.891 5.54601C24 5.75992 24 6.03995 24 6.6V21.8237Z" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></g>'
|
|
249
|
-
},
|
|
250
|
-
shareBookmark: {
|
|
251
|
-
width: 11,
|
|
252
|
-
height: 15,
|
|
253
|
-
content: '<path clip-rule="evenodd" d="M10 14 5.5 9.667 1 14V1h9v13Z" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round"/>'
|
|
254
|
-
},
|
|
255
240
|
receipt: {
|
|
256
241
|
width: 10,
|
|
257
242
|
height: 13,
|
|
258
243
|
content: '<g fill="currentColor" fill-rule="nonzero"><path d="M10 0H0v13l2-1.74 1.5 1.305L5 11.26l1.5 1.305L8 11.26 10 13V0zM9 .997v9.81l-1-.87-1.5 1.304L5 9.937 3.5 11.24 2 9.937l-1 .87V.996h8z"/><path d="M7 3v1H3V3zM7 6v1H3V6z"/></g>'
|
|
259
244
|
},
|
|
260
|
-
read: {
|
|
261
|
-
width: 15,
|
|
262
|
-
height: 15,
|
|
263
|
-
content: '<g fill="none" fill-rule="evenodd"><path opacity=".98" d="M0 0h15v15H0z"/><path d="M13.085 1.694a.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" fill-rule="nonzero"/><path d="M6.454 12.997l-.06-.01-.078-.023a.49.49 0 01-.266-.24l.011.015a2.349 2.349 0 00-.535-.607c-.89-.745-2.117-.917-3.813-.12a.5.5 0 01-.706-.37L1 11.558V4.568a.5.5 0 01.287-.453c2.053-.963 3.695-.733 4.88.26.327.272.556.548.698.77l.084.144.018.04.022.076.01.071L7 11.233l.126-.09c.95-.656 2.16-.857 3.608-.417l.266.087v-2.81a.5.5 0 01.41-.491l.09-.008a.5.5 0 01.492.41l.008.09v3.555a.5.5 0 01-.713.452c-1.696-.796-2.922-.624-3.813.12a2.533 2.533 0 00-.497.544l-.038.064a.486.486 0 01-.485.258zm-4.29-8.17L2 4.892v5.92c1.637-.572 2.977-.348 4 .42l.002-5.58a2.605 2.605 0 00-.476-.513c-.81-.677-1.897-.88-3.362-.314z" fill="currentColor" fill-rule="nonzero"/></g>'
|
|
264
|
-
},
|
|
265
|
-
listened: {
|
|
266
|
-
width: 15,
|
|
267
|
-
height: 15,
|
|
268
|
-
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>'
|
|
269
|
-
},
|
|
270
245
|
magic: {
|
|
271
246
|
width: 15,
|
|
272
247
|
height: 15,
|
|
@@ -274,7 +249,7 @@ const icons = {
|
|
|
274
249
|
}
|
|
275
250
|
};
|
|
276
251
|
|
|
277
|
-
var styles$
|
|
252
|
+
var styles$H = {"root":"SvgSymbol-module_root__WctNR","small":"SvgSymbol-module_small__h9V-w","normal":"SvgSymbol-module_normal__gFAVe","medium":"SvgSymbol-module_medium__QaYjY","large":"SvgSymbol-module_large__o6A4o","adaptive":"SvgSymbol-module_adaptive__gL9qn","fb":"SvgSymbol-module_fb__HZqcB","vk":"SvgSymbol-module_vk__XctB2","ok":"SvgSymbol-module_ok__IM6Z9","tw":"SvgSymbol-module_tw__fio-Q","tg":"SvgSymbol-module_tg__GRhd-","magic":"SvgSymbol-module_magic__N-jKk","reaction":"SvgSymbol-module_reaction__xSbgo","card":"SvgSymbol-module_card__2nVFu","podcast":"SvgSymbol-module_podcast__Yp05r","menu":"SvgSymbol-module_menu__z-dLm","cross":"SvgSymbol-module_cross__3Xej1","isInFeature":"SvgSymbol-module_isInFeature__BmyI-","isInCard":"SvgSymbol-module_isInCard__USxBS","isInTopicBlockItem":"SvgSymbol-module_isInTopicBlockItem__cnCgw","isInPageStatic":"SvgSymbol-module_isInPageStatic__7kMP-","isInMaterialMeta":"SvgSymbol-module_isInMaterialMeta__lIKJO","isInAudioPlayer":"SvgSymbol-module_isInAudioPlayer__mamWa","isInEpisodeBlock":"SvgSymbol-module_isInEpisodeBlock__oZ6JG","isInButtonPlaybackRate":"SvgSymbol-module_isInButtonPlaybackRate__NnADm","isInButtonBackward":"SvgSymbol-module_isInButtonBackward__x8L9a","isInButtonForward":"SvgSymbol-module_isInButtonForward__TtixK","isInToolbar":"SvgSymbol-module_isInToolbar__RzbaX","play":"SvgSymbol-module_play__dAES0","speedHalf":"SvgSymbol-module_speedHalf__mvVYC","speedThreeQuarters":"SvgSymbol-module_speedThreeQuarters__9N7uH","speedOne":"SvgSymbol-module_speedOne__sRNph","speedOneQuarter":"SvgSymbol-module_speedOneQuarter__fKIT7","speedOneHalf":"SvgSymbol-module_speedOneHalf__7yXsa","speedTwo":"SvgSymbol-module_speedTwo__Bv8-b","meduzaLogo":"SvgSymbol-module_meduzaLogo__aVKzZ","arrow":"SvgSymbol-module_arrow__lWTSJ","oil":"SvgSymbol-module_oil__VFGTp","search":"SvgSymbol-module_search__h06cc","user":"SvgSymbol-module_user__ORMm-","receipt":"SvgSymbol-module_receipt__o3V8u","isInHeader":"SvgSymbol-module_isInHeader__M5Tzw"};
|
|
278
253
|
|
|
279
254
|
const SvgSymbol = ({
|
|
280
255
|
icon,
|
|
@@ -286,7 +261,7 @@ const SvgSymbol = ({
|
|
|
286
261
|
"data-testid": "svg-symbol",
|
|
287
262
|
xmlns: "http://www.w3.org/2000/svg",
|
|
288
263
|
xmlnsXlink: "http://www.w3.org/1999/xlink",
|
|
289
|
-
className: makeClassName([[styles$
|
|
264
|
+
className: makeClassName([[styles$H.root, true], [styles$H[size], !!styles$H[size]], [styles$H[icon], !!styles$H[icon]], [styles$H[styleContext], !!styles$H[styleContext]]]),
|
|
290
265
|
width: data.width,
|
|
291
266
|
height: data.height,
|
|
292
267
|
viewBox: `0 0 ${data.width} ${data.height}`,
|
|
@@ -296,7 +271,7 @@ const SvgSymbol = ({
|
|
|
296
271
|
});
|
|
297
272
|
};
|
|
298
273
|
|
|
299
|
-
var styles$
|
|
274
|
+
var styles$G = {"root":"Switcher-module_root__cBsJB","dark":"Switcher-module_dark__1QQsH","control":"Switcher-module_control__60WMX","input":"Switcher-module_input__5UDnv","knob":"Switcher-module_knob__PwA1A","isInMenu":"Switcher-module_isInMenu__RQVhp","isInLive":"Switcher-module_isInLive__ZyMCT","children":"Switcher-module_children__uLapU"};
|
|
300
275
|
|
|
301
276
|
const Switcher = ({
|
|
302
277
|
enabled,
|
|
@@ -307,20 +282,20 @@ const Switcher = ({
|
|
|
307
282
|
childrenRight
|
|
308
283
|
}) => (/*#__PURE__*/React.createElement("label", {
|
|
309
284
|
"data-testid": "switcher",
|
|
310
|
-
className: makeClassName([[styles$
|
|
285
|
+
className: makeClassName([[styles$G.root, true], [styles$G[theme], !!styles$G[theme]], [styles$G[styleContext], !!styles$G[styleContext]]])
|
|
311
286
|
}, childrenLeft && (/*#__PURE__*/React.createElement("div", {
|
|
312
|
-
className: makeClassName([[styles$
|
|
287
|
+
className: makeClassName([[styles$G.children, true], [styles$G.left, true]])
|
|
313
288
|
}, childrenLeft)), /*#__PURE__*/React.createElement("input", {
|
|
314
|
-
className: styles$
|
|
289
|
+
className: styles$G.input,
|
|
315
290
|
type: "checkbox",
|
|
316
291
|
checked: enabled,
|
|
317
292
|
onChange: onChange
|
|
318
293
|
}), /*#__PURE__*/React.createElement("span", {
|
|
319
|
-
className: styles$
|
|
294
|
+
className: styles$G.control
|
|
320
295
|
}, /*#__PURE__*/React.createElement("span", {
|
|
321
|
-
className: styles$
|
|
296
|
+
className: styles$G.knob
|
|
322
297
|
})), childrenRight && (/*#__PURE__*/React.createElement("div", {
|
|
323
|
-
className: makeClassName([[styles$
|
|
298
|
+
className: makeClassName([[styles$G.children, true], [styles$G.right, true]])
|
|
324
299
|
}, childrenRight))));
|
|
325
300
|
|
|
326
301
|
const makeStyleContext = (classNames, styleContext, styles) => {
|
|
@@ -346,7 +321,7 @@ const postMessage = (category, element, action) => {
|
|
|
346
321
|
}
|
|
347
322
|
};
|
|
348
323
|
|
|
349
|
-
var styles$
|
|
324
|
+
var styles$F = {"root":"Lazy-module_root__DWw8D"};
|
|
350
325
|
|
|
351
326
|
const Lazy = ({
|
|
352
327
|
children,
|
|
@@ -367,7 +342,7 @@ const Lazy = ({
|
|
|
367
342
|
}
|
|
368
343
|
}, [inView]);
|
|
369
344
|
return /*#__PURE__*/React.createElement("div", {
|
|
370
|
-
className: makeClassName([[styles$
|
|
345
|
+
className: makeClassName([[styles$F.root, true], [styles$F.visible, visible]]),
|
|
371
346
|
ref: ref,
|
|
372
347
|
"data-testid": "lazy"
|
|
373
348
|
}, visible && children);
|
|
@@ -402,7 +377,6 @@ const SocialLabels = {
|
|
|
402
377
|
tw: 'Твиттер',
|
|
403
378
|
pdf: 'PDF',
|
|
404
379
|
unblock: 'Magic link',
|
|
405
|
-
bookmark: 'В закладки',
|
|
406
380
|
reaction: 'Напишите нам'
|
|
407
381
|
},
|
|
408
382
|
en: {
|
|
@@ -410,8 +384,7 @@ const SocialLabels = {
|
|
|
410
384
|
fb: 'Fb',
|
|
411
385
|
tw: 'Twitter',
|
|
412
386
|
pdf: 'PDF',
|
|
413
|
-
unblock: 'Magic link'
|
|
414
|
-
bookmark: 'Add to bookmarks'
|
|
387
|
+
unblock: 'Magic link'
|
|
415
388
|
}
|
|
416
389
|
};
|
|
417
390
|
|
|
@@ -460,7 +433,7 @@ const RenderPicture = ({
|
|
|
460
433
|
}));
|
|
461
434
|
};
|
|
462
435
|
|
|
463
|
-
var styles$
|
|
436
|
+
var styles$E = {"root":"Image-module_root__H5wAh","fullRatio":"Image-module_fullRatio__q7QPa","isStatic":"Image-module_isStatic__TmQ1V","isLoaded":"Image-module_isLoaded__keFnD","wrapper":"Image-module_wrapper__gJtbB","fullscreen":"Image-module_fullscreen__4PU9c","dark":"Image-module_dark__qjo5O"};
|
|
464
437
|
|
|
465
438
|
const Image = ({
|
|
466
439
|
alt,
|
|
@@ -494,9 +467,9 @@ const Image = ({
|
|
|
494
467
|
};
|
|
495
468
|
/* fallback w325 url until w6 was released */
|
|
496
469
|
const fallbackSource = source && source[0] || optimized.w325 && optimized.w325['1x'] || optimized.original;
|
|
497
|
-
let classNames = [[styles$
|
|
470
|
+
let classNames = [[styles$E.root, true], [styles$E.isLoaded, isLoaded], [styles$E.fullscreen, isFullscreenEnabled], [styles$E.fullRatio, ratio === null]];
|
|
498
471
|
if (styleContext) {
|
|
499
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
472
|
+
classNames = makeStyleContext(classNames, styleContext, styles$E);
|
|
500
473
|
}
|
|
501
474
|
const wrapperProps = isFullscreenEnabled ? {
|
|
502
475
|
onClick: handleClick,
|
|
@@ -509,7 +482,7 @@ const Image = ({
|
|
|
509
482
|
style: blockStyles,
|
|
510
483
|
"data-testid": "image"
|
|
511
484
|
}, /*#__PURE__*/React.createElement("div", {
|
|
512
|
-
className: styles$
|
|
485
|
+
className: styles$E.wrapper,
|
|
513
486
|
style: pictureStyles,
|
|
514
487
|
...wrapperProps
|
|
515
488
|
}, lazy ? (/*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Lazy, {
|
|
@@ -534,7 +507,7 @@ const Image = ({
|
|
|
534
507
|
}))));
|
|
535
508
|
};
|
|
536
509
|
|
|
537
|
-
var styles$
|
|
510
|
+
var styles$D = {"root":"Popover-module_root__nBiV4","fadeOut":"Popover-module_fadeOut__Y88V7","visible":"Popover-module_visible__XVQLW","fadeIn":"Popover-module_fadeIn__FK1gd","overlay":"Popover-module_overlay__NAPar","container":"Popover-module_container__y4SB1","disappear":"Popover-module_disappear__uUn2b","dismiss":"Popover-module_dismiss__W8KFF","background":"Popover-module_background__apiio","appear":"Popover-module_appear__b-CZ2","body":"Popover-module_body__UJEZf"};
|
|
538
511
|
|
|
539
512
|
const Popover = ({
|
|
540
513
|
children,
|
|
@@ -566,20 +539,20 @@ const Popover = ({
|
|
|
566
539
|
/* eslint-disable jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions */
|
|
567
540
|
return /*#__PURE__*/React.createElement("div", {
|
|
568
541
|
"data-testid": "popover",
|
|
569
|
-
className: makeClassName([[styles$
|
|
542
|
+
className: makeClassName([[styles$D.root, true], [styles$D.visible, visible]])
|
|
570
543
|
}, /*#__PURE__*/React.createElement("div", {
|
|
571
|
-
className: styles$
|
|
544
|
+
className: styles$D.overlay,
|
|
572
545
|
onClick: () => handleClose()
|
|
573
546
|
}), /*#__PURE__*/React.createElement("div", {
|
|
574
|
-
className: styles$
|
|
547
|
+
className: styles$D.container
|
|
575
548
|
}, /*#__PURE__*/React.createElement("button", {
|
|
576
549
|
type: "button",
|
|
577
|
-
className: styles$
|
|
550
|
+
className: styles$D.dismiss,
|
|
578
551
|
onClick: () => handleClose(),
|
|
579
552
|
"aria-label": "dismiss"
|
|
580
553
|
}), /*#__PURE__*/React.createElement("svg", {
|
|
581
554
|
width: "100%",
|
|
582
|
-
className: styles$
|
|
555
|
+
className: styles$D.background
|
|
583
556
|
}, /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("mask", {
|
|
584
557
|
id: "myMask",
|
|
585
558
|
x: "0",
|
|
@@ -608,11 +581,11 @@ const Popover = ({
|
|
|
608
581
|
width: "100%",
|
|
609
582
|
height: "100%"
|
|
610
583
|
})), /*#__PURE__*/React.createElement("div", {
|
|
611
|
-
className: styles$
|
|
584
|
+
className: styles$D.body
|
|
612
585
|
}, children)));
|
|
613
586
|
};
|
|
614
587
|
|
|
615
|
-
var styles$
|
|
588
|
+
var styles$C = {"root":"Footnote-module_root__W5D8G","body":"Footnote-module_body__C-ZC-","dismiss":"Footnote-module_dismiss__Q2hAX"};
|
|
616
589
|
|
|
617
590
|
const Footnote = ({
|
|
618
591
|
children,
|
|
@@ -620,16 +593,16 @@ const Footnote = ({
|
|
|
620
593
|
}) => {
|
|
621
594
|
return /*#__PURE__*/React.createElement("div", {
|
|
622
595
|
"data-testid": "footnote",
|
|
623
|
-
className: makeClassName([[styles$
|
|
596
|
+
className: makeClassName([[styles$C.root, true]])
|
|
624
597
|
}, /*#__PURE__*/React.createElement("button", {
|
|
625
|
-
className: styles$
|
|
598
|
+
className: styles$C.dismiss,
|
|
626
599
|
type: "button",
|
|
627
600
|
onClick: () => onClose()
|
|
628
601
|
}, /*#__PURE__*/React.createElement(SvgSymbol, {
|
|
629
602
|
icon: "cross",
|
|
630
603
|
size: "unset"
|
|
631
604
|
})), /*#__PURE__*/React.createElement("div", {
|
|
632
|
-
className: styles$
|
|
605
|
+
className: styles$C.body
|
|
633
606
|
}, children));
|
|
634
607
|
};
|
|
635
608
|
|
|
@@ -638,7 +611,7 @@ var viewportSize = () => ({
|
|
|
638
611
|
height: window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight
|
|
639
612
|
});
|
|
640
613
|
|
|
641
|
-
var styles$
|
|
614
|
+
var styles$B = {"root":"DotsOnImage-module_root__8UQf2","isVisible":"DotsOnImage-module_isVisible__rA5x9","marker":"DotsOnImage-module_marker__pLdQT","show":"DotsOnImage-module_show__Ec0lG","dot":"DotsOnImage-module_dot__e2MWx","isActive":"DotsOnImage-module_isActive__Bhb58","popover":"DotsOnImage-module_popover__zHSbU","isRight":"DotsOnImage-module_isRight__IaUbc","isTop":"DotsOnImage-module_isTop__RMK49","isLeft":"DotsOnImage-module_isLeft__Q6JZ-","isBottom":"DotsOnImage-module_isBottom__c-aLe"};
|
|
642
615
|
|
|
643
616
|
const DotsOnImage = ({
|
|
644
617
|
block: {
|
|
@@ -720,7 +693,7 @@ const DotsOnImage = ({
|
|
|
720
693
|
});
|
|
721
694
|
};
|
|
722
695
|
return /*#__PURE__*/React.createElement("div", {
|
|
723
|
-
className: makeClassName([[styles$
|
|
696
|
+
className: makeClassName([[styles$B.root, true], [styles$B.isVisible, visible]]),
|
|
724
697
|
"data-testid": "dots-on-image",
|
|
725
698
|
ref: ref
|
|
726
699
|
}, /*#__PURE__*/React.createElement(Image, {
|
|
@@ -733,7 +706,7 @@ const DotsOnImage = ({
|
|
|
733
706
|
}), /*#__PURE__*/React.createElement("div", {
|
|
734
707
|
ref: container
|
|
735
708
|
}, dots.map(dot => (/*#__PURE__*/React.createElement("div", {
|
|
736
|
-
className: styles$
|
|
709
|
+
className: styles$B.dot,
|
|
737
710
|
key: dot.id,
|
|
738
711
|
style: {
|
|
739
712
|
top: `${dot.position.y}%`,
|
|
@@ -741,7 +714,7 @@ const DotsOnImage = ({
|
|
|
741
714
|
transform: `scale(${ratio}) translate(-${50 / ratio}%, -${50 / ratio}%)`
|
|
742
715
|
}
|
|
743
716
|
}, /*#__PURE__*/React.createElement("button", {
|
|
744
|
-
className: makeClassName([[styles$
|
|
717
|
+
className: makeClassName([[styles$B.marker, true], [styles$B.isActive, dot.id === popover.id]]),
|
|
745
718
|
type: "button",
|
|
746
719
|
style: {
|
|
747
720
|
backgroundColor: dot.icon.color
|
|
@@ -752,7 +725,7 @@ const DotsOnImage = ({
|
|
|
752
725
|
__html: dot.icon.svg_string
|
|
753
726
|
}
|
|
754
727
|
})), dot.icon.type === 'number' && dot.icon.number)))), popover.show && (/*#__PURE__*/React.createElement(React.Fragment, null, viewportSize().width >= MediaQuerySizes.LANDSCAPE_TABLET ? (/*#__PURE__*/React.createElement("div", {
|
|
755
|
-
className: makeClassName([[styles$
|
|
728
|
+
className: makeClassName([[styles$B.popover, true], [styles$B[popover.side], !!popover.side], [styles$B[popover.align], !!popover.align]]),
|
|
756
729
|
style: popover.style
|
|
757
730
|
}, /*#__PURE__*/React.createElement(Footnote, {
|
|
758
731
|
onClose: () => {
|
|
@@ -777,7 +750,7 @@ const DotsOnImage = ({
|
|
|
777
750
|
})))))));
|
|
778
751
|
};
|
|
779
752
|
|
|
780
|
-
var styles$
|
|
753
|
+
var styles$A = {"root":"Tag-module_root__sGbnM","small":"Tag-module_small__hcPrf","large":"Tag-module_large__EKMu6","dark":"Tag-module_dark__9SHCb","light":"Tag-module_light__qlfy3","gold":"Tag-module_gold__u0bzS","gray":"Tag-module_gray__eazPk","inherit":"Tag-module_inherit__z21c-","is1to1":"Tag-module_is1to1__V-fH5","is1to2":"Tag-module_is1to2__b9Obh","isInSuperBlock":"Tag-module_isInSuperBlock__wrFUY","is1to3":"Tag-module_is1to3__vZT-R","is1to4":"Tag-module_is1to4__MBh5V","slide":"Tag-module_slide__gzptP","game":"Tag-module_game__NmKec","podcastMaterial":"Tag-module_podcastMaterial__O-LBI","richRelated":"Tag-module_richRelated__Qs6Ei","isInBookRelated":"Tag-module_isInBookRelated__ikTaj","isInBlockMetaContainer":"Tag-module_isInBlockMetaContainer__bAmLh","card":"Tag-module_card__TX87-","live":"Tag-module_live__ykyR7","episode":"Tag-module_episode__3OHmN","podcast":"Tag-module_podcast__K6dHn","rich":"Tag-module_rich__vPnWd","isInDynamicBlock":"Tag-module_isInDynamicBlock__WNleF","isInPodcastPlayer":"Tag-module_isInPodcastPlayer__H4sK9","mobile":"Tag-module_mobile__19oMH","desktop":"Tag-module_desktop__cNyQs"};
|
|
781
754
|
|
|
782
755
|
const Tag = ({
|
|
783
756
|
children,
|
|
@@ -787,9 +760,9 @@ const Tag = ({
|
|
|
787
760
|
correlation,
|
|
788
761
|
onlyOn
|
|
789
762
|
}) => {
|
|
790
|
-
let classNames = [[styles$
|
|
763
|
+
let classNames = [[styles$A.root, true], [styles$A[size], !!size && !!styles$A[size]], [styles$A[theme], !!theme && !!styles$A[theme]], [styles$A[onlyOn], !!onlyOn && !!styles$A[onlyOn]], [styles$A[correlation], !!correlation && !!styles$A[correlation]]];
|
|
791
764
|
if (styleContext) {
|
|
792
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
765
|
+
classNames = makeStyleContext(classNames, styleContext, styles$A);
|
|
793
766
|
}
|
|
794
767
|
return /*#__PURE__*/React.createElement("div", {
|
|
795
768
|
"data-testid": "tag",
|
|
@@ -797,34 +770,34 @@ const Tag = ({
|
|
|
797
770
|
}, children);
|
|
798
771
|
};
|
|
799
772
|
|
|
800
|
-
var styles$
|
|
773
|
+
var styles$z = {"root":"MediaCaption-module_root__1r0wu","caption":"MediaCaption-module_caption__ewfcc","credit":"MediaCaption-module_credit__7y4v8","dark":"MediaCaption-module_dark__7a9Cm","video":"MediaCaption-module_video__RDTUa","picture":"MediaCaption-module_picture__abCvw","desktop":"MediaCaption-module_desktop__e0lCY","isDark":"MediaCaption-module_isDark__IFb9X"};
|
|
801
774
|
|
|
802
775
|
const MediaCaption = ({
|
|
803
776
|
credit,
|
|
804
777
|
caption,
|
|
805
778
|
styleContext
|
|
806
779
|
}) => {
|
|
807
|
-
let classNames = [[styles$
|
|
780
|
+
let classNames = [[styles$z.root, true]];
|
|
808
781
|
if (styleContext) {
|
|
809
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
782
|
+
classNames = makeStyleContext(classNames, styleContext, styles$z);
|
|
810
783
|
}
|
|
811
784
|
return /*#__PURE__*/React.createElement("div", {
|
|
812
785
|
"data-testid": "media-caption",
|
|
813
786
|
className: makeClassName(classNames)
|
|
814
787
|
}, caption && (/*#__PURE__*/React.createElement("div", {
|
|
815
|
-
className: styles$
|
|
788
|
+
className: styles$z.caption,
|
|
816
789
|
dangerouslySetInnerHTML: {
|
|
817
790
|
__html: caption
|
|
818
791
|
}
|
|
819
792
|
})), credit && (/*#__PURE__*/React.createElement("div", {
|
|
820
|
-
className: styles$
|
|
793
|
+
className: styles$z.credit,
|
|
821
794
|
dangerouslySetInnerHTML: {
|
|
822
795
|
__html: credit
|
|
823
796
|
}
|
|
824
797
|
})));
|
|
825
798
|
};
|
|
826
799
|
|
|
827
|
-
var styles$
|
|
800
|
+
var styles$y = {"root":"Table-module_root__fRuZq","card":"Table-module_card__8r-EA","table":"Table-module_table__7Pagp","slide":"Table-module_slide__dgMPV","wrapper":"Table-module_wrapper__AP4Pz","tracks":"Table-module_tracks__mRNG0","default":"Table-module_default__nwBEg","full":"Table-module_full__YZPDz","row":"Table-module_row__9OHT3","cell":"Table-module_cell__yFdqc","fixedColumn":"Table-module_fixedColumn__O2528","white":"Table-module_white__Laj3-","gray":"Table-module_gray__FPFh0","pink":"Table-module_pink__CGkAA","blue":"Table-module_blue__b8BHs","yellow":"Table-module_yellow__YOJgu","orange":"Table-module_orange__B-i8L","green":"Table-module_green__Bt6iC","violet":"Table-module_violet__yTZd7","header":"Table-module_header__YPDzO","s":"Table-module_s__I-CeX","m":"Table-module_m__vxhDf","l":"Table-module_l__GYHhk","xs":"Table-module_xs__imR8t"};
|
|
828
801
|
|
|
829
802
|
const Table = ({
|
|
830
803
|
styleContext,
|
|
@@ -846,26 +819,26 @@ const Table = ({
|
|
|
846
819
|
'#e7f2ef': 'green',
|
|
847
820
|
'#f4f0f8': 'violet'
|
|
848
821
|
};
|
|
849
|
-
let classNames = [[styles$
|
|
822
|
+
let classNames = [[styles$y.root, true], [styles$y[display], !!display && !!styles$y[display]]];
|
|
850
823
|
if (styleContext) {
|
|
851
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
824
|
+
classNames = makeStyleContext(classNames, styleContext, styles$y);
|
|
852
825
|
}
|
|
853
826
|
return /*#__PURE__*/React.createElement("div", {
|
|
854
827
|
"data-testid": "table",
|
|
855
828
|
className: makeClassName(classNames)
|
|
856
829
|
}, /*#__PURE__*/React.createElement("div", {
|
|
857
|
-
className: styles$
|
|
830
|
+
className: styles$y.wrapper
|
|
858
831
|
}, /*#__PURE__*/React.createElement("div", {
|
|
859
|
-
className: styles$
|
|
832
|
+
className: styles$y.table
|
|
860
833
|
}, /*#__PURE__*/React.createElement("div", {
|
|
861
|
-
className: styles$
|
|
834
|
+
className: styles$y.tracks
|
|
862
835
|
}, rows.map((row, i) => {
|
|
863
836
|
return /*#__PURE__*/React.createElement("div", {
|
|
864
837
|
key: row.key,
|
|
865
|
-
className: styles$
|
|
838
|
+
className: styles$y.row
|
|
866
839
|
}, row.cells.map((cell, j) => (/*#__PURE__*/React.createElement("div", {
|
|
867
840
|
key: cell.key,
|
|
868
|
-
className: makeClassName([[styles$
|
|
841
|
+
className: makeClassName([[styles$y.cell, true], [styles$y.header, options.header && i === 0], [styles$y[colors[cell.color]], true], [styles$y[columnsWidth[j]], true], [styles$y.fixedColumn, options.fixed_first_column && j === 0]]),
|
|
869
842
|
dangerouslySetInnerHTML: {
|
|
870
843
|
__html: cell.val
|
|
871
844
|
}
|
|
@@ -876,7 +849,7 @@ const Table = ({
|
|
|
876
849
|
})));
|
|
877
850
|
};
|
|
878
851
|
|
|
879
|
-
var styles$
|
|
852
|
+
var styles$x = {"root":"MaterialNote-module_root__99HSA","dark":"MaterialNote-module_dark__etjym","note_credit":"MaterialNote-module_note_credit__J1skG","note_caption":"MaterialNote-module_note_caption__G2Ad0","center":"MaterialNote-module_center__mDLEO","default":"MaterialNote-module_default__ozgd7","card":"MaterialNote-module_card__EVuZe","slide":"MaterialNote-module_slide__mg8XV","game":"MaterialNote-module_game__c-r0n","gameSurvey":"MaterialNote-module_gameSurvey__azhu6"};
|
|
880
853
|
|
|
881
854
|
const MaterialNote = ({
|
|
882
855
|
block: {
|
|
@@ -884,15 +857,15 @@ const MaterialNote = ({
|
|
|
884
857
|
},
|
|
885
858
|
styleContext
|
|
886
859
|
}) => {
|
|
887
|
-
let classNames = [[styles$
|
|
860
|
+
let classNames = [[styles$x.root, true]];
|
|
888
861
|
if (styleContext) {
|
|
889
|
-
classNames = makeStyleContext(classNames, styleContext, styles$
|
|
862
|
+
classNames = makeStyleContext(classNames, styleContext, styles$x);
|
|
890
863
|
}
|
|
891
864
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
892
865
|
"data-testid": "material-note",
|
|
893
866
|
className: makeClassName(classNames)
|
|
894
867
|
}, data && data.map(item => (/*#__PURE__*/React.createElement("p", {
|
|
895
|
-
className: styles$
|
|
868
|
+
className: styles$x[item.type],
|
|
896
869
|
key: item.id,
|
|
897
870
|
dangerouslySetInnerHTML: {
|
|
898
871
|
__html: item.data
|
|
@@ -900,31 +873,6 @@ const MaterialNote = ({
|
|
|
900
873
|
})))));
|
|
901
874
|
};
|
|
902
875
|
|
|
903
|
-
var styles$x = {"root":"BookmarkButton-module_root__A-75w","control":"BookmarkButton-module_control__-xy5O","dark":"BookmarkButton-module_dark__GkMEC","light":"BookmarkButton-module_light__1W6tx","isInBookmarks":"BookmarkButton-module_isInBookmarks__YSjjj","isInGrid":"BookmarkButton-module_isInGrid__Desh-"};
|
|
904
|
-
|
|
905
|
-
const BookmarkButton = ({
|
|
906
|
-
styleContext,
|
|
907
|
-
theme,
|
|
908
|
-
isInBookmarks,
|
|
909
|
-
onClick
|
|
910
|
-
}) => {
|
|
911
|
-
let classNames = [[styles$x.root, true], [styles$x.isInBookmarks, isInBookmarks], [styles$x[theme], !!theme && !!styles$x[theme]]];
|
|
912
|
-
if (styleContext) {
|
|
913
|
-
classNames = makeStyleContext(classNames, styleContext, styles$x);
|
|
914
|
-
}
|
|
915
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
916
|
-
"data-testid": "bookmark-button",
|
|
917
|
-
className: makeClassName(classNames)
|
|
918
|
-
}, /*#__PURE__*/React.createElement("button", {
|
|
919
|
-
className: styles$x.control,
|
|
920
|
-
onClick: () => onClick(),
|
|
921
|
-
type: "button"
|
|
922
|
-
}, /*#__PURE__*/React.createElement(SvgSymbol, {
|
|
923
|
-
icon: "bookmark",
|
|
924
|
-
size: "unset"
|
|
925
|
-
})));
|
|
926
|
-
};
|
|
927
|
-
|
|
928
876
|
var styles$w = {"root":"MaterialTitle-module_root__VSphO","primary":"MaterialTitle-module_primary__XGnpb","secondary":"MaterialTitle-module_secondary__7IDEp"};
|
|
929
877
|
|
|
930
878
|
const Primary = ({
|
|
@@ -1001,7 +949,7 @@ const Toolbar = ({
|
|
|
1001
949
|
}, children));
|
|
1002
950
|
};
|
|
1003
951
|
|
|
1004
|
-
var styles$t = {"root":"Meta-module_root__H-Q4d","rich":"Meta-module_rich__dCkJK","podcast":"Meta-module_podcast__MI8gD","episode":"Meta-module_episode__0n9CF","simple":"Meta-module_simple__tztcr","slide":"Meta-module_slide__3OyIN","card":"Meta-module_card__2vqfN","game":"Meta-module_game__HNcgr","isInMaterial":"Meta-module_isInMaterial__vKcTK","isInSearchItem":"Meta-module_isInSearchItem__ENqHo","isInMediaBlock":"Meta-module_isInMediaBlock__TENZG","center":"Meta-module_center__seHro","half":"Meta-module_half__aoa9h","podcastMaterial":"Meta-module_podcastMaterial__GTPyD","light":"Meta-module_light__oW3kc","dark":"Meta-module_dark__tLQNJ","isDark":"Meta-module_isDark__xSl1J","hasSource":"Meta-module_hasSource__OZJ0y","
|
|
952
|
+
var styles$t = {"root":"Meta-module_root__H-Q4d","rich":"Meta-module_rich__dCkJK","podcast":"Meta-module_podcast__MI8gD","episode":"Meta-module_episode__0n9CF","simple":"Meta-module_simple__tztcr","slide":"Meta-module_slide__3OyIN","card":"Meta-module_card__2vqfN","game":"Meta-module_game__HNcgr","isInMaterial":"Meta-module_isInMaterial__vKcTK","isInSearchItem":"Meta-module_isInSearchItem__ENqHo","isInMediaBlock":"Meta-module_isInMediaBlock__TENZG","center":"Meta-module_center__seHro","half":"Meta-module_half__aoa9h","podcastMaterial":"Meta-module_podcastMaterial__GTPyD","light":"Meta-module_light__oW3kc","dark":"Meta-module_dark__tLQNJ","isDark":"Meta-module_isDark__xSl1J","hasSource":"Meta-module_hasSource__OZJ0y","isInBookRelated":"Meta-module_isInBookRelated__Ohidg","mobile":"Meta-module_mobile__PbG8N","desktop":"Meta-module_desktop__W5AB7"};
|
|
1005
953
|
|
|
1006
954
|
const Meta = ({
|
|
1007
955
|
hasSource,
|
|
@@ -1494,7 +1442,7 @@ const SimpleTitle = ({
|
|
|
1494
1442
|
}, first);
|
|
1495
1443
|
};
|
|
1496
1444
|
|
|
1497
|
-
var styles$m = {"root":"RichTitle-module_root__U5XQu","slide":"RichTitle-module_slide__eU9Ob","game":"RichTitle-module_game__S1csb","podcastMaterial":"RichTitle-module_podcastMaterial__AulVF","half":"RichTitle-module_half__yBMby","featured":"RichTitle-module_featured__ULNQn","isInMediaBlock":"RichTitle-module_isInMediaBlock__2h6rl","isInBookRelated":"RichTitle-module_isInBookRelated__LcCPV","isInDynamicBlock":"RichTitle-module_isInDynamicBlock__J-gM6","isInPodcastPlayer":"RichTitle-module_isInPodcastPlayer__kvEPH","large":"RichTitle-module_large__n2URP","medium":"RichTitle-module_medium__KkBLJ","mobile":"RichTitle-module_mobile__W5L9E","desktop":"RichTitle-module_desktop__k0PkC"};
|
|
1445
|
+
var styles$m = {"root":"RichTitle-module_root__U5XQu","slide":"RichTitle-module_slide__eU9Ob","game":"RichTitle-module_game__S1csb","podcastMaterial":"RichTitle-module_podcastMaterial__AulVF","half":"RichTitle-module_half__yBMby","featured":"RichTitle-module_featured__ULNQn","isInFeaturedBlock":"RichTitle-module_isInFeaturedBlock__3vYu9","isInMediaBlock":"RichTitle-module_isInMediaBlock__2h6rl","isInBookRelated":"RichTitle-module_isInBookRelated__LcCPV","isInDynamicBlock":"RichTitle-module_isInDynamicBlock__J-gM6","isInPodcastPlayer":"RichTitle-module_isInPodcastPlayer__kvEPH","large":"RichTitle-module_large__n2URP","medium":"RichTitle-module_medium__KkBLJ","mobile":"RichTitle-module_mobile__W5L9E","desktop":"RichTitle-module_desktop__k0PkC"};
|
|
1498
1446
|
|
|
1499
1447
|
const RichTitle = ({
|
|
1500
1448
|
block: {
|
|
@@ -1773,15 +1721,16 @@ const GroupedBlock = ({
|
|
|
1773
1721
|
}))));
|
|
1774
1722
|
};
|
|
1775
1723
|
|
|
1776
|
-
var styles$f = {"root":"MetaItem-module_root__sRbrZ","hasBullets":"MetaItem-module_hasBullets__b1eW9","hasSource":"MetaItem-module_hasSource__35olm","
|
|
1724
|
+
var styles$f = {"root":"MetaItem-module_root__sRbrZ","hasBullets":"MetaItem-module_hasBullets__b1eW9","hasSource":"MetaItem-module_hasSource__35olm","datetime":"MetaItem-module_datetime__--O8c","mobileOnly":"MetaItem-module_mobileOnly__VJCjl"};
|
|
1777
1725
|
|
|
1778
1726
|
const MetaItem = ({
|
|
1779
1727
|
hasSource,
|
|
1780
1728
|
type,
|
|
1781
1729
|
children,
|
|
1782
|
-
bullets
|
|
1730
|
+
bullets,
|
|
1731
|
+
mobileOnly
|
|
1783
1732
|
}) => {
|
|
1784
|
-
const classNames = [[styles$f.root, true], [styles$f[type], !!type && !!styles$f[type]], [styles$f.hasSource, !!hasSource], [styles$f.hasBullets, !!bullets]];
|
|
1733
|
+
const classNames = [[styles$f.root, true], [styles$f[type], !!type && !!styles$f[type]], [styles$f.hasSource, !!hasSource], [styles$f.hasBullets, !!bullets], [styles$f.mobileOnly, !!mobileOnly]];
|
|
1785
1734
|
return /*#__PURE__*/React.createElement("div", {
|
|
1786
1735
|
"data-testid": "meta-item",
|
|
1787
1736
|
className: makeClassName(classNames)
|
|
@@ -1865,10 +1814,6 @@ const DocumentItemsCount = ({
|
|
|
1865
1814
|
const MetaContainer = ({
|
|
1866
1815
|
lang,
|
|
1867
1816
|
block,
|
|
1868
|
-
isRead,
|
|
1869
|
-
isListened,
|
|
1870
|
-
bookmarkAction,
|
|
1871
|
-
isInBookmarks,
|
|
1872
1817
|
block: {
|
|
1873
1818
|
data: {
|
|
1874
1819
|
components,
|
|
@@ -1879,7 +1824,6 @@ const MetaContainer = ({
|
|
|
1879
1824
|
}) => {
|
|
1880
1825
|
const themeColor = styleContext && styleContext.indexOf('dark') !== -1 ? 'light' : 'unset';
|
|
1881
1826
|
const isPodcast = styleContext && styleContext.indexOf('podcast') !== -1;
|
|
1882
|
-
const isSlides = styleContext && styleContext.indexOf('slide') !== -1;
|
|
1883
1827
|
let context = [];
|
|
1884
1828
|
if (styleContext && Array.isArray(styleContext)) {
|
|
1885
1829
|
context = styleContext.filter(item => {
|
|
@@ -1912,10 +1856,7 @@ const MetaContainer = ({
|
|
|
1912
1856
|
hasSource: hasSource,
|
|
1913
1857
|
bullets: true,
|
|
1914
1858
|
key: component.id
|
|
1915
|
-
},
|
|
1916
|
-
icon: "podcast",
|
|
1917
|
-
size: "small"
|
|
1918
|
-
})), component.text));
|
|
1859
|
+
}, component.text);
|
|
1919
1860
|
}
|
|
1920
1861
|
case 'datetime':
|
|
1921
1862
|
{
|
|
@@ -1941,10 +1882,7 @@ const MetaContainer = ({
|
|
|
1941
1882
|
items: component.count,
|
|
1942
1883
|
type: isPodcast ? 'podcast' : 'card',
|
|
1943
1884
|
lang: lang
|
|
1944
|
-
}
|
|
1945
|
-
icon: "card",
|
|
1946
|
-
size: "unset"
|
|
1947
|
-
})));
|
|
1885
|
+
}));
|
|
1948
1886
|
}
|
|
1949
1887
|
case 'broadcast_active':
|
|
1950
1888
|
{
|
|
@@ -1952,7 +1890,7 @@ const MetaContainer = ({
|
|
|
1952
1890
|
hasSource: hasSource,
|
|
1953
1891
|
bullets: true,
|
|
1954
1892
|
key: component.id
|
|
1955
|
-
}, /*#__PURE__*/React.createElement(
|
|
1893
|
+
}, /*#__PURE__*/React.createElement(MetaItemLive, null), " \u041F\u0440\u044F\u043C\u043E\u0439 \u044D\u0444\u0438\u0440");
|
|
1956
1894
|
}
|
|
1957
1895
|
case 'broadcast':
|
|
1958
1896
|
{
|
|
@@ -1960,7 +1898,7 @@ const MetaContainer = ({
|
|
|
1960
1898
|
hasSource: hasSource,
|
|
1961
1899
|
bullets: true,
|
|
1962
1900
|
key: component.id
|
|
1963
|
-
},
|
|
1901
|
+
}, component.with_icon && /*#__PURE__*/React.createElement(MetaItemLive, null), component.label);
|
|
1964
1902
|
}
|
|
1965
1903
|
case 'string':
|
|
1966
1904
|
{
|
|
@@ -1975,19 +1913,7 @@ const MetaContainer = ({
|
|
|
1975
1913
|
return null;
|
|
1976
1914
|
}
|
|
1977
1915
|
}
|
|
1978
|
-
})
|
|
1979
|
-
hasSource: hasSource,
|
|
1980
|
-
bullets: true,
|
|
1981
|
-
type: isListened ? 'listened' : 'read'
|
|
1982
|
-
}, /*#__PURE__*/React.createElement(SvgSymbol, {
|
|
1983
|
-
icon: isListened ? 'listened' : 'read',
|
|
1984
|
-
size: "unset"
|
|
1985
|
-
}))), isSlides && lang === 'ru' && (/*#__PURE__*/React.createElement("div", {
|
|
1986
|
-
className: styles$t.bookmark
|
|
1987
|
-
}, /*#__PURE__*/React.createElement(BookmarkButton, {
|
|
1988
|
-
isInBookmarks: isInBookmarks,
|
|
1989
|
-
onClick: () => bookmarkAction('bookmark', 'top')
|
|
1990
|
-
}))));
|
|
1916
|
+
}));
|
|
1991
1917
|
};
|
|
1992
1918
|
|
|
1993
1919
|
var styles$c = {"root":"DonatesTeaser-module_root__XQCVy","main":"DonatesTeaser-module_main__eN9kd","title":"DonatesTeaser-module_title__9umo1","text":"DonatesTeaser-module_text__s6tyf","cta":"DonatesTeaser-module_cta__-50aB","center":"DonatesTeaser-module_center__gxLvW","isInCard":"DonatesTeaser-module_isInCard__vaUhd","isInSlide":"DonatesTeaser-module_isInSlide__Dh4NH","ru":"DonatesTeaser-module_ru__y-PlJ","en":"DonatesTeaser-module_en__0Iisr"};
|
|
@@ -2119,10 +2045,6 @@ const RenderBlocks = ({
|
|
|
2119
2045
|
block,
|
|
2120
2046
|
styleContext,
|
|
2121
2047
|
lang,
|
|
2122
|
-
isRead,
|
|
2123
|
-
isListened,
|
|
2124
|
-
bookmarkAction,
|
|
2125
|
-
isInBookmarks,
|
|
2126
2048
|
platform
|
|
2127
2049
|
}) => {
|
|
2128
2050
|
switch (block.type) {
|
|
@@ -2154,11 +2076,7 @@ const RenderBlocks = ({
|
|
|
2154
2076
|
return /*#__PURE__*/React.createElement(MetaContainer, {
|
|
2155
2077
|
block: block,
|
|
2156
2078
|
lang: block.data.lang,
|
|
2157
|
-
styleContext: styleContext
|
|
2158
|
-
isRead: isRead,
|
|
2159
|
-
isListened: isListened,
|
|
2160
|
-
isInBookmarks: isInBookmarks,
|
|
2161
|
-
bookmarkAction: bookmarkAction
|
|
2079
|
+
styleContext: styleContext
|
|
2162
2080
|
});
|
|
2163
2081
|
}
|
|
2164
2082
|
case 'blockquote':
|
|
@@ -2693,10 +2611,6 @@ const RelatedBook = ({
|
|
|
2693
2611
|
const RawHtmlBlock = ({
|
|
2694
2612
|
block,
|
|
2695
2613
|
styleContext,
|
|
2696
|
-
isRead,
|
|
2697
|
-
isListened,
|
|
2698
|
-
isInBookmarks,
|
|
2699
|
-
bookmarkAction,
|
|
2700
2614
|
lightBox,
|
|
2701
2615
|
lang,
|
|
2702
2616
|
platform
|
|
@@ -2763,10 +2677,6 @@ const RawHtmlBlock = ({
|
|
|
2763
2677
|
}, /*#__PURE__*/React.createElement(RenderBlocks, {
|
|
2764
2678
|
block: block,
|
|
2765
2679
|
styleContext: styleContext,
|
|
2766
|
-
isRead: isRead,
|
|
2767
|
-
isListened: isListened,
|
|
2768
|
-
isInBookmarks: isInBookmarks,
|
|
2769
|
-
bookmarkAction: bookmarkAction,
|
|
2770
2680
|
lang: lang,
|
|
2771
2681
|
platform: platform
|
|
2772
2682
|
}));
|
|
@@ -2797,7 +2707,7 @@ const ListViewSwitcher = ({
|
|
|
2797
2707
|
className: styles$2.list
|
|
2798
2708
|
})));
|
|
2799
2709
|
|
|
2800
|
-
var styles$1 = {"root":"ToolbarButton-module_root__upsEH","isDark":"ToolbarButton-module_isDark__gWpv-","dark":"ToolbarButton-module_dark__5XOEp","
|
|
2710
|
+
var styles$1 = {"root":"ToolbarButton-module_root__upsEH","isDark":"ToolbarButton-module_isDark__gWpv-","dark":"ToolbarButton-module_dark__5XOEp","icon":"ToolbarButton-module_icon__Ldcgq","text":"ToolbarButton-module_text__4R2a0","isActive":"ToolbarButton-module_isActive__N4kkV"};
|
|
2801
2711
|
|
|
2802
2712
|
const ToolbarButton = ({
|
|
2803
2713
|
type,
|
|
@@ -2805,7 +2715,6 @@ const ToolbarButton = ({
|
|
|
2805
2715
|
isActive,
|
|
2806
2716
|
lang = 'ru',
|
|
2807
2717
|
text,
|
|
2808
|
-
icon,
|
|
2809
2718
|
onClick
|
|
2810
2719
|
}) => {
|
|
2811
2720
|
const classNames = [[styles$1.root, true], [styles$1[type], !!styles$1[type]], [styles$1[theme], !!styles$1[theme] && !!theme], [styles$1.isActive, !!isActive]];
|
|
@@ -2815,13 +2724,7 @@ const ToolbarButton = ({
|
|
|
2815
2724
|
className: makeClassName(classNames),
|
|
2816
2725
|
type: "button",
|
|
2817
2726
|
onClick: event => onClick(event, type)
|
|
2818
|
-
},
|
|
2819
|
-
className: styles$1.icon
|
|
2820
|
-
}, /*#__PURE__*/React.createElement(SvgSymbol, {
|
|
2821
|
-
size: "medium",
|
|
2822
|
-
icon: icon,
|
|
2823
|
-
styleContext: "isInToolbar"
|
|
2824
|
-
}))), /*#__PURE__*/React.createElement("span", {
|
|
2727
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
2825
2728
|
className: styles$1.text
|
|
2826
2729
|
}, text || label));
|
|
2827
2730
|
};
|
|
@@ -2851,5 +2754,5 @@ const TooltipFooter = ({
|
|
|
2851
2754
|
}, children);
|
|
2852
2755
|
};
|
|
2853
2756
|
|
|
2854
|
-
export { AnnouncementInText,
|
|
2757
|
+
export { AnnouncementInText, Button, ButtonLoader, CardTitle, ChapterBlock, Cover, DocumentItemsCount, DonatesTeaser, DotsOnImage, Dropdown, EmbedBlockContainer, Footnote, GroupedBlock, HalfBlock, Image, ImportantLead, Lazy, ListBlock, ListViewSwitcher, 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 };
|
|
2855
2758
|
//# sourceMappingURL=ui-kit-2.esm.js.map
|