@royaloperahouse/harmonic 0.2.3-j → 0.2.3-k

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.
@@ -1,4 +1,5 @@
1
1
  import { FunctionComponent } from 'react';
2
2
  import { IHighlightsCarouselProps } from '../../../../types/carousel';
3
+ export declare const TYPOGRAPHY_CLASS_NAME = "highlight-carousel-text";
3
4
  declare const HighlightsCarousel: FunctionComponent<IHighlightsCarouselProps>;
4
5
  export default HighlightsCarousel;
@@ -7936,7 +7936,7 @@ var Carousel = function Carousel(_ref) {
7936
7936
  };
7937
7937
 
7938
7938
  var _templateObject$P, _templateObject2$C, _templateObject3$p, _templateObject4$k, _templateObject5$f, _templateObject6$d, _templateObject7$9, _templateObject8$6, _templateObject9$3, _templateObject10$3, _templateObject11$1, _templateObject12$1, _templateObject13$1, _templateObject14$1, _templateObject15$1, _templateObject16, _templateObject17;
7939
- var HighlightsGrid = /*#__PURE__*/styled__default(Grid)(_templateObject$P || (_templateObject$P = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n position: relative;\n grid-template-rows: max-content minmax(0, 1fr);\n gap: 0 var(--grid-column-gap);\n background-color: var(--color-base-black);\n color: var(--color-base-white);\n user-select: none;\n\n .color-primary {\n color: var(--color-base-white);\n }\n\n @media ", " {\n & {\n grid-template-rows: min-content max-content max-content;\n }\n }\n"])), devices.mobile);
7939
+ var HighlightsGrid = /*#__PURE__*/styled__default(Grid)(_templateObject$P || (_templateObject$P = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n position: relative;\n grid-template-rows: max-content minmax(0, 1fr);\n gap: 0 var(--grid-column-gap);\n background-color: var(--color-base-black);\n user-select: none;\n\n .highlight-carousel-text {\n color: var(--color-base-white);\n }\n\n @media ", " {\n & {\n grid-template-rows: min-content max-content max-content;\n }\n }\n"])), devices.mobile);
7940
7940
  var CarouselTitleWrapper = /*#__PURE__*/styled__default.div(_templateObject2$C || (_templateObject2$C = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n grid-area: 1 / 1 / 1 / 7;\n box-sizing: border-box;\n width: calc(100% + var(--grid-column-gap));\n padding-top: 40px;\n padding-left: 50px;\n padding-right: 36px;\n user-select: text;\n\n @media ", " {\n & {\n grid-area: 1 / 1 / 2 / 12;\n padding: 12px 0 12px var(--grid-margin);\n min-height: 64px;\n box-sizing: border-box;\n width: 100%;\n }\n }\n\n @media ", " {\n & {\n grid-area: 1 / 1 / 2 / 11;\n width: 100%;\n padding: 8px 0 8px 20px;\n min-height: 28px;\n }\n }\n"])), devices.tablet, devices.mobile);
7941
7941
  var HeaderWrapper = /*#__PURE__*/styled__default.div(_templateObject3$p || (_templateObject3$p = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n margin: 0;\n padding: 0;\n"])));
7942
7942
  var InfoWrapper = /*#__PURE__*/styled__default.div(_templateObject4$k || (_templateObject4$k = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n grid-area: 2 / 1 / 2 / 7;\n box-sizing: border-box;\n width: calc(100% + var(--grid-column-gap));\n align-self: center;\n padding: 36px 36px 36px 50px;\n\n @media ", " {\n & {\n grid-area: 2 / 1 / 2 / 7;\n padding: 0 12px 12px var(--grid-margin);\n }\n }\n\n @media ", " {\n & {\n grid-area: 3 / 1 / 4 / 15;\n width: 100%;\n padding: 0 20px;\n margin: 24px 0;\n }\n }\n"])), devices.tablet, devices.mobile);
@@ -8085,6 +8085,7 @@ var InfoSection = function InfoSection(_ref) {
8085
8085
  return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, timerParams && (/*#__PURE__*/React__default.createElement(TimerWrapper$1, {
8086
8086
  "data-testid": "highlight-carousel-timer-wrapper"
8087
8087
  }, finishedTimers.includes(currentSlideIndex) ? (/*#__PURE__*/React__default.createElement(HarmonicSubtitle, {
8088
+ className: "highlight-carousel-text",
8088
8089
  size: "large"
8089
8090
  }, timerParams.endDateText)) : (/*#__PURE__*/React__default.createElement(Timer, {
8090
8091
  color: exports.Colors.White,
@@ -8092,19 +8093,24 @@ var InfoSection = function InfoSection(_ref) {
8092
8093
  endDate: timerParams.endDate,
8093
8094
  title: timerParams.title
8094
8095
  })))), logo ? /*#__PURE__*/React__default.createElement(InfoLogoWrapper, null, logo) : null, /*#__PURE__*/React__default.createElement(InfoTitleWrapper, null, /*#__PURE__*/React__default.createElement(HarmonicHeader, {
8096
+ className: TYPOGRAPHY_CLASS_NAME,
8095
8097
  size: "large",
8096
8098
  hierarchy: "h3"
8097
8099
  }, infoTitle), /*#__PURE__*/React__default.createElement(HarmonicOverline, {
8100
+ className: TYPOGRAPHY_CLASS_NAME,
8098
8101
  size: "large"
8099
8102
  }, infoTimeframe)), /*#__PURE__*/React__default.createElement(InfoTextWrapper, null, /*#__PURE__*/React__default.createElement(InfoSubtitleWrapper, null, /*#__PURE__*/React__default.createElement(HarmonicOverline, {
8103
+ className: TYPOGRAPHY_CLASS_NAME,
8100
8104
  size: "large"
8101
8105
  }, infoSubtitle)), /*#__PURE__*/React__default.createElement(BodyCopyHarmonic, {
8106
+ className: TYPOGRAPHY_CLASS_NAME,
8102
8107
  size: "large"
8103
8108
  }, /*#__PURE__*/React__default.createElement(HtmlBodyText, {
8104
8109
  dangerouslySetInnerHTML: {
8105
8110
  __html: description
8106
8111
  }
8107
8112
  })), additionalInfo && (/*#__PURE__*/React__default.createElement(AdditionalInfoWrapper, null, /*#__PURE__*/React__default.createElement(BodyCopyHarmonic, {
8113
+ className: TYPOGRAPHY_CLASS_NAME,
8108
8114
  size: "large"
8109
8115
  }, additionalInfo)))));
8110
8116
  };
@@ -12337,6 +12343,7 @@ var SwipeCarousel = function SwipeCarousel(_ref2) {
12337
12343
  }));
12338
12344
  };
12339
12345
 
12346
+ var TYPOGRAPHY_CLASS_NAME = 'highlight-carousel-text';
12340
12347
  var HighlightsCarousel = function HighlightsCarousel(_ref) {
12341
12348
  var logo = _ref.logo,
12342
12349
  carouselTitle = _ref.carouselTitle,
@@ -12383,6 +12390,7 @@ var HighlightsCarousel = function HighlightsCarousel(_ref) {
12383
12390
  }, /*#__PURE__*/React__default.createElement(HeaderWrapper, {
12384
12391
  id: carouselTitleId
12385
12392
  }, /*#__PURE__*/React__default.createElement(HarmonicHeader, {
12393
+ className: TYPOGRAPHY_CLASS_NAME,
12386
12394
  size: "medium",
12387
12395
  serif: true,
12388
12396
  hierarchy: titleSemanticLevelValue