@royaloperahouse/harmonic 0.6.1-a → 0.6.1-b

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.
@@ -8726,9 +8726,10 @@ var Editorial = function Editorial(_ref) {
8726
8726
 
8727
8727
  var _templateObject$Z, _templateObject2$K, _templateObject3$x;
8728
8728
  var HotFiltersWrapper = /*#__PURE__*/styled__default.div(_templateObject$Z || (_templateObject$Z = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n overflow-x: scroll;\n\n scrollbar-width: none;\n -ms-overflow-style: none;\n\n ::-webkit-scrollbar {\n display: none;\n }\n"])));
8729
- var HotFilterOptionsWrapper = /*#__PURE__*/styled__default.div(_templateObject2$K || (_templateObject2$K = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: row;\n width: fit-content;\n min-width: 400px;\n justify-content: space-between;\n gap: 16px;\n font-family: var(--font-family-sans);\n"])));
8730
- var StyledHotFiltersButton = /*#__PURE__*/styled__default(PrimaryButton)(_templateObject3$x || (_templateObject3$x = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n border: 1px solid var(--color-base-black);\n min-width: fit-content;\n\n :hover {\n color: var(--color-base-white);\n"])));
8729
+ var HotFilterOptionsWrapper = /*#__PURE__*/styled__default.div(_templateObject2$K || (_templateObject2$K = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: row;\n width: fit-content;\n min-width: 400px;\n justify-content: space-between;\n gap: 16px;\n font-family: var(--font-family-sans);\n\n @media ", " {\n gap: 10px;\n }\n"])), devices.mobile);
8730
+ var StyledHotFiltersButton = /*#__PURE__*/styled__default(PrimaryButton)(_templateObject3$x || (_templateObject3$x = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n border: 1px solid var(--color-base-black);\n min-width: fit-content;\n\n :hover {\n color: var(--color-base-white);\n }\n"])));
8731
8731
 
8732
+ var _excluded$k = ["text", "onClick"];
8732
8733
  var HotFilters = function HotFilters(_ref) {
8733
8734
  var items = _ref.items,
8734
8735
  className = _ref.className,
@@ -8740,23 +8741,24 @@ var HotFilters = function HotFilters(_ref) {
8740
8741
  setSelectedIndex(index);
8741
8742
  if (onClick) onClick();
8742
8743
  };
8743
- return /*#__PURE__*/React__default.createElement(HotFiltersWrapper, null, /*#__PURE__*/React__default.createElement(HotFilterOptionsWrapper, {
8744
+ return /*#__PURE__*/React__default.createElement(HotFiltersWrapper, {
8744
8745
  className: className
8745
- }, items.map(function (item, index) {
8746
+ }, /*#__PURE__*/React__default.createElement(HotFilterOptionsWrapper, null, items.map(function (item, index) {
8746
8747
  var text = item.text,
8747
- _onClick = item.onClick;
8748
+ _onClick = item.onClick,
8749
+ rest = _objectWithoutPropertiesLoose(item, _excluded$k);
8748
8750
  var isSelected = index === selectedIndex;
8749
- return /*#__PURE__*/React__default.createElement(StyledHotFiltersButton, {
8751
+ return /*#__PURE__*/React__default.createElement(StyledHotFiltersButton, Object.assign({
8750
8752
  key: index,
8751
- backgroundColor: isSelected ? 'primary-black' : 'base-white',
8752
- iconName: isSelected ? 'Confirm' : undefined,
8753
8753
  onClick: function onClick() {
8754
8754
  return handleClick(index, _onClick);
8755
8755
  },
8756
+ iconName: isSelected ? 'Confirm' : undefined,
8757
+ backgroundColor: isSelected ? 'primary-black' : 'base-white',
8756
8758
  textColor: isSelected ? 'base-white' : 'base-black',
8757
- pressedColor: "base-black",
8758
- hoveredColor: "base-black"
8759
- }, text);
8759
+ hoveredColor: isSelected ? 'black-hovered' : 'base-black',
8760
+ pressedColor: "black-pressed"
8761
+ }, rest), text);
8760
8762
  })));
8761
8763
  };
8762
8764
 
@@ -9070,7 +9072,7 @@ var TextWrapper$1 = /*#__PURE__*/styled__default.div(_templateObject6$i || (_tem
9070
9072
  var ButtonWrapper$2 = /*#__PURE__*/styled__default.div(_templateObject7$d || (_templateObject7$d = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n grid-area: button;\n align-self: end;\n display: flex;\n justify-content: center;\n margin-top: 40px;\n\n @media ", " {\n & {\n margin-top: 0px;\n margin-bottom: 20px;\n }\n }\n"])), devices.mobile);
9071
9073
  var ScrollDownWrapper = /*#__PURE__*/styled__default.div(_templateObject8$9 || (_templateObject8$9 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n position: absolute;\n bottom: 20px;\n left: var(--grid-outer-margin);\n width: fit-content;\n z-index: ", ";\n\n @keyframes UpDown {\n 0%,\n 100% {\n transform: translateY(0);\n }\n 50% {\n transform: translateY(8px);\n }\n }\n\n a {\n font-size: var(--font-size-overline-1);\n font-weight: var(--font-weight-overline-1);\n letter-spacing: var(--letter-spacing-overline-1);\n border: none;\n padding: 0;\n :hover {\n border: none;\n\n > span {\n animation: UpDown 1500ms linear infinite;\n }\n }\n }\n\n @media ", " {\n & {\n display: none;\n }\n }\n\n @media ", " {\n & {\n display: none;\n }\n }\n"])), zIndexes.contentOverlay, devices.mobile, devices.tablet);
9072
9074
 
9073
- var _excluded$k = ["text"];
9075
+ var _excluded$l = ["text"];
9074
9076
  var PageHeadingImpact = function PageHeadingImpact(_ref) {
9075
9077
  var children = _ref.children,
9076
9078
  text = _ref.text,
@@ -9088,7 +9090,7 @@ var PageHeadingImpact = function PageHeadingImpact(_ref) {
9088
9090
  var truncatedText = text == null ? void 0 : text.substring(0, 75);
9089
9091
  var _ref2 = link || {},
9090
9092
  linkText = _ref2.text,
9091
- restLink = _objectWithoutPropertiesLoose(_ref2, _excluded$k);
9093
+ restLink = _objectWithoutPropertiesLoose(_ref2, _excluded$l);
9092
9094
  return /*#__PURE__*/React__default.createElement(ImpactWrapper, {
9093
9095
  bgUrlDesktop: bgUrlDesktop,
9094
9096
  bgUrlDevice: bgUrlDevice,
@@ -9502,7 +9504,7 @@ var CompactHeaderBranding = function CompactHeaderBranding(_ref) {
9502
9504
  return /*#__PURE__*/React__default.createElement(CompactHeaderLogoWrapper, null, renderBranding(brandingStyle, invert, brandingText, brandingLink));
9503
9505
  };
9504
9506
 
9505
- var _excluded$l = ["text"];
9507
+ var _excluded$m = ["text"];
9506
9508
  var useResponsiveVideo = function useResponsiveVideo(video, poster) {
9507
9509
  var mobileVideo = video.mobile || video.desktop;
9508
9510
  var desktopVideo = video.desktop || video.mobile;
@@ -9607,7 +9609,7 @@ var PageHeadingCompact = function PageHeadingCompact(_ref4) {
9607
9609
  showCopy = _ref4$showCopy === void 0 ? true : _ref4$showCopy;
9608
9610
  var _ref5 = link || {},
9609
9611
  linkText = _ref5.text,
9610
- restLink = _objectWithoutPropertiesLoose(_ref5, _excluded$l);
9612
+ restLink = _objectWithoutPropertiesLoose(_ref5, _excluded$m);
9611
9613
  // const titleSize = title && title.length > 20 ? 4 : 3;
9612
9614
  var video = {
9613
9615
  elementId: 'compact-header-video',
@@ -9982,7 +9984,7 @@ var PromoWithTagsContainer = /*#__PURE__*/styled__default.div(_templateObject17
9982
9984
  var TimerWrapper$2 = /*#__PURE__*/styled__default.div(_templateObject18 || (_templateObject18 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n margin-bottom: 32px;\n"])));
9983
9985
  var EndDateText = /*#__PURE__*/styled__default.div(_templateObject19 || (_templateObject19 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n border-bottom: 1px solid var(--base-color-black);\n padding-bottom: 32px;\n margin-bottom: 32px;\n\n @media ", " {\n padding-bottom: 20px;\n margin-bottom: 20px;\n }\n"])), devices.mobile);
9984
9986
 
9985
- var _excluded$m = ["text"],
9987
+ var _excluded$n = ["text"],
9986
9988
  _excluded2$4 = ["text"],
9987
9989
  _excluded3 = ["text"];
9988
9990
  var _buttonTypeToButton$2;
@@ -10045,7 +10047,7 @@ var PromoWithTags = function PromoWithTags(_ref) {
10045
10047
  var _ref2 = firstButton || {},
10046
10048
  _ref2$text = _ref2.text,
10047
10049
  firstButtonText = _ref2$text === void 0 ? '' : _ref2$text,
10048
- restFirstButton = _objectWithoutPropertiesLoose(_ref2, _excluded$m);
10050
+ restFirstButton = _objectWithoutPropertiesLoose(_ref2, _excluded$n);
10049
10051
  var primaryButtonTextTruncate = truncate(firstButtonText, LENGTH_TEXT$1);
10050
10052
  var secondButton = links == null ? void 0 : links[1];
10051
10053
  var _ref3 = secondButton || {},
@@ -10314,7 +10316,7 @@ var PromoChild = function PromoChild(_ref) {
10314
10316
  }));
10315
10317
  };
10316
10318
 
10317
- var _excluded$n = ["text"],
10319
+ var _excluded$o = ["text"],
10318
10320
  _excluded2$5 = ["text"];
10319
10321
  var LENGTH_TEXT$3 = 28;
10320
10322
  var PromoWithTitle = function PromoWithTitle(_ref) {
@@ -10339,7 +10341,7 @@ var PromoWithTitle = function PromoWithTitle(_ref) {
10339
10341
  var _ref2 = primaryButton || {},
10340
10342
  _ref2$text = _ref2.text,
10341
10343
  primaryButtonText = _ref2$text === void 0 ? '' : _ref2$text,
10342
- restPrimaryButton = _objectWithoutPropertiesLoose(_ref2, _excluded$n);
10344
+ restPrimaryButton = _objectWithoutPropertiesLoose(_ref2, _excluded$o);
10343
10345
  var primaryButtonTextTruncate = truncate(primaryButtonText, LENGTH_TEXT$3);
10344
10346
  var tertiaryButton = links == null ? void 0 : links[1];
10345
10347
  var _ref3 = tertiaryButton || {},
@@ -11023,7 +11025,7 @@ var ErrorLabel$5 = /*#__PURE__*/styled__default.div(_templateObject4$D || (_temp
11023
11025
  return "var(--base-color-errorstate)";
11024
11026
  });
11025
11027
 
11026
- var _excluded$o = ["label", "error", "width", "darkMode", "isSearchable", "components"];
11028
+ var _excluded$p = ["label", "error", "width", "darkMode", "isSearchable", "components"];
11027
11029
  var DropdownIndicator = function DropdownIndicator(props) {
11028
11030
  return /*#__PURE__*/React__default.createElement(Select$1.components.DropdownIndicator, Object.assign({}, props), /*#__PURE__*/React__default.createElement(Icon, {
11029
11031
  iconName: "DropdownArrow"
@@ -11074,7 +11076,7 @@ var SelectComponent = function SelectComponent(_ref2) {
11074
11076
  _ref2$isSearchable = _ref2.isSearchable,
11075
11077
  isSearchable = _ref2$isSearchable === void 0 ? false : _ref2$isSearchable,
11076
11078
  components = _ref2.components,
11077
- selectProps = _objectWithoutPropertiesLoose(_ref2, _excluded$o);
11079
+ selectProps = _objectWithoutPropertiesLoose(_ref2, _excluded$p);
11078
11080
  return /*#__PURE__*/React__default.createElement(WrapperComponent, {
11079
11081
  label: label,
11080
11082
  error: error,
@@ -11092,7 +11094,7 @@ var SelectComponent = function SelectComponent(_ref2) {
11092
11094
  })));
11093
11095
  };
11094
11096
 
11095
- var _excluded$p = ["label", "error", "width", "darkMode", "components"];
11097
+ var _excluded$q = ["label", "error", "width", "darkMode", "components"];
11096
11098
  /**
11097
11099
  * The Select2Async component is similar to Select 2, but uses react-select async
11098
11100
  * component for select instead of regular react-select component. This can be used
@@ -11114,7 +11116,7 @@ var SelectComponent$1 = function SelectComponent(_ref) {
11114
11116
  _ref$darkMode = _ref.darkMode,
11115
11117
  darkMode = _ref$darkMode === void 0 ? false : _ref$darkMode,
11116
11118
  components = _ref.components,
11117
- selectProps = _objectWithoutPropertiesLoose(_ref, _excluded$p);
11119
+ selectProps = _objectWithoutPropertiesLoose(_ref, _excluded$q);
11118
11120
  return /*#__PURE__*/React__default.createElement(WrapperComponent, {
11119
11121
  label: label,
11120
11122
  error: error,
@@ -12485,11 +12487,11 @@ var HarmonicThemeProvider = function HarmonicThemeProvider(_ref) {
12485
12487
  return themedChildren.length === 1 ? themedChildren[0] : /*#__PURE__*/React__default.createElement(React__default.Fragment, null, themedChildren);
12486
12488
  };
12487
12489
 
12488
- var _excluded$q = ["logo", "slides"];
12490
+ var _excluded$r = ["logo", "slides"];
12489
12491
  var HighlightsCinema = function HighlightsCinema(_ref) {
12490
12492
  var logo = _ref.logo,
12491
12493
  slides = _ref.slides,
12492
- rest = _objectWithoutPropertiesLoose(_ref, _excluded$q);
12494
+ rest = _objectWithoutPropertiesLoose(_ref, _excluded$r);
12493
12495
  var slidesWithLinks = slides.map(function (slide) {
12494
12496
  var links = processSlideLinks(slide.links);
12495
12497
  return _extends({}, slide, {
@@ -12506,10 +12508,10 @@ var HighlightsCinema = function HighlightsCinema(_ref) {
12506
12508
  })));
12507
12509
  };
12508
12510
 
12509
- var _excluded$r = ["slides"];
12511
+ var _excluded$s = ["slides"];
12510
12512
  var HighlightsCore = function HighlightsCore(_ref) {
12511
12513
  var slides = _ref.slides,
12512
- rest = _objectWithoutPropertiesLoose(_ref, _excluded$r);
12514
+ rest = _objectWithoutPropertiesLoose(_ref, _excluded$s);
12513
12515
  var slidesWithLinks = slides.map(function (slide) {
12514
12516
  var links = processSlideLinks(slide.links);
12515
12517
  return _extends({}, slide, {
@@ -12523,11 +12525,11 @@ var HighlightsCore = function HighlightsCore(_ref) {
12523
12525
  })));
12524
12526
  };
12525
12527
 
12526
- var _excluded$s = ["logo", "slides"];
12528
+ var _excluded$t = ["logo", "slides"];
12527
12529
  var HighlightsStream = function HighlightsStream(_ref) {
12528
12530
  var logo = _ref.logo,
12529
12531
  slides = _ref.slides,
12530
- rest = _objectWithoutPropertiesLoose(_ref, _excluded$s);
12532
+ rest = _objectWithoutPropertiesLoose(_ref, _excluded$t);
12531
12533
  var slidesWithLinks = slides.map(function (slide) {
12532
12534
  var links = processSlideLinks(slide.links);
12533
12535
  return _extends({}, slide, {