@royaloperahouse/chord 0.5.4 → 0.5.8

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## [0.5.8]
4
+ - PromoWithTitle links style
5
+
6
+ ## [0.5.7]
7
+ - Added Star icon to Iconography
8
+
9
+ ## [0.5.6]
10
+ - Added Favourite and Favourite Full icons to Iconography
11
+
12
+ ## [0.5.5]
13
+ - Export ImageAspectRatioWrapper component and AspectRatio enum
14
+
3
15
  ## [0.5.4]
4
16
  - Fix Card typography
5
17
  - Fix Carousel title typography
@@ -742,6 +742,36 @@ var EditMyList = (function (_ref) {
742
742
  }));
743
743
  });
744
744
 
745
+ var Favourite = (function (_ref) {
746
+ var _ref$color = _ref.color,
747
+ color = _ref$color === void 0 ? '#1A1A1A' : _ref$color;
748
+ return /*#__PURE__*/React.createElement("svg", {
749
+ width: "100%",
750
+ height: "100%",
751
+ viewBox: "0 0 24 24",
752
+ fill: "none",
753
+ xmlns: "http://www.w3.org/2000/svg"
754
+ }, /*#__PURE__*/React.createElement("path", {
755
+ d: "M12 4.69994L13.88 8.51994L14.12 8.98994L14.64 9.06994L18.85 9.67994L15.8 12.6799L15.43 13.0499L15.51 13.5599L16.23 17.7599L12.47 15.7599L12 15.5099L11.53 15.7499L7.77 17.7499L8.49 13.5499L8.57 13.0399L8.2 12.6699L5.15 9.66994L9.36 9.05994L9.88 8.97994L10.12 8.50994L12 4.69994ZM12 2.43994L9.22 8.07994L3 8.99994L7.5 13.3899L6.44 19.5799L12 16.6399L17.56 19.5599L16.5 13.3699L21 8.99994L14.78 8.09994L12 2.43994Z",
756
+ fill: color
757
+ }));
758
+ });
759
+
760
+ var FavouriteFull = (function (_ref) {
761
+ var _ref$color = _ref.color,
762
+ color = _ref$color === void 0 ? '#1A1A1A' : _ref$color;
763
+ return /*#__PURE__*/React.createElement("svg", {
764
+ width: "100%",
765
+ height: "100%",
766
+ viewBox: "0 0 24 24",
767
+ fill: "none",
768
+ xmlns: "http://www.w3.org/2000/svg"
769
+ }, /*#__PURE__*/React.createElement("path", {
770
+ d: "M9.22 8.07994L12 2.43994L14.78 8.09994L21 8.99994L16.5 13.3699L17.56 19.5599L12 16.6399L6.44 19.5799L7.5 13.3899L3 8.99994L9.22 8.07994Z",
771
+ fill: color
772
+ }));
773
+ });
774
+
745
775
  var Filter = (function (_ref) {
746
776
  var _ref$color = _ref.color,
747
777
  color = _ref$color === void 0 ? '#1A1A1A' : _ref$color;
@@ -1606,6 +1636,21 @@ var Refresh = (function (_ref) {
1606
1636
  }));
1607
1637
  });
1608
1638
 
1639
+ var Star = (function (_ref) {
1640
+ var _ref$color = _ref.color,
1641
+ color = _ref$color === void 0 ? '#1A1A1A' : _ref$color;
1642
+ return /*#__PURE__*/React.createElement("svg", {
1643
+ width: "100%",
1644
+ height: "100%",
1645
+ viewBox: "0 0 48 46",
1646
+ fill: "none",
1647
+ xmlns: "http://www.w3.org/2000/svg"
1648
+ }, /*#__PURE__*/React.createElement("path", {
1649
+ d: "M24 0L30.0248 16.7076L47.7764 17.2746L33.7483 28.1674L38.6946 45.2254L24 35.25L9.30537 45.2254L14.2517 28.1674L0.223587 17.2746L17.9752 16.7076L24 0Z",
1650
+ fill: color
1651
+ }));
1652
+ });
1653
+
1609
1654
  var AudioDescription = (function (_ref) {
1610
1655
  var _ref$color = _ref.color,
1611
1656
  color = _ref$color === void 0 ? '#1A1A1A' : _ref$color;
@@ -1905,6 +1950,8 @@ var IconLibrary = {
1905
1950
  Expand: Expand,
1906
1951
  ExternalLink: ExternalLink,
1907
1952
  Facebook: Facebook,
1953
+ Favourite: Favourite,
1954
+ FavouriteFull: FavouriteFull,
1908
1955
  Filter: Filter,
1909
1956
  FindAScreening: FindAScreening,
1910
1957
  Forward10: Forward10,
@@ -1936,6 +1983,7 @@ var IconLibrary = {
1936
1983
  Settings: Settings,
1937
1984
  Shift: Shift,
1938
1985
  Space: Space,
1986
+ Star: Star,
1939
1987
  Subscribe: Subscribe,
1940
1988
  Subtitles: Subtitles,
1941
1989
  Tick: Tick,
@@ -2424,19 +2472,17 @@ var SectionSplitter = function SectionSplitter(_ref) {
2424
2472
  }, /*#__PURE__*/React__default.createElement(Splitter, null)));
2425
2473
  };
2426
2474
 
2427
- var AspectRatio;
2428
-
2429
2475
  (function (AspectRatio) {
2430
2476
  AspectRatio["1:1"] = "1 / 1";
2431
2477
  AspectRatio["3:4"] = "3 / 4";
2432
2478
  AspectRatio["4:3"] = "4 / 3";
2433
2479
  AspectRatio["16:9"] = "16 / 9";
2434
- })(AspectRatio || (AspectRatio = {}));
2480
+ })(exports.AspectRatio || (exports.AspectRatio = {}));
2435
2481
 
2436
2482
  var _templateObject$d;
2437
2483
  var ImageAspectRatioWrapper = /*#__PURE__*/styled__default.div(_templateObject$d || (_templateObject$d = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n aspect-ratio: ", ";\n\n img {\n display: block;\n width: 100%;\n height: 100%;\n object-fit: cover;\n }\n"])), function (_ref) {
2438
2484
  var _ref$aspectRatio = _ref.aspectRatio,
2439
- aspectRatio = _ref$aspectRatio === void 0 ? AspectRatio['1:1'] : _ref$aspectRatio;
2485
+ aspectRatio = _ref$aspectRatio === void 0 ? exports.AspectRatio['1:1'] : _ref$aspectRatio;
2440
2486
  return aspectRatio;
2441
2487
  });
2442
2488
 
@@ -4378,7 +4424,7 @@ var HighlightsCarousel = function HighlightsCarousel(_ref) {
4378
4424
  return /*#__PURE__*/React__default.createElement(swiperReact_js.SwiperSlide, {
4379
4425
  key: image.key
4380
4426
  }, /*#__PURE__*/React__default.createElement(ImageAspectRatioWrapper, {
4381
- aspectRatio: AspectRatio['4:3']
4427
+ aspectRatio: exports.AspectRatio['4:3']
4382
4428
  }, /*#__PURE__*/React__default.createElement("img", Object.assign({}, image))));
4383
4429
  }))));
4384
4430
  };
@@ -4644,7 +4690,7 @@ var Card = function Card(_ref) {
4644
4690
  }, hovered && /*#__PURE__*/React__default.createElement(HoverContainer, {
4645
4691
  "data-testid": "hovercontainer"
4646
4692
  }), /*#__PURE__*/React__default.createElement(ImageAspectRatioWrapper, {
4647
- aspectRatio: AspectRatio['4:3']
4693
+ aspectRatio: exports.AspectRatio['4:3']
4648
4694
  }, /*#__PURE__*/React__default.createElement("img", {
4649
4695
  src: image,
4650
4696
  alt: "test"
@@ -4748,7 +4794,7 @@ var Editorial = function Editorial(_ref) {
4748
4794
  "data-testid": "image-wrapper",
4749
4795
  imageToLeft: imageToLeft
4750
4796
  }, /*#__PURE__*/React__default.createElement(ImageAspectRatioWrapper, {
4751
- aspectRatio: AspectRatio['1:1']
4797
+ aspectRatio: exports.AspectRatio['1:1']
4752
4798
  }, children)), /*#__PURE__*/React__default.createElement(EditorialTextWrapper, {
4753
4799
  "data-testid": "text-wrapper",
4754
4800
  imageToLeft: imageToLeft
@@ -4974,12 +5020,21 @@ var PromoWithTitleContentWrapper = /*#__PURE__*/styled__default.div(_templateObj
4974
5020
  }, devices.mobile);
4975
5021
  var PromoWithTitleContainer = /*#__PURE__*/styled__default.div(_templateObject4$f || (_templateObject4$f = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n margin: 0 0 32px 0;\n\n h2,\n h3 {\n margin: 0;\n }\n\n @media ", " {\n & {\n margin: 0 0 24px 0;\n }\n }\n"])), devices.mobile);
4976
5022
  var PromoWithTitleSubtitle = /*#__PURE__*/styled__default.span(_templateObject5$b || (_templateObject5$b = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n font-family: var(--font-family-subtitle);\n font-feature-settings: var(--font-feature-settings-subtitle);\n font-size: var(--font-size-subtitle-1);\n font-weight: var(--font-weight-subtitle-1);\n line-height: var(--line-height-subtitle-1);\n letter-spacing: var(--letter-spacing-subtitle-1);\n text-transform: var(--text-transform-subtitle);\n margin-bottom: var(--editorial-subtitle-margin-bottom);\n display: block;\n overflow-wrap: break-word;\n"])));
4977
- var PromoWithTitleText = /*#__PURE__*/styled__default.div(_templateObject6$9 || (_templateObject6$9 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n font-family: var(--font-family-body);\n font-feature-settings: var(--font-feature-settings-body);\n font-size: var(--font-size-body-1);\n font-weight: var(--font-weight-body-1);\n line-height: var(--line-height-body-1);\n letter-spacing: var(--letter-spacing-body-1);\n text-transform: var(--text-transform-body);\n margin: 0;\n padding: 0;\n white-space: break-spaces;\n overflow-wrap: break-word;\n\n em {\n font-family: var(--font-family-body-italics);\n }\n"])));
4978
- var ButtonsContainer$2 = /*#__PURE__*/styled__default.div(_templateObject7$7 || (_templateObject7$7 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 16px;\n margin-top: 32px;\n\n ", "\n\n @media ", " {\n gap: 24px;\n margin-top: 24px;\n flex-direction: column;\n align-items: center;\n }\n\n @media ", " {\n gap: 24px;\n margin-top: 24px;\n align-items: flex-start;\n\n ", "\n }\n"])), function (_ref5) {
4979
- var _ref5$primaryButtonTe = _ref5.primaryButtonTextLength,
4980
- primaryButtonTextLength = _ref5$primaryButtonTe === void 0 ? 0 : _ref5$primaryButtonTe,
4981
- _ref5$tertiaryButtonT = _ref5.tertiaryButtonTextLength,
4982
- tertiaryButtonTextLength = _ref5$tertiaryButtonT === void 0 ? 0 : _ref5$tertiaryButtonT;
5023
+ var PromoWithTitleText = /*#__PURE__*/styled__default.div(_templateObject6$9 || (_templateObject6$9 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n font-family: var(--font-family-body);\n font-feature-settings: var(--font-feature-settings-body);\n font-size: var(--font-size-body-1);\n font-weight: var(--font-weight-body-1);\n line-height: var(--line-height-body-1);\n letter-spacing: var(--letter-spacing-body-1);\n text-transform: var(--text-transform-body);\n margin: 0;\n padding: 0;\n white-space: break-spaces;\n overflow-wrap: break-word;\n\n em {\n font-family: var(--font-family-body-italics);\n }\n\n a {\n text-decoration: underline;\n cursor: pointer;\n\n &[href^='tel:'] {\n text-decoration: none;\n }\n\n &:link {\n color: ", ";\n }\n\n &:visited {\n color: ", ";\n }\n\n &:hover {\n color: ", ";\n }\n }\n"])), function (_ref5) {
5024
+ var theme = _ref5.theme;
5025
+ return theme.colors.black;
5026
+ }, function (_ref6) {
5027
+ var theme = _ref6.theme;
5028
+ return theme.colors.darkgrey;
5029
+ }, function (_ref7) {
5030
+ var theme = _ref7.theme;
5031
+ return theme.colors.primary;
5032
+ });
5033
+ var ButtonsContainer$2 = /*#__PURE__*/styled__default.div(_templateObject7$7 || (_templateObject7$7 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 16px;\n margin-top: 32px;\n\n ", "\n\n @media ", " {\n gap: 24px;\n margin-top: 24px;\n flex-direction: column;\n align-items: center;\n }\n\n @media ", " {\n gap: 24px;\n margin-top: 24px;\n align-items: flex-start;\n\n ", "\n }\n"])), function (_ref8) {
5034
+ var _ref8$primaryButtonTe = _ref8.primaryButtonTextLength,
5035
+ primaryButtonTextLength = _ref8$primaryButtonTe === void 0 ? 0 : _ref8$primaryButtonTe,
5036
+ _ref8$tertiaryButtonT = _ref8.tertiaryButtonTextLength,
5037
+ tertiaryButtonTextLength = _ref8$tertiaryButtonT === void 0 ? 0 : _ref8$tertiaryButtonT;
4983
5038
  var isLinksLayoutColumn = primaryButtonTextLength >= LENGTH_TEXT || tertiaryButtonTextLength >= LENGTH_TEXT;
4984
5039
 
4985
5040
  if (isLinksLayoutColumn) {
@@ -4987,11 +5042,11 @@ var ButtonsContainer$2 = /*#__PURE__*/styled__default.div(_templateObject7$7 ||
4987
5042
  }
4988
5043
 
4989
5044
  return '';
4990
- }, devices.mobile, devices.tablet, function (_ref6) {
4991
- var _ref6$primaryButtonTe = _ref6.primaryButtonTextLength,
4992
- primaryButtonTextLength = _ref6$primaryButtonTe === void 0 ? 0 : _ref6$primaryButtonTe,
4993
- _ref6$tertiaryButtonT = _ref6.tertiaryButtonTextLength,
4994
- tertiaryButtonTextLength = _ref6$tertiaryButtonT === void 0 ? 0 : _ref6$tertiaryButtonT;
5045
+ }, devices.mobile, devices.tablet, function (_ref9) {
5046
+ var _ref9$primaryButtonTe = _ref9.primaryButtonTextLength,
5047
+ primaryButtonTextLength = _ref9$primaryButtonTe === void 0 ? 0 : _ref9$primaryButtonTe,
5048
+ _ref9$tertiaryButtonT = _ref9.tertiaryButtonTextLength,
5049
+ tertiaryButtonTextLength = _ref9$tertiaryButtonT === void 0 ? 0 : _ref9$tertiaryButtonT;
4995
5050
  var isLinksLayoutColumnTablet = primaryButtonTextLength >= LENGTH_TEXT_TABLET$1 || tertiaryButtonTextLength >= LENGTH_TEXT_TABLET$1;
4996
5051
 
4997
5052
  if (isLinksLayoutColumnTablet) {
@@ -5045,7 +5100,7 @@ var PromoWithTitle = function PromoWithTitle(_ref) {
5045
5100
  "data-testid": "image-wrapper",
5046
5101
  imageToLeft: imageToLeft
5047
5102
  }, /*#__PURE__*/React__default.createElement(ImageAspectRatioWrapper, {
5048
- aspectRatio: AspectRatio['4:3']
5103
+ aspectRatio: exports.AspectRatio['4:3']
5049
5104
  }, children)), /*#__PURE__*/React__default.createElement(PromoWithTitleContentWrapper, {
5050
5105
  "data-testid": "content-wrapper",
5051
5106
  imageToLeft: imageToLeft
@@ -6027,6 +6082,7 @@ exports.HighlightsCarouselCinema = HighlightsCinema;
6027
6082
  exports.HighlightsCarouselCore = HighlightsCore;
6028
6083
  exports.HighlightsCarouselStream = HighlightsStream;
6029
6084
  exports.Icon = Icon;
6085
+ exports.ImageAspectRatioWrapper = ImageAspectRatioWrapper;
6030
6086
  exports.ImageWithCaption = ImageWithCaption;
6031
6087
  exports.Navigation = Navigation;
6032
6088
  exports.Overline = Overline;