@royaloperahouse/harmonic 1.0.0-b → 1.0.1-a

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.
@@ -7094,6 +7094,7 @@ var Swipe = /*#__PURE__*/forwardRef(function (_ref, ref) {
7094
7094
  });
7095
7095
  Swipe.displayName = 'Swipe';
7096
7096
 
7097
+ var _excluded$i = ["name", "image", "onClick"];
7097
7098
  var CastFilters = function CastFilters(_ref) {
7098
7099
  var cast = _ref.cast,
7099
7100
  headingText = _ref.headingText,
@@ -7217,8 +7218,7 @@ var CastFilters = function CastFilters(_ref) {
7217
7218
  if (onClick) onClick();
7218
7219
  }, [onSelect]);
7219
7220
  var handlePersonKeydown = React__default.useCallback(function (e, index, onClick) {
7220
- if (e.key === 'Enter' || e.key === ' ' || e.key === 'Spacebar') {
7221
- e.preventDefault();
7221
+ if (e.key === 'Enter') {
7222
7222
  handleClick(index, onClick);
7223
7223
  }
7224
7224
  }, [handleClick]);
@@ -7233,24 +7233,23 @@ var CastFilters = function CastFilters(_ref) {
7233
7233
  var name = person.name,
7234
7234
  image = person.image,
7235
7235
  _onClick = person.onClick,
7236
- ariaLabel = person['aria-label'];
7236
+ rest = _objectWithoutPropertiesLoose(person, _excluded$i);
7237
7237
  var isSelected = selectedIndices.includes(index);
7238
7238
  var personImage = image || placeholderImage || defaultPlaceholderImage;
7239
7239
  return /*#__PURE__*/React__default.createElement(PersonWrapper, {
7240
7240
  key: index,
7241
7241
  "aria-selected": isSelected,
7242
- "aria-label": ariaLabel != null ? ariaLabel : name,
7243
7242
  role: "option",
7244
7243
  tabIndex: 0,
7245
- onClick: function onClick() {
7246
- return handleClick(index, _onClick);
7247
- },
7248
7244
  onKeyDown: function onKeyDown(e) {
7249
7245
  return handlePersonKeydown(e, index, _onClick);
7250
7246
  }
7251
- }, /*#__PURE__*/React__default.createElement(PersonToggle, {
7252
- isSelected: isSelected
7253
- }, /*#__PURE__*/React__default.createElement(PersonImage, {
7247
+ }, /*#__PURE__*/React__default.createElement(PersonToggle, Object.assign({
7248
+ isSelected: isSelected,
7249
+ onClick: function onClick() {
7250
+ return handleClick(index, _onClick);
7251
+ }
7252
+ }, rest), /*#__PURE__*/React__default.createElement(PersonImage, {
7254
7253
  src: personImage,
7255
7254
  alt: image ? name : "Placeholder image for " + name,
7256
7255
  draggable: false,
@@ -7524,7 +7523,7 @@ var HotFiltersWrapper = /*#__PURE__*/styled.div(_templateObject$O || (_templateO
7524
7523
  var HotFilterOptionsWrapper = /*#__PURE__*/styled.div(_templateObject2$C || (_templateObject2$C = /*#__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);
7525
7524
  var StyledHotFiltersButton = /*#__PURE__*/styled(PrimaryButton)(_templateObject3$q || (_templateObject3$q = /*#__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"])));
7526
7525
 
7527
- var _excluded$i = ["text", "onClick"];
7526
+ var _excluded$j = ["text", "onClick"];
7528
7527
  var HotFilters = function HotFilters(_ref) {
7529
7528
  var items = _ref.items,
7530
7529
  className = _ref.className,
@@ -7540,7 +7539,7 @@ var HotFilters = function HotFilters(_ref) {
7540
7539
  }, /*#__PURE__*/React__default.createElement(HotFilterOptionsWrapper, null, items.map(function (item, index) {
7541
7540
  var text = item.text,
7542
7541
  _onClick = item.onClick,
7543
- rest = _objectWithoutPropertiesLoose(item, _excluded$i);
7542
+ rest = _objectWithoutPropertiesLoose(item, _excluded$j);
7544
7543
  var isSelected = index === selectedIndex;
7545
7544
  return /*#__PURE__*/React__default.createElement(StyledHotFiltersButton, Object.assign({
7546
7545
  key: index,
@@ -7993,7 +7992,7 @@ var VideoControlsImpact = function VideoControlsImpact(_ref) {
7993
7992
  })))));
7994
7993
  };
7995
7994
 
7996
- var _excluded$j = ["text"];
7995
+ var _excluded$k = ["text"];
7997
7996
  var CHAR_LIMIT = 100;
7998
7997
  var useResponsiveVideo = function useResponsiveVideo(video, poster) {
7999
7998
  var mobileVideo = video.mobile || video.desktop;
@@ -8115,7 +8114,7 @@ var PageHeadingImpact = function PageHeadingImpact(_ref4) {
8115
8114
  var truncatedText = text && text.length > CHAR_LIMIT ? text.slice(0, CHAR_LIMIT).trimEnd() + "\u2026" : text;
8116
8115
  var _ref5 = link || {},
8117
8116
  linkText = _ref5.text,
8118
- restLink = _objectWithoutPropertiesLoose(_ref5, _excluded$j);
8117
+ restLink = _objectWithoutPropertiesLoose(_ref5, _excluded$k);
8119
8118
  var video = {
8120
8119
  elementId: 'impact-header-video',
8121
8120
  desktop: videoUrlDesktop,
@@ -8592,7 +8591,7 @@ var CompactHeaderBranding = function CompactHeaderBranding(_ref) {
8592
8591
  return /*#__PURE__*/React__default.createElement(CompactHeaderLogoWrapper, null, renderBranding(brandingStyle, invert, brandingText, brandingLink));
8593
8592
  };
8594
8593
 
8595
- var _excluded$k = ["text"];
8594
+ var _excluded$l = ["text"];
8596
8595
  var useResponsiveVideo$1 = function useResponsiveVideo(video, poster) {
8597
8596
  var mobileVideo = video.mobile || video.desktop;
8598
8597
  var desktopVideo = video.desktop || video.mobile;
@@ -8697,7 +8696,7 @@ var PageHeadingCompact = function PageHeadingCompact(_ref4) {
8697
8696
  showCopy = _ref4$showCopy === void 0 ? true : _ref4$showCopy;
8698
8697
  var _ref5 = link || {},
8699
8698
  linkText = _ref5.text,
8700
- restLink = _objectWithoutPropertiesLoose(_ref5, _excluded$k);
8699
+ restLink = _objectWithoutPropertiesLoose(_ref5, _excluded$l);
8701
8700
  // const titleSize = title && title.length > 20 ? 4 : 3;
8702
8701
  var video = {
8703
8702
  elementId: 'compact-header-video',
@@ -9302,7 +9301,7 @@ var HarmonicHeaderWithWrapper = /*#__PURE__*/styled(HarmonicHeader)(_templateObj
9302
9301
  var BodyCopyHarmonicWithWrapper$1 = /*#__PURE__*/styled(BodyCopyHarmonic)(_templateObject16 || (_templateObject16 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n padding: 0;\n margin: 0;\n margin-bottom: 32px;\n whiete-space: break-spaces;\n overflow-wrap: break-word;\n\n a {\n text-decoration: underline;\n cursor: pointer;\n\n &[href^='tel:'] {\n text-decoration: none;\n }\n\n &:link {\n color: var(--color-primary-black);\n }\n\n &:visited {\n color: var(--color-base-dark-grey);\n }\n\n &:hover {\n color: var(--color-primary-red);\n }\n }\n @media ", " {\n margin-bottom: 24px;\n }\n"])), devices.mobile);
9303
9302
  var HarmonicSubtitleWithWrapper = /*#__PURE__*/styled(HarmonicSubtitle)(_templateObject17 || (_templateObject17 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n overflow-wrap: break-word;\n margin-bottom: 16px;\n"])));
9304
9303
 
9305
- var _excluded$l = ["text"],
9304
+ var _excluded$m = ["text"],
9306
9305
  _excluded2$2 = ["text"],
9307
9306
  _excluded3$1 = ["text"];
9308
9307
  var _buttonTypeToButton$1;
@@ -9370,7 +9369,7 @@ var PromoWithTags = function PromoWithTags(_ref) {
9370
9369
  var _ref2 = firstButton || {},
9371
9370
  _ref2$text = _ref2.text,
9372
9371
  firstButtonText = _ref2$text === void 0 ? '' : _ref2$text,
9373
- restFirstButton = _objectWithoutPropertiesLoose(_ref2, _excluded$l);
9372
+ restFirstButton = _objectWithoutPropertiesLoose(_ref2, _excluded$m);
9374
9373
  var primaryButtonTextTruncate = truncate(firstButtonText, LENGTH_TEXT$1);
9375
9374
  var secondButton = links == null ? void 0 : links[1];
9376
9375
  var _ref3 = secondButton || {},
@@ -9654,7 +9653,7 @@ var PromoChild = function PromoChild(_ref) {
9654
9653
  }));
9655
9654
  };
9656
9655
 
9657
- var _excluded$m = ["text"],
9656
+ var _excluded$n = ["text"],
9658
9657
  _excluded2$3 = ["text"];
9659
9658
  var LENGTH_TEXT$3 = 28;
9660
9659
  var PromoWithTitle = function PromoWithTitle(_ref) {
@@ -9681,7 +9680,7 @@ var PromoWithTitle = function PromoWithTitle(_ref) {
9681
9680
  var _ref2 = primaryButton || {},
9682
9681
  _ref2$text = _ref2.text,
9683
9682
  primaryButtonText = _ref2$text === void 0 ? '' : _ref2$text,
9684
- restPrimaryButton = _objectWithoutPropertiesLoose(_ref2, _excluded$m);
9683
+ restPrimaryButton = _objectWithoutPropertiesLoose(_ref2, _excluded$n);
9685
9684
  var primaryButtonTextTruncate = truncate(primaryButtonText, LENGTH_TEXT$3);
9686
9685
  var tertiaryButton = links == null ? void 0 : links[1];
9687
9686
  var _ref3 = tertiaryButton || {},
@@ -10380,7 +10379,7 @@ var ErrorLabel$5 = /*#__PURE__*/styled.div(_templateObject4$z || (_templateObjec
10380
10379
  return "var(--color-state-error)";
10381
10380
  });
10382
10381
 
10383
- var _excluded$n = ["label", "error", "width", "darkMode", "isSearchable", "components", "className"];
10382
+ var _excluded$o = ["label", "error", "width", "darkMode", "isSearchable", "components", "className"];
10384
10383
  var DropdownIndicator = function DropdownIndicator(props) {
10385
10384
  return /*#__PURE__*/React__default.createElement(components.DropdownIndicator, Object.assign({}, props), /*#__PURE__*/React__default.createElement(Icon, {
10386
10385
  iconName: "DropdownArrow"
@@ -10435,7 +10434,7 @@ var SelectComponent = function SelectComponent(_ref2) {
10435
10434
  isSearchable = _ref2$isSearchable === void 0 ? false : _ref2$isSearchable,
10436
10435
  components = _ref2.components,
10437
10436
  className = _ref2.className,
10438
- selectProps = _objectWithoutPropertiesLoose(_ref2, _excluded$n);
10437
+ selectProps = _objectWithoutPropertiesLoose(_ref2, _excluded$o);
10439
10438
  return /*#__PURE__*/React__default.createElement(WrapperComponent, {
10440
10439
  label: label,
10441
10440
  error: error,
@@ -10454,7 +10453,7 @@ var SelectComponent = function SelectComponent(_ref2) {
10454
10453
  })));
10455
10454
  };
10456
10455
 
10457
- var _excluded$o = ["label", "error", "width", "darkMode", "components"];
10456
+ var _excluded$p = ["label", "error", "width", "darkMode", "components"];
10458
10457
  /**
10459
10458
  * The Select2Async component is similar to Select 2, but uses react-select async
10460
10459
  * component for select instead of regular react-select component. This can be used
@@ -10476,7 +10475,7 @@ var SelectComponent$1 = function SelectComponent(_ref) {
10476
10475
  _ref$darkMode = _ref.darkMode,
10477
10476
  darkMode = _ref$darkMode === void 0 ? false : _ref$darkMode,
10478
10477
  components = _ref.components,
10479
- selectProps = _objectWithoutPropertiesLoose(_ref, _excluded$o);
10478
+ selectProps = _objectWithoutPropertiesLoose(_ref, _excluded$p);
10480
10479
  return /*#__PURE__*/React__default.createElement(WrapperComponent, {
10481
10480
  label: label,
10482
10481
  error: error,
@@ -10613,7 +10612,7 @@ var Wrapper$7 = /*#__PURE__*/styled.figure(_templateObject$1d || (_templateObjec
10613
10612
  var CaptionWrapper = /*#__PURE__*/styled.figcaption(_templateObject2$W || (_templateObject2$W = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: table-caption;\n caption-side: bottom;\n margin-top: var(--carousel-image-caption-margin);\n"])));
10614
10613
  var CaptionContext = /*#__PURE__*/styled(Caption)(_templateObject3$J || (_templateObject3$J = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: -webkit-box;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 2;\n overflow: hidden;\n text-overflow: ellipsis;\n line-clamp: 2;\n max-height: 46px;\n white-space: normal;\n word-break: break-word;\n font-feature-settings: var(--font-feature-settings-body);\n text-transform: var(--text-transform-body);\n"])));
10615
10614
 
10616
- var _excluded$p = ["caption", "altText", "src", "srcSet", "sizes", "loading", "aspectRatio", "className"];
10615
+ var _excluded$q = ["caption", "altText", "src", "srcSet", "sizes", "loading", "aspectRatio", "className"];
10617
10616
  var ImageWithCaption = function ImageWithCaption(_ref) {
10618
10617
  var caption = _ref.caption,
10619
10618
  altText = _ref.altText,
@@ -10623,7 +10622,7 @@ var ImageWithCaption = function ImageWithCaption(_ref) {
10623
10622
  loading = _ref.loading,
10624
10623
  aspectRatio = _ref.aspectRatio,
10625
10624
  className = _ref.className,
10626
- restProps = _objectWithoutPropertiesLoose(_ref, _excluded$p);
10625
+ restProps = _objectWithoutPropertiesLoose(_ref, _excluded$q);
10627
10626
  return /*#__PURE__*/React__default.createElement(Wrapper$7, Object.assign({
10628
10627
  aspectRatio: aspectRatio,
10629
10628
  className: className
@@ -12217,7 +12216,7 @@ var ArrowWrapper = /*#__PURE__*/styled.div(_templateObject0$9 || (_templateObjec
12217
12216
  return disabled ? 'var(--color-state-disabled)' : 'var(--button-anchor-tab-color)';
12218
12217
  });
12219
12218
 
12220
- var _excluded$q = ["id", "text"];
12219
+ var _excluded$r = ["id", "text"];
12221
12220
  var AnchorTabBar = function AnchorTabBar(_ref) {
12222
12221
  var tabs = _ref.tabs,
12223
12222
  onTabClick = _ref.onTabClick,
@@ -12428,7 +12427,7 @@ var AnchorTabBar = function AnchorTabBar(_ref) {
12428
12427
  }, tabs.map(function (_ref4) {
12429
12428
  var id = _ref4.id,
12430
12429
  text = _ref4.text,
12431
- rest = _objectWithoutPropertiesLoose(_ref4, _excluded$q);
12430
+ rest = _objectWithoutPropertiesLoose(_ref4, _excluded$r);
12432
12431
  return /*#__PURE__*/React__default.createElement("li", {
12433
12432
  key: id
12434
12433
  }, /*#__PURE__*/React__default.createElement(TabLink, Object.assign({
@@ -12490,7 +12489,7 @@ var PrimaryButtonReverse = /*#__PURE__*/styled(PrimaryButton)(_templateObject8$g
12490
12489
  var MessageWrapper$1 = /*#__PURE__*/styled.div(_templateObject9$b || (_templateObject9$b = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n margin-right: var(--grid-outer-margin);\n height: var(--button-height);\n\n h6 {\n margin: 0;\n padding: 0;\n }\n\n @media ", " {\n & {\n margin-right: var(--grid-margin);\n }\n }\n\n @media ", " {\n & {\n display: none;\n }\n }\n"])), devices.tablet, devices.mobile);
12491
12490
  var MessageWrapperMobile = /*#__PURE__*/styled.div(_templateObject0$a || (_templateObject0$a = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n h6 {\n margin: 0;\n padding: 0;\n }\n display: none;\n\n @media ", " {\n & {\n display: flex;\n align-items: center;\n margin-left: var(--grid-margin);\n padding: 12px 0;\n }\n }\n"])), devices.mobile);
12492
12491
 
12493
- var _excluded$r = ["text"],
12492
+ var _excluded$s = ["text"],
12494
12493
  _excluded2$4 = ["text"];
12495
12494
  var TitleWithCTA = function TitleWithCTA(_ref) {
12496
12495
  var title = _ref.title,
@@ -12500,7 +12499,7 @@ var TitleWithCTA = function TitleWithCTA(_ref) {
12500
12499
  message = _ref.message;
12501
12500
  var _ref2 = (links == null ? void 0 : links[0]) || {},
12502
12501
  primaryButtonText = _ref2.text,
12503
- primaryButtonProps = _objectWithoutPropertiesLoose(_ref2, _excluded$r);
12502
+ primaryButtonProps = _objectWithoutPropertiesLoose(_ref2, _excluded$s);
12504
12503
  var _ref3 = (links == null ? void 0 : links[1]) || {},
12505
12504
  secondaryButtonText = _ref3.text,
12506
12505
  secondaryButtonProps = _objectWithoutPropertiesLoose(_ref3, _excluded2$4);
@@ -12631,7 +12630,7 @@ var CloseButton = /*#__PURE__*/styled.button(_templateObject2$19 || (_templateOb
12631
12630
  var ContentWrapper$3 = /*#__PURE__*/styled.div(_templateObject3$V || (_templateObject3$V = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
12632
12631
  var Overlay = /*#__PURE__*/styled(Grid)(_templateObject4$N || (_templateObject4$N = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100vh;\n align-content: center;\n background-color: rgba(0, 0, 0, 0.4);\n"])));
12633
12632
 
12634
- var _excluded$s = ["isOpen", "setIsOpen", "children", "appElementId"];
12633
+ var _excluded$t = ["isOpen", "setIsOpen", "children", "appElementId"];
12635
12634
  var MAX_Z_INDEX = 9999999999;
12636
12635
  if (Modal.defaultStyles.content) {
12637
12636
  Modal.defaultStyles.content.position = 'static';
@@ -12705,7 +12704,7 @@ var ModalWindow = function ModalWindow(_ref) {
12705
12704
  setIsOpen = _ref.setIsOpen,
12706
12705
  children = _ref.children,
12707
12706
  appElementId = _ref.appElementId,
12708
- modalProps = _objectWithoutPropertiesLoose(_ref, _excluded$s);
12707
+ modalProps = _objectWithoutPropertiesLoose(_ref, _excluded$t);
12709
12708
  var isMobile = useMobile();
12710
12709
  var customStyles = {
12711
12710
  overlay: {
@@ -13123,7 +13122,7 @@ var VideoWithControlsWrapper = /*#__PURE__*/styled.div(_templateObject15$1 || (_
13123
13122
  }, devices.mobile);
13124
13123
  var ProgressContainer$1 = /*#__PURE__*/styled.div(_templateObject16$1 || (_templateObject16$1 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n margin-top: 32px;\n\n p {\n margin-bottom: 16px;\n }\n\n @media ", " {\n margin-top: 20px;\n\n p {\n margin-bottom: 12px;\n }\n }\n"])), devices.mobileAndTablet);
13125
13124
 
13126
- var _excluded$t = ["text"],
13125
+ var _excluded$u = ["text"],
13127
13126
  _excluded2$5 = ["text"];
13128
13127
  var _buttonTypeToButton$2;
13129
13128
  var buttonTypeToButton$2 = (_buttonTypeToButton$2 = {}, _buttonTypeToButton$2[ButtonType.Primary] = PrimaryButton, _buttonTypeToButton$2[ButtonType.Secondary] = SecondaryButton, _buttonTypeToButton$2[ButtonType.Tertiary] = TertiaryButton, _buttonTypeToButton$2);
@@ -13134,7 +13133,7 @@ var Buttons = function Buttons(_ref) {
13134
13133
  var _ref2 = firstButton || {},
13135
13134
  _ref2$text = _ref2.text,
13136
13135
  firstButtonText = _ref2$text === void 0 ? '' : _ref2$text,
13137
- restFirstButton = _objectWithoutPropertiesLoose(_ref2, _excluded$t);
13136
+ restFirstButton = _objectWithoutPropertiesLoose(_ref2, _excluded$u);
13138
13137
  var secondButton = links == null ? void 0 : links[1];
13139
13138
  var _ref3 = secondButton || {},
13140
13139
  _ref3$text = _ref3.text,
@@ -13371,11 +13370,11 @@ var HighlightsCarousel = function HighlightsCarousel(_ref) {
13371
13370
  })));
13372
13371
  };
13373
13372
 
13374
- var _excluded$u = ["logo", "slides"];
13373
+ var _excluded$v = ["logo", "slides"];
13375
13374
  var HighlightsCinema = function HighlightsCinema(_ref) {
13376
13375
  var logo = _ref.logo,
13377
13376
  slides = _ref.slides,
13378
- rest = _objectWithoutPropertiesLoose(_ref, _excluded$u);
13377
+ rest = _objectWithoutPropertiesLoose(_ref, _excluded$v);
13379
13378
  var slidesWithLinks = slides.map(function (slide) {
13380
13379
  var links = processSlideLinks(slide.links);
13381
13380
  return _extends({}, slide, {
@@ -13392,10 +13391,10 @@ var HighlightsCinema = function HighlightsCinema(_ref) {
13392
13391
  })));
13393
13392
  };
13394
13393
 
13395
- var _excluded$v = ["slides"];
13394
+ var _excluded$w = ["slides"];
13396
13395
  var HighlightsCore = function HighlightsCore(_ref) {
13397
13396
  var slides = _ref.slides,
13398
- rest = _objectWithoutPropertiesLoose(_ref, _excluded$v);
13397
+ rest = _objectWithoutPropertiesLoose(_ref, _excluded$w);
13399
13398
  var slidesWithLinks = slides.map(function (slide) {
13400
13399
  var links = processSlideLinks(slide.links);
13401
13400
  return _extends({}, slide, {
@@ -13409,11 +13408,11 @@ var HighlightsCore = function HighlightsCore(_ref) {
13409
13408
  })));
13410
13409
  };
13411
13410
 
13412
- var _excluded$w = ["logo", "slides"];
13411
+ var _excluded$x = ["logo", "slides"];
13413
13412
  var HighlightsStream = function HighlightsStream(_ref) {
13414
13413
  var logo = _ref.logo,
13415
13414
  slides = _ref.slides,
13416
- rest = _objectWithoutPropertiesLoose(_ref, _excluded$w);
13415
+ rest = _objectWithoutPropertiesLoose(_ref, _excluded$x);
13417
13416
  var slidesWithLinks = slides.map(function (slide) {
13418
13417
  var links = processSlideLinks(slide.links);
13419
13418
  return _extends({}, slide, {