@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.
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ declare const _default: {
3
+ title: string;
4
+ component: React.FC<import("./AnnouncementInText.types").AnnouncementInTextProps>;
5
+ parameters: {
6
+ themeWrapperSideBySide: boolean;
7
+ };
8
+ };
9
+ export default _default;
10
+ export declare const Default: React.FC;
@@ -0,0 +1,4 @@
1
+ export interface AnnouncementInTextProps {
2
+ styleContext: string[] | string;
3
+ lang: 'ru' | 'en';
4
+ }
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { AnnouncementInTextProps } from './AnnouncementInText.types';
3
+ export declare const AnnouncementInText: React.FC<AnnouncementInTextProps>;
package/dist/index.d.ts CHANGED
@@ -41,3 +41,4 @@ export * from './RelatedRichBlock';
41
41
  export * from './SensitiveBlock';
42
42
  export * from './DonatesTeaser';
43
43
  export * from './ShopRelatedBlock';
44
+ export * from './AnnouncementInText';
@@ -2011,15 +2011,15 @@ var DonatesTeaser = function DonatesTeaser(_ref) {
2011
2011
 
2012
2012
  var data = {
2013
2013
  ru: {
2014
- title: '«Медуза» работает для вас',
2015
- subtitle: 'Нам нужна ваша поддержка',
2016
- button: 'Да!',
2014
+ title: 'Успеть сделать важное дело:<br/>Поддержать «Медузу» — ',
2015
+ // subtitle: 'Нам нужна ваша поддержка',
2016
+ button: 'Бегу!',
2017
2017
  href: 'https://support.meduza.io'
2018
2018
  },
2019
2019
  en: {
2020
- title: 'Meduza is working for you',
2021
- subtitle: 'And we need your support',
2022
- button: 'Okay!',
2020
+ title: 'There’s still time for a good deed&nbsp;in&nbsp;2021!<br/>Support Meduza — ',
2021
+ // subtitle: 'And we need your support',
2022
+ button: 'Donate',
2023
2023
  href: 'https://support.meduza.io/en'
2024
2024
  }
2025
2025
  };
@@ -2034,11 +2034,6 @@ var DonatesTeaser = function DonatesTeaser(_ref) {
2034
2034
  dangerouslySetInnerHTML: {
2035
2035
  __html: data[lang].title
2036
2036
  }
2037
- }), " ", React__default.createElement("span", {
2038
- className: styles$w.text,
2039
- dangerouslySetInnerHTML: {
2040
- __html: data[lang].subtitle
2041
- }
2042
2037
  }))), React__default.createElement("div", {
2043
2038
  className: styles$w.cta
2044
2039
  }, React__default.createElement("a", {
@@ -2050,6 +2045,55 @@ var DonatesTeaser = function DonatesTeaser(_ref) {
2050
2045
  }, data[lang].button))));
2051
2046
  };
2052
2047
 
2048
+ 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"};
2049
+
2050
+ var AnnouncementInText = function AnnouncementInText(_ref) {
2051
+ var styleContext = _ref.styleContext,
2052
+ _ref$lang = _ref.lang,
2053
+ lang = _ref$lang === void 0 ? 'ru' : _ref$lang;
2054
+ var classNames = [[styles$x.root, true], [styles$x[lang], styles$x[lang]]];
2055
+
2056
+ if (styleContext) {
2057
+ classNames = makeStyleContext(classNames, styleContext, styles$x);
2058
+ }
2059
+
2060
+ var data = {
2061
+ ru: {
2062
+ title: 'Подарите себе «Медузу»',
2063
+ text: 'В&nbsp;2021 году &laquo;Медуза&raquo; смогла выжить&nbsp;&mdash; благодаря читателям. Но&nbsp;нам по-прежнему нужна поддержка. Один раз или регулярно, маленькая сумма или большая&nbsp;&mdash; любая помощь критически важна. В&nbsp;2022-м наша редакция может рассчитывать только на&nbsp;вас. А&nbsp;вы&nbsp;знаете, что делать.',
2064
+ button: 'О да, я знаю!',
2065
+ href: 'https://support.meduza.io'
2066
+ },
2067
+ en: {
2068
+ title: 'This holiday season, make Meduza your gift to&nbsp;yourself',
2069
+ 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.',
2070
+ button: 'Let’s do this!',
2071
+ href: 'https://support.meduza.io/en'
2072
+ }
2073
+ };
2074
+ var localeData = data[lang];
2075
+ return React__default.createElement("div", {
2076
+ "data-testid": "announcement-in-text",
2077
+ className: makeClassName(classNames)
2078
+ }, React__default.createElement("div", {
2079
+ className: styles$x.body
2080
+ }, React__default.createElement("h3", {
2081
+ className: styles$x.title,
2082
+ dangerouslySetInnerHTML: {
2083
+ __html: localeData.title
2084
+ }
2085
+ }), React__default.createElement("p", {
2086
+ dangerouslySetInnerHTML: {
2087
+ __html: localeData.text
2088
+ }
2089
+ })), React__default.createElement("div", {
2090
+ className: styles$x.footer
2091
+ }, React__default.createElement("a", {
2092
+ className: styles$x.button,
2093
+ href: localeData.href
2094
+ }, localeData.button)));
2095
+ };
2096
+
2053
2097
  var RenderBlocks = function RenderBlocks(_ref) {
2054
2098
  var block = _ref.block,
2055
2099
  styleContext = _ref.styleContext,
@@ -2202,6 +2246,12 @@ var RenderBlocks = function RenderBlocks(_ref) {
2202
2246
  styleContext: styleContext
2203
2247
  });
2204
2248
 
2249
+ case 'announcement_in_text':
2250
+ return React__default.createElement(AnnouncementInText, {
2251
+ styleContext: styleContext,
2252
+ lang: lang
2253
+ });
2254
+
2205
2255
  default:
2206
2256
  {
2207
2257
  return null;
@@ -2209,7 +2259,7 @@ var RenderBlocks = function RenderBlocks(_ref) {
2209
2259
  }
2210
2260
  };
2211
2261
 
2212
- 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"};
2262
+ 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"};
2213
2263
 
2214
2264
  var Cover = function Cover(_ref) {
2215
2265
  var _ref$block = _ref.block,
@@ -2230,15 +2280,15 @@ var Cover = function Cover(_ref) {
2230
2280
  setIsPopoverShown = _useState[1];
2231
2281
 
2232
2282
  var style = {};
2233
- var classNames = [[styles$x.root, true], [styles$x[onlyOn], !!onlyOn && !!styles$x[onlyOn]]];
2283
+ var classNames = [[styles$y.root, true], [styles$y[onlyOn], !!onlyOn && !!styles$y[onlyOn]]];
2234
2284
 
2235
2285
  if (styleContext) {
2236
- classNames = makeStyleContext(classNames, styleContext, styles$x);
2286
+ classNames = makeStyleContext(classNames, styleContext, styles$y);
2237
2287
  }
2238
2288
 
2239
2289
  if (gradients) {
2240
2290
  var theme = [gradients.text_rgb === '0,0,0' ? 'dark' : 'light'];
2241
- classNames = makeStyleContext(classNames, theme, styles$x);
2291
+ classNames = makeStyleContext(classNames, theme, styles$y);
2242
2292
  style.backgroundImage = generateGradient(gradients.bg_rgb, 'mediaBlockBottom');
2243
2293
  }
2244
2294
 
@@ -2254,13 +2304,13 @@ var Cover = function Cover(_ref) {
2254
2304
  "data-testid": "cover",
2255
2305
  className: makeClassName(classNames)
2256
2306
  }, React__default.createElement("div", {
2257
- className: styles$x.image
2307
+ className: styles$y.image
2258
2308
  }, React__default.createElement(Image, {
2259
2309
  optimized: urls,
2260
2310
  ratio: mobileRatio,
2261
2311
  display: "narrow"
2262
2312
  })), React__default.createElement("div", {
2263
- className: styles$x.body,
2313
+ className: styles$y.body,
2264
2314
  style: style
2265
2315
  }, blocks.map(function (item) {
2266
2316
  return React__default.createElement(RenderBlocks, {
@@ -2269,7 +2319,7 @@ var Cover = function Cover(_ref) {
2269
2319
  styleContext: styleContext
2270
2320
  });
2271
2321
  })), cc === 'button' && React__default.createElement("button", {
2272
- className: styles$x.control,
2322
+ className: styles$y.control,
2273
2323
  type: "button",
2274
2324
  "aria-label": "Open",
2275
2325
  onClick: function onClick() {
@@ -2282,7 +2332,7 @@ var Cover = function Cover(_ref) {
2282
2332
  }, renderCC('isInPopover')));
2283
2333
  };
2284
2334
 
2285
- 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"};
2335
+ 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"};
2286
2336
 
2287
2337
  var HalfBlock = function HalfBlock(_ref) {
2288
2338
  var _ref$block = _ref.block,
@@ -2294,25 +2344,25 @@ var HalfBlock = function HalfBlock(_ref) {
2294
2344
  credit = _ref$block$data$cover.credit,
2295
2345
  caption = _ref$block$data$cover.caption,
2296
2346
  styleContext = _ref.styleContext;
2297
- var classNames = [[styles$y.root, true], [styles$y[onlyOn], true]];
2347
+ var classNames = [[styles$z.root, true], [styles$z[onlyOn], true]];
2298
2348
 
2299
2349
  if (styleContext) {
2300
- classNames = makeStyleContext(classNames, styleContext, styles$y);
2350
+ classNames = makeStyleContext(classNames, styleContext, styles$z);
2301
2351
  }
2302
2352
 
2303
2353
  return React__default.createElement("div", {
2304
2354
  "data-testid": "half-block",
2305
2355
  className: makeClassName(classNames)
2306
2356
  }, React__default.createElement("div", {
2307
- className: styles$y.main
2357
+ className: styles$z.main
2308
2358
  }, React__default.createElement("div", {
2309
- className: styles$y.image
2359
+ className: styles$z.image
2310
2360
  }, React__default.createElement(Image, {
2311
2361
  optimized: optimized,
2312
2362
  ratio: ratio,
2313
2363
  display: "super_full"
2314
2364
  })), React__default.createElement("div", {
2315
- className: styles$y.body
2365
+ className: styles$z.body
2316
2366
  }, data.blocks.map(function (item) {
2317
2367
  return React__default.createElement(RenderBlocks, {
2318
2368
  key: item.id,
@@ -2320,7 +2370,7 @@ var HalfBlock = function HalfBlock(_ref) {
2320
2370
  styleContext: ['rich']
2321
2371
  });
2322
2372
  }))), React__default.createElement("div", {
2323
- className: styles$y.footer
2373
+ className: styles$z.footer
2324
2374
  }, React__default.createElement(MediaCaption, {
2325
2375
  credit: credit,
2326
2376
  caption: caption,
@@ -2328,17 +2378,17 @@ var HalfBlock = function HalfBlock(_ref) {
2328
2378
  })));
2329
2379
  };
2330
2380
 
2331
- var styles$z = {"root":"ImportantLead-module_root__2BdT3","slide":"ImportantLead-module_slide__3kQ9x","mobile":"ImportantLead-module_mobile__3BXbm","desktop":"ImportantLead-module_desktop__3Zljc"};
2381
+ var styles$A = {"root":"ImportantLead-module_root__2BdT3","slide":"ImportantLead-module_slide__3kQ9x","mobile":"ImportantLead-module_mobile__3BXbm","desktop":"ImportantLead-module_desktop__3Zljc"};
2332
2382
 
2333
2383
  var ImportantLead = function ImportantLead(_ref) {
2334
2384
  var _ref$block = _ref.block,
2335
2385
  onlyOn = _ref$block.only_on,
2336
2386
  data = _ref$block.data,
2337
2387
  styleContext = _ref.styleContext;
2338
- var classNames = [[styles$z.root, true], [styles$z[onlyOn], !!onlyOn]];
2388
+ var classNames = [[styles$A.root, true], [styles$A[onlyOn], !!onlyOn]];
2339
2389
 
2340
2390
  if (styleContext) {
2341
- classNames = makeStyleContext(classNames, styleContext, styles$z);
2391
+ classNames = makeStyleContext(classNames, styleContext, styles$A);
2342
2392
  }
2343
2393
 
2344
2394
  return React__default.createElement("div", {
@@ -2353,7 +2403,7 @@ var ImportantLead = function ImportantLead(_ref) {
2353
2403
  }));
2354
2404
  };
2355
2405
 
2356
- 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"};
2406
+ 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"};
2357
2407
 
2358
2408
  var Spoiler = function Spoiler(_ref) {
2359
2409
  var _ref$block = _ref.block,
@@ -2388,11 +2438,11 @@ var Spoiler = function Spoiler(_ref) {
2388
2438
  }
2389
2439
  };
2390
2440
 
2391
- var classNames = [[styles$A.root, true], [styles$A[onlyOn], !!onlyOn], [styles$A[display], !!display && styles$A[display]], [[styles$A.spoiled], !!spoiled]];
2441
+ var classNames = [[styles$B.root, true], [styles$B[onlyOn], !!onlyOn], [styles$B[display], !!display && styles$B[display]], [[styles$B.spoiled], !!spoiled]];
2392
2442
  var context = ['center'];
2393
2443
 
2394
2444
  if (styleContext) {
2395
- classNames = makeStyleContext(classNames, styleContext, styles$A);
2445
+ classNames = makeStyleContext(classNames, styleContext, styles$B);
2396
2446
  }
2397
2447
 
2398
2448
  var buttonCollapse = button ? button.collapse : 'Свернуть';
@@ -2402,9 +2452,9 @@ var Spoiler = function Spoiler(_ref) {
2402
2452
  className: makeClassName(classNames),
2403
2453
  "data-testid": "spoiler"
2404
2454
  }, React__default.createElement("div", {
2405
- className: styles$A.header
2455
+ className: styles$B.header
2406
2456
  }, title && React__default.createElement("h3", null, title)), React__default.createElement("div", {
2407
- className: styles$A.body
2457
+ className: styles$B.body
2408
2458
  }, blocks.map(function (item) {
2409
2459
  return React__default.createElement(RenderBlocks, {
2410
2460
  key: item.id,
@@ -2412,7 +2462,7 @@ var Spoiler = function Spoiler(_ref) {
2412
2462
  styleContext: context
2413
2463
  });
2414
2464
  })), React__default.createElement("div", {
2415
- className: styles$A.footer
2465
+ className: styles$B.footer
2416
2466
  }, React__default.createElement(Button, {
2417
2467
  size: "default",
2418
2468
  theme: "gray",
@@ -2425,7 +2475,7 @@ var Spoiler = function Spoiler(_ref) {
2425
2475
  }))));
2426
2476
  };
2427
2477
 
2428
- 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"};
2478
+ 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"};
2429
2479
 
2430
2480
  /* eslint-disable react/jsx-no-target-blank */
2431
2481
  var RelatedRichBlock = function RelatedRichBlock(_ref) {
@@ -2464,18 +2514,18 @@ var RelatedRichBlock = function RelatedRichBlock(_ref) {
2464
2514
  postMessage('richRelated', url, 'click');
2465
2515
  };
2466
2516
 
2467
- var classNames = [[styles$B.root, true], [styles$B[cardType], !!layout && !!styles$B[cardType]], [styles$B.hasGradient, !!gradients], [styles$B[onlyOn], !!onlyOn && !!styles$B[onlyOn]]];
2517
+ var classNames = [[styles$C.root, true], [styles$C[cardType], !!layout && !!styles$C[cardType]], [styles$C.hasGradient, !!gradients], [styles$C[onlyOn], !!onlyOn && !!styles$C[onlyOn]]];
2468
2518
  var context = ['isInMediaBlock'];
2469
2519
 
2470
2520
  if (styleContext) {
2471
- classNames = makeStyleContext(classNames, styleContext, styles$B);
2521
+ classNames = makeStyleContext(classNames, styleContext, styles$C);
2472
2522
  context = [].concat(styleContext, ['isInMediaBlock']);
2473
2523
  }
2474
2524
 
2475
2525
  if (gradients) {
2476
2526
  styleHeader.backgroundImage = generateGradient(gradients.bg_rgb, 'mediaBlockTop');
2477
2527
  var theme = [gradients.text_rgb === '0,0,0' ? 'dark' : 'light'];
2478
- classNames = makeStyleContext(classNames, theme, styles$B);
2528
+ classNames = makeStyleContext(classNames, theme, styles$C);
2479
2529
 
2480
2530
  if (onlyOn === 'desktop') {
2481
2531
  style.backgroundImage = generateGradient(gradients.bg_rgb, 'mediaBlockBottom');
@@ -2491,27 +2541,27 @@ var RelatedRichBlock = function RelatedRichBlock(_ref) {
2491
2541
  },
2492
2542
  ref: ref
2493
2543
  }, layout === 'rich' && React__default.createElement(React__default.Fragment, null, React__default.createElement("div", {
2494
- className: styles$B.overlay,
2544
+ className: styles$C.overlay,
2495
2545
  style: style
2496
2546
  }), React__default.createElement("div", {
2497
- className: styles$B.overlayHeader,
2547
+ className: styles$C.overlayHeader,
2498
2548
  style: styleHeader
2499
2549
  })), React__default.createElement("div", {
2500
- className: styles$B.tag
2550
+ className: styles$C.tag
2501
2551
  }, React__default.createElement(Tag, {
2502
2552
  size: "small",
2503
2553
  theme: "inherit",
2504
2554
  styleContext: "richRelated"
2505
2555
  }, tag)), React__default.createElement("div", {
2506
- className: styles$B.cover
2556
+ className: styles$C.cover
2507
2557
  }, React__default.createElement("div", {
2508
- className: styles$B.picture
2558
+ className: styles$C.picture
2509
2559
  }, React__default.createElement(Image, {
2510
2560
  optimized: urls,
2511
2561
  ratio: ratio,
2512
2562
  display: "narrow"
2513
2563
  }))), React__default.createElement("div", {
2514
- className: styles$B.body
2564
+ className: styles$C.body
2515
2565
  }, blocks.map(function (item) {
2516
2566
  return React__default.createElement(RenderBlocks, {
2517
2567
  key: item.id,
@@ -2521,7 +2571,7 @@ var RelatedRichBlock = function RelatedRichBlock(_ref) {
2521
2571
  })));
2522
2572
  };
2523
2573
 
2524
- 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"};
2574
+ 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"};
2525
2575
 
2526
2576
  /* eslint-disable react/jsx-no-target-blank */
2527
2577
  var ShopRelatedBlock = function ShopRelatedBlock(_ref) {
@@ -2560,16 +2610,16 @@ var ShopRelatedBlock = function ShopRelatedBlock(_ref) {
2560
2610
  postMessage('productRelated', url, 'click');
2561
2611
  };
2562
2612
 
2563
- var classNames = [[styles$C.root, true], [styles$C.hasGradient, !!gradients], [styles$C[onlyOn], !!onlyOn && !!styles$C[onlyOn]]];
2613
+ var classNames = [[styles$D.root, true], [styles$D.hasGradient, !!gradients], [styles$D[onlyOn], !!onlyOn && !!styles$D[onlyOn]]];
2564
2614
 
2565
2615
  if (styleContext) {
2566
- classNames = makeStyleContext(classNames, styleContext, styles$C);
2616
+ classNames = makeStyleContext(classNames, styleContext, styles$D);
2567
2617
  }
2568
2618
 
2569
2619
  if (gradients) {
2570
2620
  styleHeader.backgroundImage = generateGradient(gradients.bg_rgb, 'mediaBlockTop');
2571
2621
  var theme = [gradients.text_rgb === '0,0,0' ? 'dark' : 'light'];
2572
- classNames = makeStyleContext(classNames, theme, styles$C);
2622
+ classNames = makeStyleContext(classNames, theme, styles$D);
2573
2623
 
2574
2624
  if (onlyOn === 'desktop') {
2575
2625
  style.backgroundImage = generateGradient(gradients.bg_rgb, 'mediaBlockBottom');
@@ -2586,31 +2636,31 @@ var ShopRelatedBlock = function ShopRelatedBlock(_ref) {
2586
2636
  },
2587
2637
  ref: ref
2588
2638
  }, layout === 'rich' && React__default.createElement(React__default.Fragment, null, React__default.createElement("div", {
2589
- className: styles$C.overlay,
2639
+ className: styles$D.overlay,
2590
2640
  style: style
2591
2641
  }), React__default.createElement("div", {
2592
- className: styles$C.overlayHeader,
2642
+ className: styles$D.overlayHeader,
2593
2643
  style: styleHeader
2594
2644
  })), React__default.createElement("div", {
2595
- className: styles$C.tag
2645
+ className: styles$D.tag
2596
2646
  }, React__default.createElement(Tag, {
2597
2647
  size: "small",
2598
2648
  theme: "inherit",
2599
2649
  styleContext: "richRelated"
2600
2650
  }, tag)), React__default.createElement("div", {
2601
- className: styles$C.cover
2651
+ className: styles$D.cover
2602
2652
  }, React__default.createElement("div", {
2603
- className: styles$C.picture
2653
+ className: styles$D.picture
2604
2654
  }, React__default.createElement(Image, {
2605
2655
  optimized: urls,
2606
2656
  ratio: ratio,
2607
2657
  display: "narrow"
2608
2658
  }))), React__default.createElement("div", {
2609
- className: styles$C.body
2659
+ className: styles$D.body
2610
2660
  }, React__default.createElement("h2", {
2611
- className: styles$C.title
2661
+ className: styles$D.title
2612
2662
  }, firstTitle, React__default.createElement("span", {
2613
- className: styles$C.price
2663
+ className: styles$D.price
2614
2664
  }, secondTitle))));
2615
2665
  };
2616
2666
 
@@ -2695,7 +2745,7 @@ var RawHtmlBlock = function RawHtmlBlock(_ref) {
2695
2745
  }
2696
2746
  };
2697
2747
 
2698
- 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"};
2748
+ 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"};
2699
2749
 
2700
2750
  var ToolbarButton = function ToolbarButton(_ref) {
2701
2751
  var children = _ref.children,
@@ -2703,7 +2753,7 @@ var ToolbarButton = function ToolbarButton(_ref) {
2703
2753
  theme = _ref.theme,
2704
2754
  isActive = _ref.isActive,
2705
2755
  _onClick = _ref.onClick;
2706
- var classNames = [[styles$D.root, true], [styles$D[type], !!styles$D[type]], [styles$D[theme], !!styles$D[theme] && !!theme], [styles$D.isActive, !!isActive]];
2756
+ var classNames = [[styles$E.root, true], [styles$E[type], !!styles$E[type]], [styles$E[theme], !!styles$E[theme] && !!theme], [styles$E.isActive, !!isActive]];
2707
2757
  return React__default.createElement("li", {
2708
2758
  className: toolbarStyles.item
2709
2759
  }, React__default.createElement("button", {
@@ -2718,10 +2768,11 @@ var ToolbarButton = function ToolbarButton(_ref) {
2718
2768
  icon: type,
2719
2769
  styleContext: "isInToolbar"
2720
2770
  }), children && React__default.createElement("span", {
2721
- className: styles$D.text
2771
+ className: styles$E.text
2722
2772
  }, children)));
2723
2773
  };
2724
2774
 
2775
+ exports.AnnouncementInText = AnnouncementInText;
2725
2776
  exports.BookmarkButton = BookmarkButton;
2726
2777
  exports.Button = Button;
2727
2778
  exports.CardTitle = CardTitle;