@meduza/ui-kit-2 0.2.3 → 0.2.5

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.
@@ -2004,15 +2004,15 @@ var DonatesTeaser = function DonatesTeaser(_ref) {
2004
2004
 
2005
2005
  var data = {
2006
2006
  ru: {
2007
- title: '«Медуза» работает для вас',
2008
- subtitle: 'Нам нужна ваша поддержка',
2009
- button: 'Да!',
2007
+ title: 'Успеть сделать важное дело:<br/>Поддержать «Медузу» — ',
2008
+ // subtitle: 'Нам нужна ваша поддержка',
2009
+ button: 'Бегу!',
2010
2010
  href: 'https://support.meduza.io'
2011
2011
  },
2012
2012
  en: {
2013
- title: 'Meduza is working for you',
2014
- subtitle: 'And we need your support',
2015
- button: 'Okay!',
2013
+ title: 'There’s still time for a good deed&nbsp;in&nbsp;2021!<br/>Support Meduza — ',
2014
+ // subtitle: 'And we need your support',
2015
+ button: 'Donate',
2016
2016
  href: 'https://support.meduza.io/en'
2017
2017
  }
2018
2018
  };
@@ -2027,11 +2027,6 @@ var DonatesTeaser = function DonatesTeaser(_ref) {
2027
2027
  dangerouslySetInnerHTML: {
2028
2028
  __html: data[lang].title
2029
2029
  }
2030
- }), " ", React.createElement("span", {
2031
- className: styles$w.text,
2032
- dangerouslySetInnerHTML: {
2033
- __html: data[lang].subtitle
2034
- }
2035
2030
  }))), React.createElement("div", {
2036
2031
  className: styles$w.cta
2037
2032
  }, React.createElement("a", {
@@ -2043,6 +2038,55 @@ var DonatesTeaser = function DonatesTeaser(_ref) {
2043
2038
  }, data[lang].button))));
2044
2039
  };
2045
2040
 
2041
+ var styles$x = {"root":"AnnouncementInText-module_root__3zM9x","body":"AnnouncementInText-module_body__1yI8T","title":"AnnouncementInText-module_title__29CXr","footer":"AnnouncementInText-module_footer__1fyWt","button":"AnnouncementInText-module_button__2dEXa","center":"AnnouncementInText-module_center__3VLl2","isInCard":"AnnouncementInText-module_isInCard__2Xq_I","isInSlide":"AnnouncementInText-module_isInSlide__1PsC2","en":"AnnouncementInText-module_en__1Mgvm"};
2042
+
2043
+ var AnnouncementInText = function AnnouncementInText(_ref) {
2044
+ var styleContext = _ref.styleContext,
2045
+ _ref$lang = _ref.lang,
2046
+ lang = _ref$lang === void 0 ? 'ru' : _ref$lang;
2047
+ var classNames = [[styles$x.root, true], [styles$x[lang], styles$x[lang]]];
2048
+
2049
+ if (styleContext) {
2050
+ classNames = makeStyleContext(classNames, styleContext, styles$x);
2051
+ }
2052
+
2053
+ var data = {
2054
+ ru: {
2055
+ title: 'Подарите себе «Медузу»',
2056
+ text: 'В&nbsp;2021 году &laquo;Медуза&raquo; смогла выжить&nbsp;&mdash; благодаря читателям. Но&nbsp;нам по-прежнему нужна поддержка. Один раз или регулярно, маленькая сумма или большая&nbsp;&mdash; любая помощь критически важна. В&nbsp;2022-м наша редакция может рассчитывать только на&nbsp;вас. А&nbsp;вы&nbsp;знаете, что делать.',
2057
+ button: 'О да, я знаю!',
2058
+ href: 'https://support.meduza.io'
2059
+ },
2060
+ en: {
2061
+ title: 'This holiday season, make Meduza your gift to&nbsp;yourself',
2062
+ text: 'Meduza survived 2021 thanks to readers like&nbsp;you. To make it through another year, we need your continued support. One-time contributions and especially recurring donations will sustain Meduza’s work in 2022. Whatever you can give, your help is critical. The future of our newsroom is in your hands. You know what to do.',
2063
+ button: 'Let’s do this!',
2064
+ href: 'https://support.meduza.io/en'
2065
+ }
2066
+ };
2067
+ var localeData = data[lang];
2068
+ return React.createElement("div", {
2069
+ "data-testid": "announcement-in-text",
2070
+ className: makeClassName(classNames)
2071
+ }, React.createElement("div", {
2072
+ className: styles$x.body
2073
+ }, React.createElement("h3", {
2074
+ className: styles$x.title,
2075
+ dangerouslySetInnerHTML: {
2076
+ __html: localeData.title
2077
+ }
2078
+ }), React.createElement("p", {
2079
+ dangerouslySetInnerHTML: {
2080
+ __html: localeData.text
2081
+ }
2082
+ })), React.createElement("div", {
2083
+ className: styles$x.footer
2084
+ }, React.createElement("a", {
2085
+ className: styles$x.button,
2086
+ href: localeData.href
2087
+ }, localeData.button)));
2088
+ };
2089
+
2046
2090
  var RenderBlocks = function RenderBlocks(_ref) {
2047
2091
  var block = _ref.block,
2048
2092
  styleContext = _ref.styleContext,
@@ -2195,6 +2239,12 @@ var RenderBlocks = function RenderBlocks(_ref) {
2195
2239
  styleContext: styleContext
2196
2240
  });
2197
2241
 
2242
+ case 'announcement_in_text':
2243
+ return React.createElement(AnnouncementInText, {
2244
+ styleContext: styleContext,
2245
+ lang: lang
2246
+ });
2247
+
2198
2248
  default:
2199
2249
  {
2200
2250
  return null;
@@ -2202,7 +2252,7 @@ var RenderBlocks = function RenderBlocks(_ref) {
2202
2252
  }
2203
2253
  };
2204
2254
 
2205
- 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"};
2255
+ var styles$y = {"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"};
2206
2256
 
2207
2257
  var Cover = function Cover(_ref) {
2208
2258
  var _ref$block = _ref.block,
@@ -2223,15 +2273,15 @@ var Cover = function Cover(_ref) {
2223
2273
  setIsPopoverShown = _useState[1];
2224
2274
 
2225
2275
  var style = {};
2226
- var classNames = [[styles$x.root, true], [styles$x[onlyOn], !!onlyOn && !!styles$x[onlyOn]]];
2276
+ var classNames = [[styles$y.root, true], [styles$y[onlyOn], !!onlyOn && !!styles$y[onlyOn]]];
2227
2277
 
2228
2278
  if (styleContext) {
2229
- classNames = makeStyleContext(classNames, styleContext, styles$x);
2279
+ classNames = makeStyleContext(classNames, styleContext, styles$y);
2230
2280
  }
2231
2281
 
2232
2282
  if (gradients) {
2233
2283
  var theme = [gradients.text_rgb === '0,0,0' ? 'dark' : 'light'];
2234
- classNames = makeStyleContext(classNames, theme, styles$x);
2284
+ classNames = makeStyleContext(classNames, theme, styles$y);
2235
2285
  style.backgroundImage = generateGradient(gradients.bg_rgb, 'mediaBlockBottom');
2236
2286
  }
2237
2287
 
@@ -2247,13 +2297,13 @@ var Cover = function Cover(_ref) {
2247
2297
  "data-testid": "cover",
2248
2298
  className: makeClassName(classNames)
2249
2299
  }, React.createElement("div", {
2250
- className: styles$x.image
2300
+ className: styles$y.image
2251
2301
  }, React.createElement(Image, {
2252
2302
  optimized: urls,
2253
2303
  ratio: mobileRatio,
2254
2304
  display: "narrow"
2255
2305
  })), React.createElement("div", {
2256
- className: styles$x.body,
2306
+ className: styles$y.body,
2257
2307
  style: style
2258
2308
  }, blocks.map(function (item) {
2259
2309
  return React.createElement(RenderBlocks, {
@@ -2262,7 +2312,7 @@ var Cover = function Cover(_ref) {
2262
2312
  styleContext: styleContext
2263
2313
  });
2264
2314
  })), cc === 'button' && React.createElement("button", {
2265
- className: styles$x.control,
2315
+ className: styles$y.control,
2266
2316
  type: "button",
2267
2317
  "aria-label": "Open",
2268
2318
  onClick: function onClick() {
@@ -2275,7 +2325,7 @@ var Cover = function Cover(_ref) {
2275
2325
  }, renderCC('isInPopover')));
2276
2326
  };
2277
2327
 
2278
- 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"};
2328
+ var styles$z = {"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"};
2279
2329
 
2280
2330
  var HalfBlock = function HalfBlock(_ref) {
2281
2331
  var _ref$block = _ref.block,
@@ -2287,25 +2337,25 @@ var HalfBlock = function HalfBlock(_ref) {
2287
2337
  credit = _ref$block$data$cover.credit,
2288
2338
  caption = _ref$block$data$cover.caption,
2289
2339
  styleContext = _ref.styleContext;
2290
- var classNames = [[styles$y.root, true], [styles$y[onlyOn], true]];
2340
+ var classNames = [[styles$z.root, true], [styles$z[onlyOn], true]];
2291
2341
 
2292
2342
  if (styleContext) {
2293
- classNames = makeStyleContext(classNames, styleContext, styles$y);
2343
+ classNames = makeStyleContext(classNames, styleContext, styles$z);
2294
2344
  }
2295
2345
 
2296
2346
  return React.createElement("div", {
2297
2347
  "data-testid": "half-block",
2298
2348
  className: makeClassName(classNames)
2299
2349
  }, React.createElement("div", {
2300
- className: styles$y.main
2350
+ className: styles$z.main
2301
2351
  }, React.createElement("div", {
2302
- className: styles$y.image
2352
+ className: styles$z.image
2303
2353
  }, React.createElement(Image, {
2304
2354
  optimized: optimized,
2305
2355
  ratio: ratio,
2306
2356
  display: "super_full"
2307
2357
  })), React.createElement("div", {
2308
- className: styles$y.body
2358
+ className: styles$z.body
2309
2359
  }, data.blocks.map(function (item) {
2310
2360
  return React.createElement(RenderBlocks, {
2311
2361
  key: item.id,
@@ -2313,7 +2363,7 @@ var HalfBlock = function HalfBlock(_ref) {
2313
2363
  styleContext: ['rich']
2314
2364
  });
2315
2365
  }))), React.createElement("div", {
2316
- className: styles$y.footer
2366
+ className: styles$z.footer
2317
2367
  }, React.createElement(MediaCaption, {
2318
2368
  credit: credit,
2319
2369
  caption: caption,
@@ -2321,17 +2371,17 @@ var HalfBlock = function HalfBlock(_ref) {
2321
2371
  })));
2322
2372
  };
2323
2373
 
2324
- var styles$z = {"root":"ImportantLead-module_root__2BdT3","slide":"ImportantLead-module_slide__3kQ9x","mobile":"ImportantLead-module_mobile__3BXbm","desktop":"ImportantLead-module_desktop__3Zljc"};
2374
+ var styles$A = {"root":"ImportantLead-module_root__2BdT3","slide":"ImportantLead-module_slide__3kQ9x","mobile":"ImportantLead-module_mobile__3BXbm","desktop":"ImportantLead-module_desktop__3Zljc"};
2325
2375
 
2326
2376
  var ImportantLead = function ImportantLead(_ref) {
2327
2377
  var _ref$block = _ref.block,
2328
2378
  onlyOn = _ref$block.only_on,
2329
2379
  data = _ref$block.data,
2330
2380
  styleContext = _ref.styleContext;
2331
- var classNames = [[styles$z.root, true], [styles$z[onlyOn], !!onlyOn]];
2381
+ var classNames = [[styles$A.root, true], [styles$A[onlyOn], !!onlyOn]];
2332
2382
 
2333
2383
  if (styleContext) {
2334
- classNames = makeStyleContext(classNames, styleContext, styles$z);
2384
+ classNames = makeStyleContext(classNames, styleContext, styles$A);
2335
2385
  }
2336
2386
 
2337
2387
  return React.createElement("div", {
@@ -2346,7 +2396,7 @@ var ImportantLead = function ImportantLead(_ref) {
2346
2396
  }));
2347
2397
  };
2348
2398
 
2349
- 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"};
2399
+ var styles$B = {"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"};
2350
2400
 
2351
2401
  var Spoiler = function Spoiler(_ref) {
2352
2402
  var _ref$block = _ref.block,
@@ -2381,11 +2431,11 @@ var Spoiler = function Spoiler(_ref) {
2381
2431
  }
2382
2432
  };
2383
2433
 
2384
- var classNames = [[styles$A.root, true], [styles$A[onlyOn], !!onlyOn], [styles$A[display], !!display && styles$A[display]], [[styles$A.spoiled], !!spoiled]];
2434
+ var classNames = [[styles$B.root, true], [styles$B[onlyOn], !!onlyOn], [styles$B[display], !!display && styles$B[display]], [[styles$B.spoiled], !!spoiled]];
2385
2435
  var context = ['center'];
2386
2436
 
2387
2437
  if (styleContext) {
2388
- classNames = makeStyleContext(classNames, styleContext, styles$A);
2438
+ classNames = makeStyleContext(classNames, styleContext, styles$B);
2389
2439
  }
2390
2440
 
2391
2441
  var buttonCollapse = button ? button.collapse : 'Свернуть';
@@ -2395,9 +2445,9 @@ var Spoiler = function Spoiler(_ref) {
2395
2445
  className: makeClassName(classNames),
2396
2446
  "data-testid": "spoiler"
2397
2447
  }, React.createElement("div", {
2398
- className: styles$A.header
2448
+ className: styles$B.header
2399
2449
  }, title && React.createElement("h3", null, title)), React.createElement("div", {
2400
- className: styles$A.body
2450
+ className: styles$B.body
2401
2451
  }, blocks.map(function (item) {
2402
2452
  return React.createElement(RenderBlocks, {
2403
2453
  key: item.id,
@@ -2405,7 +2455,7 @@ var Spoiler = function Spoiler(_ref) {
2405
2455
  styleContext: context
2406
2456
  });
2407
2457
  })), React.createElement("div", {
2408
- className: styles$A.footer
2458
+ className: styles$B.footer
2409
2459
  }, React.createElement(Button, {
2410
2460
  size: "default",
2411
2461
  theme: "gray",
@@ -2418,7 +2468,7 @@ var Spoiler = function Spoiler(_ref) {
2418
2468
  }))));
2419
2469
  };
2420
2470
 
2421
- 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"};
2471
+ var styles$C = {"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"};
2422
2472
 
2423
2473
  /* eslint-disable react/jsx-no-target-blank */
2424
2474
  var RelatedRichBlock = function RelatedRichBlock(_ref) {
@@ -2457,18 +2507,18 @@ var RelatedRichBlock = function RelatedRichBlock(_ref) {
2457
2507
  postMessage('richRelated', url, 'click');
2458
2508
  };
2459
2509
 
2460
- var classNames = [[styles$B.root, true], [styles$B[cardType], !!layout && !!styles$B[cardType]], [styles$B.hasGradient, !!gradients], [styles$B[onlyOn], !!onlyOn && !!styles$B[onlyOn]]];
2510
+ var classNames = [[styles$C.root, true], [styles$C[cardType], !!layout && !!styles$C[cardType]], [styles$C.hasGradient, !!gradients], [styles$C[onlyOn], !!onlyOn && !!styles$C[onlyOn]]];
2461
2511
  var context = ['isInMediaBlock'];
2462
2512
 
2463
2513
  if (styleContext) {
2464
- classNames = makeStyleContext(classNames, styleContext, styles$B);
2514
+ classNames = makeStyleContext(classNames, styleContext, styles$C);
2465
2515
  context = [].concat(styleContext, ['isInMediaBlock']);
2466
2516
  }
2467
2517
 
2468
2518
  if (gradients) {
2469
2519
  styleHeader.backgroundImage = generateGradient(gradients.bg_rgb, 'mediaBlockTop');
2470
2520
  var theme = [gradients.text_rgb === '0,0,0' ? 'dark' : 'light'];
2471
- classNames = makeStyleContext(classNames, theme, styles$B);
2521
+ classNames = makeStyleContext(classNames, theme, styles$C);
2472
2522
 
2473
2523
  if (onlyOn === 'desktop') {
2474
2524
  style.backgroundImage = generateGradient(gradients.bg_rgb, 'mediaBlockBottom');
@@ -2484,27 +2534,27 @@ var RelatedRichBlock = function RelatedRichBlock(_ref) {
2484
2534
  },
2485
2535
  ref: ref
2486
2536
  }, layout === 'rich' && React.createElement(React.Fragment, null, React.createElement("div", {
2487
- className: styles$B.overlay,
2537
+ className: styles$C.overlay,
2488
2538
  style: style
2489
2539
  }), React.createElement("div", {
2490
- className: styles$B.overlayHeader,
2540
+ className: styles$C.overlayHeader,
2491
2541
  style: styleHeader
2492
2542
  })), React.createElement("div", {
2493
- className: styles$B.tag
2543
+ className: styles$C.tag
2494
2544
  }, React.createElement(Tag, {
2495
2545
  size: "small",
2496
2546
  theme: "inherit",
2497
2547
  styleContext: "richRelated"
2498
2548
  }, tag)), React.createElement("div", {
2499
- className: styles$B.cover
2549
+ className: styles$C.cover
2500
2550
  }, React.createElement("div", {
2501
- className: styles$B.picture
2551
+ className: styles$C.picture
2502
2552
  }, React.createElement(Image, {
2503
2553
  optimized: urls,
2504
2554
  ratio: ratio,
2505
2555
  display: "narrow"
2506
2556
  }))), React.createElement("div", {
2507
- className: styles$B.body
2557
+ className: styles$C.body
2508
2558
  }, blocks.map(function (item) {
2509
2559
  return React.createElement(RenderBlocks, {
2510
2560
  key: item.id,
@@ -2514,7 +2564,7 @@ var RelatedRichBlock = function RelatedRichBlock(_ref) {
2514
2564
  })));
2515
2565
  };
2516
2566
 
2517
- var styles$C = {"root":"ShopRelatedBlock-module_root__x4vdk","wrapper":"ShopRelatedBlock-module_wrapper__3jQp9","overlay":"ShopRelatedBlock-module_overlay__15S5a","overlayHeader":"ShopRelatedBlock-module_overlayHeader__2IXK-","body":"ShopRelatedBlock-module_body__3ipYj","hasGradient":"ShopRelatedBlock-module_hasGradient__1pghj","picture":"ShopRelatedBlock-module_picture__1bu9H","tag":"ShopRelatedBlock-module_tag__2vTKm","center":"ShopRelatedBlock-module_center__2H85-","title":"ShopRelatedBlock-module_title__1ZIW0","price":"ShopRelatedBlock-module_price__2cVXM","dark":"ShopRelatedBlock-module_dark__3Gfbc","light":"ShopRelatedBlock-module_light__1y8Qy","mobile":"ShopRelatedBlock-module_mobile__AleU0","desktop":"ShopRelatedBlock-module_desktop__2--zA"};
2567
+ var styles$D = {"root":"ShopRelatedBlock-module_root__x4vdk","wrapper":"ShopRelatedBlock-module_wrapper__3jQp9","overlay":"ShopRelatedBlock-module_overlay__15S5a","overlayHeader":"ShopRelatedBlock-module_overlayHeader__2IXK-","body":"ShopRelatedBlock-module_body__3ipYj","hasGradient":"ShopRelatedBlock-module_hasGradient__1pghj","picture":"ShopRelatedBlock-module_picture__1bu9H","tag":"ShopRelatedBlock-module_tag__2vTKm","center":"ShopRelatedBlock-module_center__2H85-","title":"ShopRelatedBlock-module_title__1ZIW0","price":"ShopRelatedBlock-module_price__2cVXM","dark":"ShopRelatedBlock-module_dark__3Gfbc","light":"ShopRelatedBlock-module_light__1y8Qy","mobile":"ShopRelatedBlock-module_mobile__AleU0","desktop":"ShopRelatedBlock-module_desktop__2--zA"};
2518
2568
 
2519
2569
  /* eslint-disable react/jsx-no-target-blank */
2520
2570
  var ShopRelatedBlock = function ShopRelatedBlock(_ref) {
@@ -2553,16 +2603,16 @@ var ShopRelatedBlock = function ShopRelatedBlock(_ref) {
2553
2603
  postMessage('productRelated', url, 'click');
2554
2604
  };
2555
2605
 
2556
- var classNames = [[styles$C.root, true], [styles$C.hasGradient, !!gradients], [styles$C[onlyOn], !!onlyOn && !!styles$C[onlyOn]]];
2606
+ var classNames = [[styles$D.root, true], [styles$D.hasGradient, !!gradients], [styles$D[onlyOn], !!onlyOn && !!styles$D[onlyOn]]];
2557
2607
 
2558
2608
  if (styleContext) {
2559
- classNames = makeStyleContext(classNames, styleContext, styles$C);
2609
+ classNames = makeStyleContext(classNames, styleContext, styles$D);
2560
2610
  }
2561
2611
 
2562
2612
  if (gradients) {
2563
2613
  styleHeader.backgroundImage = generateGradient(gradients.bg_rgb, 'mediaBlockTop');
2564
2614
  var theme = [gradients.text_rgb === '0,0,0' ? 'dark' : 'light'];
2565
- classNames = makeStyleContext(classNames, theme, styles$C);
2615
+ classNames = makeStyleContext(classNames, theme, styles$D);
2566
2616
 
2567
2617
  if (onlyOn === 'desktop') {
2568
2618
  style.backgroundImage = generateGradient(gradients.bg_rgb, 'mediaBlockBottom');
@@ -2579,31 +2629,31 @@ var ShopRelatedBlock = function ShopRelatedBlock(_ref) {
2579
2629
  },
2580
2630
  ref: ref
2581
2631
  }, layout === 'rich' && React.createElement(React.Fragment, null, React.createElement("div", {
2582
- className: styles$C.overlay,
2632
+ className: styles$D.overlay,
2583
2633
  style: style
2584
2634
  }), React.createElement("div", {
2585
- className: styles$C.overlayHeader,
2635
+ className: styles$D.overlayHeader,
2586
2636
  style: styleHeader
2587
2637
  })), React.createElement("div", {
2588
- className: styles$C.tag
2638
+ className: styles$D.tag
2589
2639
  }, React.createElement(Tag, {
2590
2640
  size: "small",
2591
2641
  theme: "inherit",
2592
2642
  styleContext: "richRelated"
2593
2643
  }, tag)), React.createElement("div", {
2594
- className: styles$C.cover
2644
+ className: styles$D.cover
2595
2645
  }, React.createElement("div", {
2596
- className: styles$C.picture
2646
+ className: styles$D.picture
2597
2647
  }, React.createElement(Image, {
2598
2648
  optimized: urls,
2599
2649
  ratio: ratio,
2600
2650
  display: "narrow"
2601
2651
  }))), React.createElement("div", {
2602
- className: styles$C.body
2652
+ className: styles$D.body
2603
2653
  }, React.createElement("h2", {
2604
- className: styles$C.title
2654
+ className: styles$D.title
2605
2655
  }, firstTitle, React.createElement("span", {
2606
- className: styles$C.price
2656
+ className: styles$D.price
2607
2657
  }, secondTitle))));
2608
2658
  };
2609
2659
 
@@ -2688,7 +2738,7 @@ var RawHtmlBlock = function RawHtmlBlock(_ref) {
2688
2738
  }
2689
2739
  };
2690
2740
 
2691
- var styles$D = {"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"};
2741
+ var styles$E = {"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"};
2692
2742
 
2693
2743
  var ToolbarButton = function ToolbarButton(_ref) {
2694
2744
  var children = _ref.children,
@@ -2696,7 +2746,7 @@ var ToolbarButton = function ToolbarButton(_ref) {
2696
2746
  theme = _ref.theme,
2697
2747
  isActive = _ref.isActive,
2698
2748
  _onClick = _ref.onClick;
2699
- var classNames = [[styles$D.root, true], [styles$D[type], !!styles$D[type]], [styles$D[theme], !!styles$D[theme] && !!theme], [styles$D.isActive, !!isActive]];
2749
+ var classNames = [[styles$E.root, true], [styles$E[type], !!styles$E[type]], [styles$E[theme], !!styles$E[theme] && !!theme], [styles$E.isActive, !!isActive]];
2700
2750
  return React.createElement("li", {
2701
2751
  className: toolbarStyles.item
2702
2752
  }, React.createElement("button", {
@@ -2711,9 +2761,9 @@ var ToolbarButton = function ToolbarButton(_ref) {
2711
2761
  icon: type,
2712
2762
  styleContext: "isInToolbar"
2713
2763
  }), children && React.createElement("span", {
2714
- className: styles$D.text
2764
+ className: styles$E.text
2715
2765
  }, children)));
2716
2766
  };
2717
2767
 
2718
- 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, ShopRelatedBlock, SimpleBlock, SimpleTitle, SourceBlock, Spoiler, SvgSymbol, Switcher, Table, Tag, Timestamp, Toolbar, ToolbarButton };
2768
+ export { AnnouncementInText, BookmarkButton, Button, CardTitle, ChapterBlock, Cover, DocumentItemsCount, DonatesTeaser, DotsOnImage, Dropdown, EmbedBlockContainer, Footnote, GroupedBlock, HalfBlock, Image, ImportantLead, Lazy, ListBlock, MaterialNote, MaterialTitle, MediaCaption, Menu, Meta, MetaItem, MetaItemLive, Popover, Primary, QuoteBlock, RawHtmlBlock, RelatedBlock, RelatedRichBlock, RenderBlocks, RichTitle, Secondary, SensitiveBlock, ShopRelatedBlock, SimpleBlock, SimpleTitle, SourceBlock, Spoiler, SvgSymbol, Switcher, Table, Tag, Timestamp, Toolbar, ToolbarButton };
2719
2769
  //# sourceMappingURL=ui-kit-2.esm.js.map