@meduza/ui-kit-2 0.9.408 → 0.9.601

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -2,12 +2,12 @@
2
2
 
3
3
  ## Разработка
4
4
 
5
- - `yarn start` - запускает development сборку с hot reload, пишет все в папку dist
6
- - `cd example && yarn start` - запускает сборку тестового проекта с hot reload,
5
+ - `pnpm start` - запускает development сборку с hot reload, пишет все в папку dist
6
+ - `cd example && pnpm start` - запускает сборку тестового проекта с hot reload,
7
7
  в который можно импортировать компоненты из кита
8
- - `yarn storybook` - запускает storybook
8
+ - `pnpm storybook` - запускает storybook
9
9
 
10
- `yarn generate` - генератор компонентов. Вводим название компонента, получаем все файлы и импорты
10
+ `pnpm generate` - генератор компонентов. Вводим название компонента, получаем все файлы и импорты
11
11
 
12
12
  ## Использование
13
13
 
@@ -18,8 +18,8 @@
18
18
 
19
19
  ### Режимы сборки
20
20
 
21
- - `yarn build --mode development` - сборка стилей с переменными сайта
22
- - `yarn build --mode production` - сборка стилей без переменных
21
+ - `pnpm build --mode development` - сборка стилей с переменными сайта
22
+ - `pnpm build --mode production` - сборка стилей без переменных
23
23
 
24
24
  ### Особенности production сборки
25
25
 
@@ -28,3 +28,46 @@
28
28
  - После сборки запускается `build.sh`:
29
29
  1. Создает `ui-kit-game.css` с игровыми переменными
30
30
  2. Перезаписывает `ui-kit.css` с переменными сайта
31
+
32
+ ## Локальное подключение UI-KIT к проекту
33
+
34
+ Для локального подключения UI-KIT можно воспользоваться одним из 2 следующих способов. Важно соблюдать правильный порядок действий для корректного подключения.
35
+
36
+ ### Подключение через link:
37
+
38
+ - **как создать локальное подключение:**
39
+
40
+ 1. В проекте website3 прописываем команду `pnpm ui-kit-link-libraries` - этой командой мы создаем линки необходимых библиотек для UI-KIT.
41
+ 2. В данном проекте ui-kit-2 мы прописываем команду `pnpm website-link-libraries` - этой командой мы подписываемся на линки из пункта 1.
42
+ 3. В данном проекте ui-kit-2 мы прописываем команду `pnpm link` - этой командой мы создаем линк самого UI-KIT.
43
+ 4. В проекте website3 прописываем команду `pnpm link @meduza/ui-kit-2` - это командой мы подписываемся на линк из пункта 3.
44
+
45
+ - **как создать файл с изменениями в UI-KIT:**
46
+
47
+ 1. В данном проекте ui-kit-2 мы прописываем команду `pnpm build` - этой командой мы создаем новый css-файл.
48
+
49
+ - **как отключить локальное подключение:**
50
+
51
+ 1. В проекте website3 мы прописываем команду `pnpm ui-kit-unlink-libraries` - этой командой мы удаляем линки необходимых библиотек для UI-KIT.
52
+ 2. В проекте website3 мы прописываем команду `pnpm unlink @meduza/ui-kit-2` - этой командой мы удаляем подписку на линк UI-KIT.
53
+ 3. В данном проекте ui-kit-2 мы прописываем команду `pnpm unlink` - этой командой мы удаляем линк UI-KIT из пункта 2.
54
+
55
+ ### Подключение через yalc:
56
+
57
+ yalc - это инструмент, который позволяет локально публиковать и подключать npm-пакеты. Это более стабильный и предсказуемый аналог `pnpm link`.
58
+
59
+ - **как подключиться:**
60
+
61
+ 1. Если yalc не установлен, то можно его установить глобально командой `npm install -g yalc`. Если yalc установлен, то можно перейти к шагу 2.
62
+ 2. В данном проекте ui-kit-2 мы прописываем команду `yalc publish` - этой командой мы создаем линк.
63
+ 3. В проекте website3 мы прописываем команду `yalc add @meduza/ui-kit-2` - этой командой мы подписываемся на линк из шага 2.
64
+
65
+ - **как создать файл с изменениями в UI-KIT:**
66
+
67
+ 1. В данном проекте ui-kit-2 мы прописываем команду `pnpm build` - этой командой мы создаем новый css-файл.
68
+ 2. В данном проекте ui-kit-2 мы прописываем команду `yalc publish` - этой командой мы создаем новый линк.
69
+ 3. В проекте website3 мы прописываем команду `yalc update` - это командой мы обновляем подписку на линк из шага 2.
70
+
71
+ - **как отключить локальное подключение:**
72
+
73
+ 1. В проекте website3 мы прописываем команду `yalc remove @meduza/ui-kit-2` - этой командой мы удаляем подписку на линк.
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { OptimizedImageItem } from '../types';
3
2
  export interface PopoverData {
4
3
  title?: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export interface MetaItemProps {
3
2
  bullets?: boolean;
4
3
  hasSource?: boolean;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export interface TooltipProps {
3
2
  children: React.ReactNode;
4
3
  position: ['left' | 'center', 'top' | 'bottom'];
@@ -13,7 +13,7 @@ const makeClassName = list => {
13
13
  return list.filter(([, active]) => active).map(([className]) => className).join(' ');
14
14
  };
15
15
 
16
- const ButtonLoader = () => ( /*#__PURE__*/React.createElement("svg", {
16
+ const ButtonLoader = () => (/*#__PURE__*/React.createElement("svg", {
17
17
  width: "30px",
18
18
  height: "30px",
19
19
  viewBox: "0 0 30 30",
@@ -58,7 +58,7 @@ const Button = ({
58
58
  disabled: disabled,
59
59
  onClick: handleClick,
60
60
  type: "button"
61
- }, state === 'isLoading' ? ( /*#__PURE__*/React.createElement("span", {
61
+ }, state === 'isLoading' ? (/*#__PURE__*/React.createElement("span", {
62
62
  className: styles$J.loader
63
63
  }, /*#__PURE__*/React.createElement(ButtonLoader, null))) : children);
64
64
  };
@@ -278,7 +278,7 @@ const icons = {
278
278
  }
279
279
  };
280
280
 
281
- var styles$I = {"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","read":"SvgSymbol-module_read__Bu653","listened":"SvgSymbol-module_listened__AOn7j","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","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-","bookmark":"SvgSymbol-module_bookmark__JPKyG","shareBookmark":"SvgSymbol-module_shareBookmark__7w9X9","receipt":"SvgSymbol-module_receipt__o3V8u","isInHeader":"SvgSymbol-module_isInHeader__M5Tzw"};
281
+ var styles$I = {"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","read":"SvgSymbol-module_read__Bu653","listened":"SvgSymbol-module_listened__AOn7j","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-","bookmark":"SvgSymbol-module_bookmark__JPKyG","shareBookmark":"SvgSymbol-module_shareBookmark__7w9X9","receipt":"SvgSymbol-module_receipt__o3V8u","isInHeader":"SvgSymbol-module_isInHeader__M5Tzw"};
282
282
 
283
283
  const SvgSymbol = ({
284
284
  icon,
@@ -289,7 +289,7 @@ const SvgSymbol = ({
289
289
  return /*#__PURE__*/React.createElement("svg", {
290
290
  "data-testid": "svg-symbol",
291
291
  xmlns: "http://www.w3.org/2000/svg",
292
- xmlnsXlink: icon !== 'play' && icon !== 'pause' ? 'http://www.w3.org/1999/xlink' : '',
292
+ xmlnsXlink: "http://www.w3.org/1999/xlink",
293
293
  className: makeClassName([[styles$I.root, true], [styles$I[size], !!styles$I[size]], [styles$I[icon], !!styles$I[icon]], [styles$I[styleContext], !!styles$I[styleContext]]]),
294
294
  width: data.width,
295
295
  height: data.height,
@@ -309,10 +309,10 @@ const Switcher = ({
309
309
  theme = 'light',
310
310
  childrenLeft,
311
311
  childrenRight
312
- }) => ( /*#__PURE__*/React.createElement("label", {
312
+ }) => (/*#__PURE__*/React.createElement("label", {
313
313
  "data-testid": "switcher",
314
314
  className: makeClassName([[styles$H.root, true], [styles$H[theme], !!styles$H[theme]], [styles$H[styleContext], !!styles$H[styleContext]]])
315
- }, childrenLeft && ( /*#__PURE__*/React.createElement("div", {
315
+ }, childrenLeft && (/*#__PURE__*/React.createElement("div", {
316
316
  className: makeClassName([[styles$H.children, true], [styles$H.left, true]])
317
317
  }, childrenLeft)), /*#__PURE__*/React.createElement("input", {
318
318
  className: styles$H.input,
@@ -323,7 +323,7 @@ const Switcher = ({
323
323
  className: styles$H.control
324
324
  }, /*#__PURE__*/React.createElement("span", {
325
325
  className: styles$H.knob
326
- })), childrenRight && ( /*#__PURE__*/React.createElement("div", {
326
+ })), childrenRight && (/*#__PURE__*/React.createElement("div", {
327
327
  className: makeClassName([[styles$H.children, true], [styles$H.right, true]])
328
328
  }, childrenRight))));
329
329
 
@@ -435,10 +435,10 @@ const RenderPicture = ({
435
435
  setFallback(!window.HTMLPictureElement);
436
436
  }, []);
437
437
  const keys = imageConditionalKeys[toCamel(display)] || imageConditionalKeys.default;
438
- return /*#__PURE__*/React.createElement("picture", null, source && ( /*#__PURE__*/React.createElement("source", {
438
+ return /*#__PURE__*/React.createElement("picture", null, source && (/*#__PURE__*/React.createElement("source", {
439
439
  media: "(min-width: 325px)",
440
440
  srcSet: `${source[1]} 2x`
441
- })), optimized && !optimized.w325 && ( /*#__PURE__*/React.createElement("source", {
441
+ })), optimized && !optimized.w325 && (/*#__PURE__*/React.createElement("source", {
442
442
  media: "(min-width: 0)",
443
443
  srcSet: `${optimized.original}`
444
444
  })), optimized && keys.map(key => {
@@ -512,7 +512,7 @@ const Image = ({
512
512
  onKeyPress: () => handleClick(),
513
513
  role: "button",
514
514
  tabIndex: 0
515
- }, lazy ? ( /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Lazy, {
515
+ }, lazy ? (/*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Lazy, {
516
516
  threshold: 0.25
517
517
  }, /*#__PURE__*/React.createElement(RenderPicture, {
518
518
  fallbackSource: fallbackSource,
@@ -524,7 +524,7 @@ const Image = ({
524
524
  })), /*#__PURE__*/React.createElement("noscript", null, /*#__PURE__*/React.createElement("img", {
525
525
  src: fallbackSource,
526
526
  alt: alt
527
- })))) : ( /*#__PURE__*/React.createElement(RenderPicture, {
527
+ })))) : (/*#__PURE__*/React.createElement(RenderPicture, {
528
528
  fallbackSource: fallbackSource,
529
529
  source: source,
530
530
  optimized: optimized,
@@ -732,7 +732,7 @@ const DotsOnImage = ({
732
732
  display: display
733
733
  }), /*#__PURE__*/React.createElement("div", {
734
734
  ref: container
735
- }, dots.map(dot => ( /*#__PURE__*/React.createElement("div", {
735
+ }, dots.map(dot => (/*#__PURE__*/React.createElement("div", {
736
736
  className: styles$C.dot,
737
737
  key: dot.id,
738
738
  style: {
@@ -747,11 +747,11 @@ const DotsOnImage = ({
747
747
  backgroundColor: dot.icon.color
748
748
  },
749
749
  onClick: () => handleDotClick(dot)
750
- }, dot.icon.type === 'svg' && ( /*#__PURE__*/React.createElement("div", {
750
+ }, dot.icon.type === 'svg' && (/*#__PURE__*/React.createElement("div", {
751
751
  dangerouslySetInnerHTML: {
752
752
  __html: dot.icon.svg_string
753
753
  }
754
- })), dot.icon.type === 'number' && dot.icon.number)))), popover.show && ( /*#__PURE__*/React.createElement(React.Fragment, null, viewportSize().width >= MediaQuerySizes.LANDSCAPE_TABLET ? ( /*#__PURE__*/React.createElement("div", {
754
+ })), 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
755
  className: makeClassName([[styles$C.popover, true], [styles$C[popover.side], !!popover.side], [styles$C[popover.align], !!popover.align]]),
756
756
  style: popover.style
757
757
  }, /*#__PURE__*/React.createElement(Footnote, {
@@ -764,7 +764,7 @@ const DotsOnImage = ({
764
764
  dangerouslySetInnerHTML: {
765
765
  __html: popover.body
766
766
  }
767
- })))) : ( /*#__PURE__*/React.createElement(Popover, {
767
+ })))) : (/*#__PURE__*/React.createElement(Popover, {
768
768
  onClose: () => {
769
769
  setPopover({
770
770
  show: false
@@ -811,12 +811,12 @@ const MediaCaption = ({
811
811
  return /*#__PURE__*/React.createElement("div", {
812
812
  "data-testid": "media-caption",
813
813
  className: makeClassName(classNames)
814
- }, caption && ( /*#__PURE__*/React.createElement("div", {
814
+ }, caption && (/*#__PURE__*/React.createElement("div", {
815
815
  className: styles$A.caption,
816
816
  dangerouslySetInnerHTML: {
817
817
  __html: caption
818
818
  }
819
- })), credit && ( /*#__PURE__*/React.createElement("div", {
819
+ })), credit && (/*#__PURE__*/React.createElement("div", {
820
820
  className: styles$A.credit,
821
821
  dangerouslySetInnerHTML: {
822
822
  __html: credit
@@ -863,14 +863,14 @@ const Table = ({
863
863
  return /*#__PURE__*/React.createElement("div", {
864
864
  key: row.key,
865
865
  className: styles$z.row
866
- }, row.cells.map((cell, j) => ( /*#__PURE__*/React.createElement("div", {
866
+ }, row.cells.map((cell, j) => (/*#__PURE__*/React.createElement("div", {
867
867
  key: cell.key,
868
868
  className: makeClassName([[styles$z.cell, true], [styles$z.header, options.header && i === 0], [styles$z[colors[cell.color]], true], [styles$z[columnsWidth[j]], true], [styles$z.fixedColumn, options.fixed_first_column && j === 0]]),
869
869
  dangerouslySetInnerHTML: {
870
870
  __html: cell.val
871
871
  }
872
872
  }))));
873
- })))), tableCredit && ( /*#__PURE__*/React.createElement(MediaCaption, {
873
+ })))), tableCredit && (/*#__PURE__*/React.createElement(MediaCaption, {
874
874
  credit: tableCredit,
875
875
  styleContext: styleContext
876
876
  })));
@@ -891,7 +891,7 @@ const MaterialNote = ({
891
891
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
892
892
  "data-testid": "material-note",
893
893
  className: makeClassName(classNames)
894
- }, data && data.map(item => ( /*#__PURE__*/React.createElement("p", {
894
+ }, data && data.map(item => (/*#__PURE__*/React.createElement("p", {
895
895
  className: styles$y[item.type],
896
896
  key: item.id,
897
897
  dangerouslySetInnerHTML: {
@@ -1186,7 +1186,7 @@ const EmbedBlock = ({
1186
1186
  const isProportional = block.data.height && block.data.width;
1187
1187
  const fullWidthProviders = ['youtube', 'vimeo', 'onetv', 'coub', 'meduza', 'facebook_video'];
1188
1188
  const mobileFullwidth = fullWidthProviders.indexOf(provider) > -1 || block.type === 'dots_on_image';
1189
- const renderCC = context => ( /*#__PURE__*/React.createElement(MediaCaption, {
1189
+ const renderCC = context => (/*#__PURE__*/React.createElement(MediaCaption, {
1190
1190
  credit: data.credit,
1191
1191
  caption: data.caption,
1192
1192
  styleContext: context || styleContext
@@ -1264,21 +1264,21 @@ const EmbedBlock = ({
1264
1264
  }
1265
1265
  return /*#__PURE__*/React.createElement("figure", {
1266
1266
  className: makeClassName(classNames)
1267
- }, children && ( /*#__PURE__*/React.createElement("div", {
1267
+ }, children && (/*#__PURE__*/React.createElement("div", {
1268
1268
  className: styles$r.object
1269
1269
  }, /*#__PURE__*/React.createElement("div", {
1270
1270
  className: makeClassName([[styles$r.wrapper, true], [styles$r.isProportional, isProportional]]),
1271
1271
  style: style
1272
1272
  }, /*#__PURE__*/React.createElement("div", {
1273
1273
  className: styles$r.objectWrap
1274
- }, children)))), !children && renderEmbed(style), cc === 'default' && /*#__PURE__*/React.createElement("figcaption", null, renderCC()), cc === 'button' && ( /*#__PURE__*/React.createElement("button", {
1274
+ }, children)))), !children && renderEmbed(style), cc === 'default' && /*#__PURE__*/React.createElement("figcaption", null, renderCC()), cc === 'button' && (/*#__PURE__*/React.createElement("button", {
1275
1275
  className: styles$r.control,
1276
1276
  type: "button",
1277
1277
  "aria-label": "Open",
1278
1278
  onClick: () => {
1279
1279
  setIsPopoverShown(!isPopoverShown);
1280
1280
  }
1281
- })), cc === 'button' && isPopoverShown && ( /*#__PURE__*/React.createElement(Popover, {
1281
+ })), cc === 'button' && isPopoverShown && (/*#__PURE__*/React.createElement(Popover, {
1282
1282
  onClose: () => {
1283
1283
  setIsPopoverShown(false);
1284
1284
  }
@@ -1562,7 +1562,7 @@ const ListBlock = ({
1562
1562
  return /*#__PURE__*/React.createElement(TagName, {
1563
1563
  className: makeClassName(classNames),
1564
1564
  "data-testid": "list-block"
1565
- }, data.map((item, index) => ( /*#__PURE__*/React.createElement("li", {
1565
+ }, data.map((item, index) => (/*#__PURE__*/React.createElement("li", {
1566
1566
  key: index,
1567
1567
  dangerouslySetInnerHTML: {
1568
1568
  __html: item
@@ -1593,7 +1593,7 @@ const RelatedBlock = ({
1593
1593
  className: styles$j.header
1594
1594
  }, title), /*#__PURE__*/React.createElement("ul", {
1595
1595
  className: styles$j.items
1596
- }, related.map((item, index) => ( /*#__PURE__*/React.createElement("li", {
1596
+ }, related.map((item, index) => (/*#__PURE__*/React.createElement("li", {
1597
1597
  key: item.id || index,
1598
1598
  className: styles$j[item.layout]
1599
1599
  }, /*#__PURE__*/React.createElement(reactRouterDom.Link, {
@@ -1629,7 +1629,7 @@ const SourceBlock = ({
1629
1629
  href: url,
1630
1630
  target: "_blank",
1631
1631
  rel: "noopener noreferrer"
1632
- }, quote.map((item, index) => ( /*#__PURE__*/React.createElement("p", {
1632
+ }, quote.map((item, index) => (/*#__PURE__*/React.createElement("p", {
1633
1633
  key: index,
1634
1634
  dangerouslySetInnerHTML: {
1635
1635
  __html: item.data
@@ -1694,7 +1694,7 @@ const SensitiveBlock = ({
1694
1694
  }, /*#__PURE__*/React.createElement(EmbedBlockContainer, {
1695
1695
  block: block.item,
1696
1696
  styleContext: context
1697
- }))), cc && ( /*#__PURE__*/React.createElement("figcaption", {
1697
+ }))), cc && (/*#__PURE__*/React.createElement("figcaption", {
1698
1698
  className: styles$h.figcaption
1699
1699
  }, /*#__PURE__*/React.createElement(MediaCaption, {
1700
1700
  credit: credit,
@@ -1736,14 +1736,14 @@ const GroupedBlock = ({
1736
1736
  style: {
1737
1737
  width: `${percentWidth}%`
1738
1738
  }
1739
- }, item.type === 'sensitive' ? ( /*#__PURE__*/React.createElement(SensitiveBlock, {
1739
+ }, item.type === 'sensitive' ? (/*#__PURE__*/React.createElement(SensitiveBlock, {
1740
1740
  block: item,
1741
1741
  styleContext: ['isInGroupedBlock']
1742
- })) : ( /*#__PURE__*/React.createElement(EmbedBlockContainer, {
1742
+ })) : (/*#__PURE__*/React.createElement(EmbedBlockContainer, {
1743
1743
  block: item,
1744
1744
  styleContext: ['isInGroupedBlock']
1745
1745
  })));
1746
- })), block.cc && ( /*#__PURE__*/React.createElement("figcaption", {
1746
+ })), block.cc && (/*#__PURE__*/React.createElement("figcaption", {
1747
1747
  className: styles$g.figcaption
1748
1748
  }, /*#__PURE__*/React.createElement(MediaCaption, {
1749
1749
  credit: block.credit,
@@ -1879,7 +1879,7 @@ const MetaContainer = ({
1879
1879
  hasSource: hasSource,
1880
1880
  bullets: true,
1881
1881
  key: component.id
1882
- }, /*#__PURE__*/React.createElement(React.Fragment, null, lang === 'ru' ? 'Источник: ' : 'Source: ', component.url && ( /*#__PURE__*/React.createElement("a", {
1882
+ }, /*#__PURE__*/React.createElement(React.Fragment, null, lang === 'ru' ? 'Источник: ' : 'Source: ', component.url && (/*#__PURE__*/React.createElement("a", {
1883
1883
  href: component.url,
1884
1884
  rel: "noopener noreferrer",
1885
1885
  target: "_blank"
@@ -1891,7 +1891,7 @@ const MetaContainer = ({
1891
1891
  hasSource: hasSource,
1892
1892
  bullets: true,
1893
1893
  key: component.id
1894
- }, /*#__PURE__*/React.createElement(React.Fragment, null, styleContext !== 'isInDynamicBlock' && ( /*#__PURE__*/React.createElement(SvgSymbol, {
1894
+ }, /*#__PURE__*/React.createElement(React.Fragment, null, styleContext !== 'isInDynamicBlock' && (/*#__PURE__*/React.createElement(SvgSymbol, {
1895
1895
  icon: "podcast",
1896
1896
  size: "small"
1897
1897
  })), component.text));
@@ -1954,14 +1954,14 @@ const MetaContainer = ({
1954
1954
  return null;
1955
1955
  }
1956
1956
  }
1957
- }), (isRead || isListened) && ( /*#__PURE__*/React.createElement(MetaItem, {
1957
+ }), (isRead || isListened) && (/*#__PURE__*/React.createElement(MetaItem, {
1958
1958
  hasSource: hasSource,
1959
1959
  bullets: true,
1960
1960
  type: isListened ? 'listened' : 'read'
1961
1961
  }, /*#__PURE__*/React.createElement(SvgSymbol, {
1962
1962
  icon: isListened ? 'listened' : 'read',
1963
1963
  size: "unset"
1964
- }))), isSlides && lang === 'ru' && ( /*#__PURE__*/React.createElement("div", {
1964
+ }))), isSlides && lang === 'ru' && (/*#__PURE__*/React.createElement("div", {
1965
1965
  className: styles$t.bookmark
1966
1966
  }, /*#__PURE__*/React.createElement(BookmarkButton, {
1967
1967
  isInBookmarks: isInBookmarks,
@@ -2086,7 +2086,7 @@ const VersesBlock = ({
2086
2086
  return /*#__PURE__*/React.createElement("ul", {
2087
2087
  className: makeClassName(classNames),
2088
2088
  "data-testid": "verses-block"
2089
- }, data.map((item, index) => ( /*#__PURE__*/React.createElement("li", {
2089
+ }, data.map((item, index) => (/*#__PURE__*/React.createElement("li", {
2090
2090
  key: index,
2091
2091
  dangerouslySetInnerHTML: {
2092
2092
  __html: item
@@ -2287,7 +2287,7 @@ const Cover = ({
2287
2287
  classNames = makeStyleContext(classNames, theme, styles$9);
2288
2288
  style.backgroundImage = generateGradient(gradients.bg_rgb, 'mediaBlockBottom');
2289
2289
  }
2290
- const renderCC = context => ( /*#__PURE__*/React.createElement(MediaCaption, {
2290
+ const renderCC = context => (/*#__PURE__*/React.createElement(MediaCaption, {
2291
2291
  credit: credit,
2292
2292
  caption: caption,
2293
2293
  styleContext: context || styleContext
@@ -2304,18 +2304,18 @@ const Cover = ({
2304
2304
  })), /*#__PURE__*/React.createElement("div", {
2305
2305
  className: styles$9.body,
2306
2306
  style: style
2307
- }, blocks.map(item => ( /*#__PURE__*/React.createElement(RenderBlocks, {
2307
+ }, blocks.map(item => (/*#__PURE__*/React.createElement(RenderBlocks, {
2308
2308
  key: item.id,
2309
2309
  block: item,
2310
2310
  styleContext: styleContext
2311
- })))), cc === 'button' && ( /*#__PURE__*/React.createElement("button", {
2311
+ })))), cc === 'button' && (/*#__PURE__*/React.createElement("button", {
2312
2312
  className: styles$9.control,
2313
2313
  type: "button",
2314
2314
  "aria-label": "Open",
2315
2315
  onClick: () => {
2316
2316
  setIsPopoverShown(!isPopoverShown);
2317
2317
  }
2318
- })), cc === 'button' && isPopoverShown && ( /*#__PURE__*/React.createElement(Popover, {
2318
+ })), cc === 'button' && isPopoverShown && (/*#__PURE__*/React.createElement(Popover, {
2319
2319
  onClose: () => {
2320
2320
  setIsPopoverShown(false);
2321
2321
  }
@@ -2356,7 +2356,7 @@ const HalfBlock = ({
2356
2356
  display: "super_full"
2357
2357
  })), /*#__PURE__*/React.createElement("div", {
2358
2358
  className: styles$8.body
2359
- }, data.blocks.map(item => ( /*#__PURE__*/React.createElement(RenderBlocks, {
2359
+ }, data.blocks.map(item => (/*#__PURE__*/React.createElement(RenderBlocks, {
2360
2360
  key: item.id,
2361
2361
  block: item,
2362
2362
  styleContext: ['rich']
@@ -2385,7 +2385,7 @@ const ImportantLead = ({
2385
2385
  return /*#__PURE__*/React.createElement("div", {
2386
2386
  "data-testid": "important-lead",
2387
2387
  className: makeClassName(classNames)
2388
- }, data.map(item => ( /*#__PURE__*/React.createElement(RenderBlocks, {
2388
+ }, data.map(item => (/*#__PURE__*/React.createElement(RenderBlocks, {
2389
2389
  key: item.id,
2390
2390
  block: item,
2391
2391
  styleContext: "isInImportantLead"
@@ -2437,7 +2437,7 @@ const Spoiler = ({
2437
2437
  className: styles$6.header
2438
2438
  }, title && /*#__PURE__*/React.createElement("h3", null, title)), /*#__PURE__*/React.createElement("div", {
2439
2439
  className: styles$6.body
2440
- }, blocks.map(item => ( /*#__PURE__*/React.createElement(RenderBlocks, {
2440
+ }, blocks.map(item => (/*#__PURE__*/React.createElement(RenderBlocks, {
2441
2441
  key: item.id,
2442
2442
  block: item,
2443
2443
  styleContext: context
@@ -2510,7 +2510,7 @@ const RelatedRichBlock = ({
2510
2510
  to: `/${url}`,
2511
2511
  onClick: () => handleClick(),
2512
2512
  ref: ref
2513
- }, layout === 'rich' && ( /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
2513
+ }, layout === 'rich' && (/*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
2514
2514
  className: styles$5.overlay,
2515
2515
  style: style
2516
2516
  }), /*#__PURE__*/React.createElement("div", {
@@ -2532,7 +2532,7 @@ const RelatedRichBlock = ({
2532
2532
  display: "narrow"
2533
2533
  }))), /*#__PURE__*/React.createElement("div", {
2534
2534
  className: styles$5.body
2535
- }, blocks.map(item => ( /*#__PURE__*/React.createElement(RenderBlocks, {
2535
+ }, blocks.map(item => (/*#__PURE__*/React.createElement(RenderBlocks, {
2536
2536
  key: item.id,
2537
2537
  block: item,
2538
2538
  styleContext: context
@@ -2595,7 +2595,7 @@ const ShopRelatedBlock = ({
2595
2595
  target: "_blank",
2596
2596
  onClick: () => handleClick(),
2597
2597
  ref: ref
2598
- }, layout === 'rich' && ( /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
2598
+ }, layout === 'rich' && (/*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
2599
2599
  className: styles$4.overlay,
2600
2600
  style: style
2601
2601
  }), /*#__PURE__*/React.createElement("div", {
@@ -2660,7 +2660,7 @@ const RelatedBook = ({
2660
2660
  className: styles$3.contentWrap
2661
2661
  }, /*#__PURE__*/React.createElement("div", {
2662
2662
  className: styles$3.content
2663
- }, block.data.blocks.map(item => ( /*#__PURE__*/React.createElement(RenderBlocks, {
2663
+ }, block.data.blocks.map(item => (/*#__PURE__*/React.createElement(RenderBlocks, {
2664
2664
  key: item.id,
2665
2665
  block: item,
2666
2666
  styleContext: ['isInMediaBlock', 'isInBookRelated', 'isCustom']
@@ -2755,7 +2755,7 @@ const ListViewSwitcher = ({
2755
2755
  enabled,
2756
2756
  onChange,
2757
2757
  size = 'md'
2758
- }) => ( /*#__PURE__*/React.createElement("label", {
2758
+ }) => (/*#__PURE__*/React.createElement("label", {
2759
2759
  "data-testid": "listViewSwitcher",
2760
2760
  className: makeClassName([[styles$2.root, true], [styles$2[size], true]])
2761
2761
  }, /*#__PURE__*/React.createElement("input", {
@@ -2789,7 +2789,7 @@ const ToolbarButton = ({
2789
2789
  className: makeClassName(classNames),
2790
2790
  type: "button",
2791
2791
  onClick: event => onClick(event, type)
2792
- }, icon && ( /*#__PURE__*/React.createElement("div", {
2792
+ }, icon && (/*#__PURE__*/React.createElement("div", {
2793
2793
  className: styles$1.icon
2794
2794
  }, /*#__PURE__*/React.createElement(SvgSymbol, {
2795
2795
  size: "medium",