@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 +12 -0
- package/dist/chord.cjs.development.js +75 -19
- package/dist/chord.cjs.development.js.map +1 -1
- package/dist/chord.cjs.production.min.js +1 -1
- package/dist/chord.cjs.production.min.js.map +1 -1
- package/dist/chord.esm.js +69 -12
- package/dist/chord.esm.js.map +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Actions/Favourite.svg.d.ts +4 -0
- package/dist/components/atoms/Icons/SvgIcons/Actions/FavouriteFull.svg.d.ts +4 -0
- package/dist/components/atoms/Icons/SvgIcons/Utility/Star.svg.d.ts +4 -0
- package/dist/components/atoms/Icons/SvgIcons/index.d.ts +3 -0
- package/dist/components/index.d.ts +2 -2
- package/dist/index.d.ts +3 -3
- package/dist/types/index.d.ts +2 -1
- package/package.json +1 -1
package/dist/chord.esm.js
CHANGED
|
@@ -734,6 +734,36 @@ var EditMyList = (function (_ref) {
|
|
|
734
734
|
}));
|
|
735
735
|
});
|
|
736
736
|
|
|
737
|
+
var Favourite = (function (_ref) {
|
|
738
|
+
var _ref$color = _ref.color,
|
|
739
|
+
color = _ref$color === void 0 ? '#1A1A1A' : _ref$color;
|
|
740
|
+
return /*#__PURE__*/createElement("svg", {
|
|
741
|
+
width: "100%",
|
|
742
|
+
height: "100%",
|
|
743
|
+
viewBox: "0 0 24 24",
|
|
744
|
+
fill: "none",
|
|
745
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
746
|
+
}, /*#__PURE__*/createElement("path", {
|
|
747
|
+
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",
|
|
748
|
+
fill: color
|
|
749
|
+
}));
|
|
750
|
+
});
|
|
751
|
+
|
|
752
|
+
var FavouriteFull = (function (_ref) {
|
|
753
|
+
var _ref$color = _ref.color,
|
|
754
|
+
color = _ref$color === void 0 ? '#1A1A1A' : _ref$color;
|
|
755
|
+
return /*#__PURE__*/createElement("svg", {
|
|
756
|
+
width: "100%",
|
|
757
|
+
height: "100%",
|
|
758
|
+
viewBox: "0 0 24 24",
|
|
759
|
+
fill: "none",
|
|
760
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
761
|
+
}, /*#__PURE__*/createElement("path", {
|
|
762
|
+
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",
|
|
763
|
+
fill: color
|
|
764
|
+
}));
|
|
765
|
+
});
|
|
766
|
+
|
|
737
767
|
var Filter = (function (_ref) {
|
|
738
768
|
var _ref$color = _ref.color,
|
|
739
769
|
color = _ref$color === void 0 ? '#1A1A1A' : _ref$color;
|
|
@@ -1598,6 +1628,21 @@ var Refresh = (function (_ref) {
|
|
|
1598
1628
|
}));
|
|
1599
1629
|
});
|
|
1600
1630
|
|
|
1631
|
+
var Star = (function (_ref) {
|
|
1632
|
+
var _ref$color = _ref.color,
|
|
1633
|
+
color = _ref$color === void 0 ? '#1A1A1A' : _ref$color;
|
|
1634
|
+
return /*#__PURE__*/createElement("svg", {
|
|
1635
|
+
width: "100%",
|
|
1636
|
+
height: "100%",
|
|
1637
|
+
viewBox: "0 0 48 46",
|
|
1638
|
+
fill: "none",
|
|
1639
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
1640
|
+
}, /*#__PURE__*/createElement("path", {
|
|
1641
|
+
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",
|
|
1642
|
+
fill: color
|
|
1643
|
+
}));
|
|
1644
|
+
});
|
|
1645
|
+
|
|
1601
1646
|
var AudioDescription = (function (_ref) {
|
|
1602
1647
|
var _ref$color = _ref.color,
|
|
1603
1648
|
color = _ref$color === void 0 ? '#1A1A1A' : _ref$color;
|
|
@@ -1897,6 +1942,8 @@ var IconLibrary = {
|
|
|
1897
1942
|
Expand: Expand,
|
|
1898
1943
|
ExternalLink: ExternalLink,
|
|
1899
1944
|
Facebook: Facebook,
|
|
1945
|
+
Favourite: Favourite,
|
|
1946
|
+
FavouriteFull: FavouriteFull,
|
|
1900
1947
|
Filter: Filter,
|
|
1901
1948
|
FindAScreening: FindAScreening,
|
|
1902
1949
|
Forward10: Forward10,
|
|
@@ -1928,6 +1975,7 @@ var IconLibrary = {
|
|
|
1928
1975
|
Settings: Settings,
|
|
1929
1976
|
Shift: Shift,
|
|
1930
1977
|
Space: Space,
|
|
1978
|
+
Star: Star,
|
|
1931
1979
|
Subscribe: Subscribe,
|
|
1932
1980
|
Subtitles: Subtitles,
|
|
1933
1981
|
Tick: Tick,
|
|
@@ -4972,12 +5020,21 @@ var PromoWithTitleContentWrapper = /*#__PURE__*/styled.div(_templateObject3$j ||
|
|
|
4972
5020
|
}, devices.mobile);
|
|
4973
5021
|
var PromoWithTitleContainer = /*#__PURE__*/styled.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);
|
|
4974
5022
|
var PromoWithTitleSubtitle = /*#__PURE__*/styled.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"])));
|
|
4975
|
-
var PromoWithTitleText = /*#__PURE__*/styled.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"])))
|
|
4976
|
-
var
|
|
4977
|
-
|
|
4978
|
-
|
|
4979
|
-
|
|
4980
|
-
|
|
5023
|
+
var PromoWithTitleText = /*#__PURE__*/styled.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.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;
|
|
4981
5038
|
var isLinksLayoutColumn = primaryButtonTextLength >= LENGTH_TEXT || tertiaryButtonTextLength >= LENGTH_TEXT;
|
|
4982
5039
|
|
|
4983
5040
|
if (isLinksLayoutColumn) {
|
|
@@ -4985,11 +5042,11 @@ var ButtonsContainer$2 = /*#__PURE__*/styled.div(_templateObject7$7 || (_templat
|
|
|
4985
5042
|
}
|
|
4986
5043
|
|
|
4987
5044
|
return '';
|
|
4988
|
-
}, devices.mobile, devices.tablet, function (
|
|
4989
|
-
var
|
|
4990
|
-
primaryButtonTextLength =
|
|
4991
|
-
|
|
4992
|
-
tertiaryButtonTextLength =
|
|
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;
|
|
4993
5050
|
var isLinksLayoutColumnTablet = primaryButtonTextLength >= LENGTH_TEXT_TABLET$1 || tertiaryButtonTextLength >= LENGTH_TEXT_TABLET$1;
|
|
4994
5051
|
|
|
4995
5052
|
if (isLinksLayoutColumnTablet) {
|
|
@@ -6005,5 +6062,5 @@ var GlobalStyles = /*#__PURE__*/createGlobalStyle(_templateObject$N || (_templat
|
|
|
6005
6062
|
return theme.grid.tablet.margin;
|
|
6006
6063
|
}, devices.desktop, devices.largeDesktop);
|
|
6007
6064
|
|
|
6008
|
-
export { Accordion, Accordions, AltHeader, AnchorTapBar, BodyText, Card, Cards, Carousel, CarouselType, CinemaBadge, Colors, Editorial, Footer, GlobalStyles, Grid, GridItem, Header, HighlightsCarousel, HighlightsCinema as HighlightsCarouselCinema, HighlightsCore as HighlightsCarouselCore, HighlightsStream as HighlightsCarouselStream, Icon, ImageWithCaption, Navigation, Overline, PageHeadingCinema, PageHeadingCore, PageHeadingImpact, PageHeadingStream, PeopleListing, PrimaryButton, PromoWithTitle, RotatorButtons, SecondaryButton, SecondaryLogo, SectionSplitter, SectionTitle, Sponsorship, StreamBadge, Subtitle, TabLink, Tabs, Button$1 as TertiaryButton, TextOnly, Theme as ThemeProvider, ThemeType, TypeTags, devices };
|
|
6065
|
+
export { Accordion, Accordions, AltHeader, AnchorTapBar, AspectRatio, BodyText, Card, Cards, Carousel, CarouselType, CinemaBadge, Colors, Editorial, Footer, GlobalStyles, Grid, GridItem, Header, HighlightsCarousel, HighlightsCinema as HighlightsCarouselCinema, HighlightsCore as HighlightsCarouselCore, HighlightsStream as HighlightsCarouselStream, Icon, ImageAspectRatioWrapper, ImageWithCaption, Navigation, Overline, PageHeadingCinema, PageHeadingCore, PageHeadingImpact, PageHeadingStream, PeopleListing, PrimaryButton, PromoWithTitle, RotatorButtons, SecondaryButton, SecondaryLogo, SectionSplitter, SectionTitle, Sponsorship, StreamBadge, Subtitle, TabLink, Tabs, Button$1 as TertiaryButton, TextOnly, Theme as ThemeProvider, ThemeType, TypeTags, devices };
|
|
6009
6066
|
//# sourceMappingURL=chord.esm.js.map
|