@meduza/ui-kit-2 0.2.4 → 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';
@@ -2045,6 +2045,55 @@ var DonatesTeaser = function DonatesTeaser(_ref) {
2045
2045
  }, data[lang].button))));
2046
2046
  };
2047
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
+
2048
2097
  var RenderBlocks = function RenderBlocks(_ref) {
2049
2098
  var block = _ref.block,
2050
2099
  styleContext = _ref.styleContext,
@@ -2197,6 +2246,12 @@ var RenderBlocks = function RenderBlocks(_ref) {
2197
2246
  styleContext: styleContext
2198
2247
  });
2199
2248
 
2249
+ case 'announcement_in_text':
2250
+ return React__default.createElement(AnnouncementInText, {
2251
+ styleContext: styleContext,
2252
+ lang: lang
2253
+ });
2254
+
2200
2255
  default:
2201
2256
  {
2202
2257
  return null;
@@ -2204,7 +2259,7 @@ var RenderBlocks = function RenderBlocks(_ref) {
2204
2259
  }
2205
2260
  };
2206
2261
 
2207
- 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"};
2208
2263
 
2209
2264
  var Cover = function Cover(_ref) {
2210
2265
  var _ref$block = _ref.block,
@@ -2225,15 +2280,15 @@ var Cover = function Cover(_ref) {
2225
2280
  setIsPopoverShown = _useState[1];
2226
2281
 
2227
2282
  var style = {};
2228
- 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]]];
2229
2284
 
2230
2285
  if (styleContext) {
2231
- classNames = makeStyleContext(classNames, styleContext, styles$x);
2286
+ classNames = makeStyleContext(classNames, styleContext, styles$y);
2232
2287
  }
2233
2288
 
2234
2289
  if (gradients) {
2235
2290
  var theme = [gradients.text_rgb === '0,0,0' ? 'dark' : 'light'];
2236
- classNames = makeStyleContext(classNames, theme, styles$x);
2291
+ classNames = makeStyleContext(classNames, theme, styles$y);
2237
2292
  style.backgroundImage = generateGradient(gradients.bg_rgb, 'mediaBlockBottom');
2238
2293
  }
2239
2294
 
@@ -2249,13 +2304,13 @@ var Cover = function Cover(_ref) {
2249
2304
  "data-testid": "cover",
2250
2305
  className: makeClassName(classNames)
2251
2306
  }, React__default.createElement("div", {
2252
- className: styles$x.image
2307
+ className: styles$y.image
2253
2308
  }, React__default.createElement(Image, {
2254
2309
  optimized: urls,
2255
2310
  ratio: mobileRatio,
2256
2311
  display: "narrow"
2257
2312
  })), React__default.createElement("div", {
2258
- className: styles$x.body,
2313
+ className: styles$y.body,
2259
2314
  style: style
2260
2315
  }, blocks.map(function (item) {
2261
2316
  return React__default.createElement(RenderBlocks, {
@@ -2264,7 +2319,7 @@ var Cover = function Cover(_ref) {
2264
2319
  styleContext: styleContext
2265
2320
  });
2266
2321
  })), cc === 'button' && React__default.createElement("button", {
2267
- className: styles$x.control,
2322
+ className: styles$y.control,
2268
2323
  type: "button",
2269
2324
  "aria-label": "Open",
2270
2325
  onClick: function onClick() {
@@ -2277,7 +2332,7 @@ var Cover = function Cover(_ref) {
2277
2332
  }, renderCC('isInPopover')));
2278
2333
  };
2279
2334
 
2280
- 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"};
2281
2336
 
2282
2337
  var HalfBlock = function HalfBlock(_ref) {
2283
2338
  var _ref$block = _ref.block,
@@ -2289,25 +2344,25 @@ var HalfBlock = function HalfBlock(_ref) {
2289
2344
  credit = _ref$block$data$cover.credit,
2290
2345
  caption = _ref$block$data$cover.caption,
2291
2346
  styleContext = _ref.styleContext;
2292
- var classNames = [[styles$y.root, true], [styles$y[onlyOn], true]];
2347
+ var classNames = [[styles$z.root, true], [styles$z[onlyOn], true]];
2293
2348
 
2294
2349
  if (styleContext) {
2295
- classNames = makeStyleContext(classNames, styleContext, styles$y);
2350
+ classNames = makeStyleContext(classNames, styleContext, styles$z);
2296
2351
  }
2297
2352
 
2298
2353
  return React__default.createElement("div", {
2299
2354
  "data-testid": "half-block",
2300
2355
  className: makeClassName(classNames)
2301
2356
  }, React__default.createElement("div", {
2302
- className: styles$y.main
2357
+ className: styles$z.main
2303
2358
  }, React__default.createElement("div", {
2304
- className: styles$y.image
2359
+ className: styles$z.image
2305
2360
  }, React__default.createElement(Image, {
2306
2361
  optimized: optimized,
2307
2362
  ratio: ratio,
2308
2363
  display: "super_full"
2309
2364
  })), React__default.createElement("div", {
2310
- className: styles$y.body
2365
+ className: styles$z.body
2311
2366
  }, data.blocks.map(function (item) {
2312
2367
  return React__default.createElement(RenderBlocks, {
2313
2368
  key: item.id,
@@ -2315,7 +2370,7 @@ var HalfBlock = function HalfBlock(_ref) {
2315
2370
  styleContext: ['rich']
2316
2371
  });
2317
2372
  }))), React__default.createElement("div", {
2318
- className: styles$y.footer
2373
+ className: styles$z.footer
2319
2374
  }, React__default.createElement(MediaCaption, {
2320
2375
  credit: credit,
2321
2376
  caption: caption,
@@ -2323,17 +2378,17 @@ var HalfBlock = function HalfBlock(_ref) {
2323
2378
  })));
2324
2379
  };
2325
2380
 
2326
- 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"};
2327
2382
 
2328
2383
  var ImportantLead = function ImportantLead(_ref) {
2329
2384
  var _ref$block = _ref.block,
2330
2385
  onlyOn = _ref$block.only_on,
2331
2386
  data = _ref$block.data,
2332
2387
  styleContext = _ref.styleContext;
2333
- var classNames = [[styles$z.root, true], [styles$z[onlyOn], !!onlyOn]];
2388
+ var classNames = [[styles$A.root, true], [styles$A[onlyOn], !!onlyOn]];
2334
2389
 
2335
2390
  if (styleContext) {
2336
- classNames = makeStyleContext(classNames, styleContext, styles$z);
2391
+ classNames = makeStyleContext(classNames, styleContext, styles$A);
2337
2392
  }
2338
2393
 
2339
2394
  return React__default.createElement("div", {
@@ -2348,7 +2403,7 @@ var ImportantLead = function ImportantLead(_ref) {
2348
2403
  }));
2349
2404
  };
2350
2405
 
2351
- 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"};
2352
2407
 
2353
2408
  var Spoiler = function Spoiler(_ref) {
2354
2409
  var _ref$block = _ref.block,
@@ -2383,11 +2438,11 @@ var Spoiler = function Spoiler(_ref) {
2383
2438
  }
2384
2439
  };
2385
2440
 
2386
- 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]];
2387
2442
  var context = ['center'];
2388
2443
 
2389
2444
  if (styleContext) {
2390
- classNames = makeStyleContext(classNames, styleContext, styles$A);
2445
+ classNames = makeStyleContext(classNames, styleContext, styles$B);
2391
2446
  }
2392
2447
 
2393
2448
  var buttonCollapse = button ? button.collapse : 'Свернуть';
@@ -2397,9 +2452,9 @@ var Spoiler = function Spoiler(_ref) {
2397
2452
  className: makeClassName(classNames),
2398
2453
  "data-testid": "spoiler"
2399
2454
  }, React__default.createElement("div", {
2400
- className: styles$A.header
2455
+ className: styles$B.header
2401
2456
  }, title && React__default.createElement("h3", null, title)), React__default.createElement("div", {
2402
- className: styles$A.body
2457
+ className: styles$B.body
2403
2458
  }, blocks.map(function (item) {
2404
2459
  return React__default.createElement(RenderBlocks, {
2405
2460
  key: item.id,
@@ -2407,7 +2462,7 @@ var Spoiler = function Spoiler(_ref) {
2407
2462
  styleContext: context
2408
2463
  });
2409
2464
  })), React__default.createElement("div", {
2410
- className: styles$A.footer
2465
+ className: styles$B.footer
2411
2466
  }, React__default.createElement(Button, {
2412
2467
  size: "default",
2413
2468
  theme: "gray",
@@ -2420,7 +2475,7 @@ var Spoiler = function Spoiler(_ref) {
2420
2475
  }))));
2421
2476
  };
2422
2477
 
2423
- 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"};
2424
2479
 
2425
2480
  /* eslint-disable react/jsx-no-target-blank */
2426
2481
  var RelatedRichBlock = function RelatedRichBlock(_ref) {
@@ -2459,18 +2514,18 @@ var RelatedRichBlock = function RelatedRichBlock(_ref) {
2459
2514
  postMessage('richRelated', url, 'click');
2460
2515
  };
2461
2516
 
2462
- 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]]];
2463
2518
  var context = ['isInMediaBlock'];
2464
2519
 
2465
2520
  if (styleContext) {
2466
- classNames = makeStyleContext(classNames, styleContext, styles$B);
2521
+ classNames = makeStyleContext(classNames, styleContext, styles$C);
2467
2522
  context = [].concat(styleContext, ['isInMediaBlock']);
2468
2523
  }
2469
2524
 
2470
2525
  if (gradients) {
2471
2526
  styleHeader.backgroundImage = generateGradient(gradients.bg_rgb, 'mediaBlockTop');
2472
2527
  var theme = [gradients.text_rgb === '0,0,0' ? 'dark' : 'light'];
2473
- classNames = makeStyleContext(classNames, theme, styles$B);
2528
+ classNames = makeStyleContext(classNames, theme, styles$C);
2474
2529
 
2475
2530
  if (onlyOn === 'desktop') {
2476
2531
  style.backgroundImage = generateGradient(gradients.bg_rgb, 'mediaBlockBottom');
@@ -2486,27 +2541,27 @@ var RelatedRichBlock = function RelatedRichBlock(_ref) {
2486
2541
  },
2487
2542
  ref: ref
2488
2543
  }, layout === 'rich' && React__default.createElement(React__default.Fragment, null, React__default.createElement("div", {
2489
- className: styles$B.overlay,
2544
+ className: styles$C.overlay,
2490
2545
  style: style
2491
2546
  }), React__default.createElement("div", {
2492
- className: styles$B.overlayHeader,
2547
+ className: styles$C.overlayHeader,
2493
2548
  style: styleHeader
2494
2549
  })), React__default.createElement("div", {
2495
- className: styles$B.tag
2550
+ className: styles$C.tag
2496
2551
  }, React__default.createElement(Tag, {
2497
2552
  size: "small",
2498
2553
  theme: "inherit",
2499
2554
  styleContext: "richRelated"
2500
2555
  }, tag)), React__default.createElement("div", {
2501
- className: styles$B.cover
2556
+ className: styles$C.cover
2502
2557
  }, React__default.createElement("div", {
2503
- className: styles$B.picture
2558
+ className: styles$C.picture
2504
2559
  }, React__default.createElement(Image, {
2505
2560
  optimized: urls,
2506
2561
  ratio: ratio,
2507
2562
  display: "narrow"
2508
2563
  }))), React__default.createElement("div", {
2509
- className: styles$B.body
2564
+ className: styles$C.body
2510
2565
  }, blocks.map(function (item) {
2511
2566
  return React__default.createElement(RenderBlocks, {
2512
2567
  key: item.id,
@@ -2516,7 +2571,7 @@ var RelatedRichBlock = function RelatedRichBlock(_ref) {
2516
2571
  })));
2517
2572
  };
2518
2573
 
2519
- 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"};
2520
2575
 
2521
2576
  /* eslint-disable react/jsx-no-target-blank */
2522
2577
  var ShopRelatedBlock = function ShopRelatedBlock(_ref) {
@@ -2555,16 +2610,16 @@ var ShopRelatedBlock = function ShopRelatedBlock(_ref) {
2555
2610
  postMessage('productRelated', url, 'click');
2556
2611
  };
2557
2612
 
2558
- 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]]];
2559
2614
 
2560
2615
  if (styleContext) {
2561
- classNames = makeStyleContext(classNames, styleContext, styles$C);
2616
+ classNames = makeStyleContext(classNames, styleContext, styles$D);
2562
2617
  }
2563
2618
 
2564
2619
  if (gradients) {
2565
2620
  styleHeader.backgroundImage = generateGradient(gradients.bg_rgb, 'mediaBlockTop');
2566
2621
  var theme = [gradients.text_rgb === '0,0,0' ? 'dark' : 'light'];
2567
- classNames = makeStyleContext(classNames, theme, styles$C);
2622
+ classNames = makeStyleContext(classNames, theme, styles$D);
2568
2623
 
2569
2624
  if (onlyOn === 'desktop') {
2570
2625
  style.backgroundImage = generateGradient(gradients.bg_rgb, 'mediaBlockBottom');
@@ -2581,31 +2636,31 @@ var ShopRelatedBlock = function ShopRelatedBlock(_ref) {
2581
2636
  },
2582
2637
  ref: ref
2583
2638
  }, layout === 'rich' && React__default.createElement(React__default.Fragment, null, React__default.createElement("div", {
2584
- className: styles$C.overlay,
2639
+ className: styles$D.overlay,
2585
2640
  style: style
2586
2641
  }), React__default.createElement("div", {
2587
- className: styles$C.overlayHeader,
2642
+ className: styles$D.overlayHeader,
2588
2643
  style: styleHeader
2589
2644
  })), React__default.createElement("div", {
2590
- className: styles$C.tag
2645
+ className: styles$D.tag
2591
2646
  }, React__default.createElement(Tag, {
2592
2647
  size: "small",
2593
2648
  theme: "inherit",
2594
2649
  styleContext: "richRelated"
2595
2650
  }, tag)), React__default.createElement("div", {
2596
- className: styles$C.cover
2651
+ className: styles$D.cover
2597
2652
  }, React__default.createElement("div", {
2598
- className: styles$C.picture
2653
+ className: styles$D.picture
2599
2654
  }, React__default.createElement(Image, {
2600
2655
  optimized: urls,
2601
2656
  ratio: ratio,
2602
2657
  display: "narrow"
2603
2658
  }))), React__default.createElement("div", {
2604
- className: styles$C.body
2659
+ className: styles$D.body
2605
2660
  }, React__default.createElement("h2", {
2606
- className: styles$C.title
2661
+ className: styles$D.title
2607
2662
  }, firstTitle, React__default.createElement("span", {
2608
- className: styles$C.price
2663
+ className: styles$D.price
2609
2664
  }, secondTitle))));
2610
2665
  };
2611
2666
 
@@ -2690,7 +2745,7 @@ var RawHtmlBlock = function RawHtmlBlock(_ref) {
2690
2745
  }
2691
2746
  };
2692
2747
 
2693
- 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"};
2694
2749
 
2695
2750
  var ToolbarButton = function ToolbarButton(_ref) {
2696
2751
  var children = _ref.children,
@@ -2698,7 +2753,7 @@ var ToolbarButton = function ToolbarButton(_ref) {
2698
2753
  theme = _ref.theme,
2699
2754
  isActive = _ref.isActive,
2700
2755
  _onClick = _ref.onClick;
2701
- 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]];
2702
2757
  return React__default.createElement("li", {
2703
2758
  className: toolbarStyles.item
2704
2759
  }, React__default.createElement("button", {
@@ -2713,10 +2768,11 @@ var ToolbarButton = function ToolbarButton(_ref) {
2713
2768
  icon: type,
2714
2769
  styleContext: "isInToolbar"
2715
2770
  }), children && React__default.createElement("span", {
2716
- className: styles$D.text
2771
+ className: styles$E.text
2717
2772
  }, children)));
2718
2773
  };
2719
2774
 
2775
+ exports.AnnouncementInText = AnnouncementInText;
2720
2776
  exports.BookmarkButton = BookmarkButton;
2721
2777
  exports.Button = Button;
2722
2778
  exports.CardTitle = CardTitle;