@royaloperahouse/harmonic 0.1.8-f → 0.1.8-h
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/dist/components/molecules/Card/Card.style.d.ts +1 -1
- package/dist/components/molecules/Information/Information.style.d.ts +1 -4
- package/dist/components/molecules/Information/utils.d.ts +4 -3
- package/dist/harmonic.cjs.development.js +37 -20
- package/dist/harmonic.cjs.development.js.map +1 -1
- package/dist/harmonic.cjs.production.min.js +1 -1
- package/dist/harmonic.cjs.production.min.js.map +1 -1
- package/dist/harmonic.esm.js +37 -21
- package/dist/harmonic.esm.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/types/card.d.ts +2 -2
- package/dist/types/index.d.ts +2 -2
- package/dist/types/information.d.ts +7 -4
- package/package.json +1 -1
package/dist/harmonic.esm.js
CHANGED
|
@@ -8606,22 +8606,29 @@ var COLORS$4 = {
|
|
|
8606
8606
|
hover: 'var(--information-panel-button-hover-color)',
|
|
8607
8607
|
pressed: 'var(--information-panel-button-pressed-color)'
|
|
8608
8608
|
};
|
|
8609
|
-
var getTextColor$4 = function getTextColor(variant, colorValue) {
|
|
8610
|
-
|
|
8609
|
+
var getTextColor$4 = function getTextColor(variant, theme, colorValue) {
|
|
8610
|
+
if (theme === ThemeType.Cinema && (variant === InformationCtaVariants.Tertiary || variant === InformationCtaVariants.TextLink)) {
|
|
8611
|
+
return 'var(--color-primary-black)';
|
|
8612
|
+
}
|
|
8613
|
+
if (variant === InformationCtaVariants.Primary) {
|
|
8614
|
+
return COLORS$4["default"];
|
|
8615
|
+
}
|
|
8616
|
+
return colorValue;
|
|
8611
8617
|
};
|
|
8612
8618
|
var getBackgroundColor$2 = function getBackgroundColor(variant, colorValue) {
|
|
8613
|
-
return variant === InformationCtaVariants.Primary ? "background-color: " + colorValue + ";" : '';
|
|
8619
|
+
return variant === InformationCtaVariants.Primary || variant === undefined ? "background-color: " + colorValue + ";" : '';
|
|
8614
8620
|
};
|
|
8615
8621
|
var getBorderColor$1 = function getBorderColor(variant, colorValue) {
|
|
8616
|
-
return variant === InformationCtaVariants.Primary || variant === InformationCtaVariants.Secondary ? "border-color: " + colorValue + ";" : '';
|
|
8622
|
+
return variant === InformationCtaVariants.Primary || variant === InformationCtaVariants.Secondary || variant === undefined ? "border-color: " + colorValue + ";" : '';
|
|
8617
8623
|
};
|
|
8618
8624
|
|
|
8619
8625
|
var _templateObject$Z, _templateObject2$K, _templateObject3$w, _templateObject4$r;
|
|
8620
8626
|
var InfoWrapper$1 = /*#__PURE__*/styled(Grid)(_templateObject$Z || (_templateObject$Z = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n padding: 60px 0;\n color: var(--information-panel-color);\n background-color: var(--information-panel-bg-color);\n\n @media ", " {\n padding: 40px 0;\n }\n"])), devices.mobile);
|
|
8621
8627
|
var InfoTitle = /*#__PURE__*/styled('div')(_templateObject2$K || (_templateObject2$K = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n * {\n margin-block: 0;\n }\n"])));
|
|
8622
8628
|
var InfoCTAWrapper = /*#__PURE__*/styled('div')(_templateObject3$w || (_templateObject3$w = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n margin-top: 32px;\n\n @media ", " {\n margin-top: 16px;\n }\n\n a {\n color: ", ";\n ", "\n ", "\n\n svg path {\n fill: ", ";\n }\n\n :hover:not(:active) {\n color: ", ";\n ", "\n ", "\n\n svg path {\n fill: ", ";\n }\n }\n\n :active {\n color: ", ";\n ", "\n ", "\n\n svg path {\n fill: ", ";\n }\n }\n }\n"])), devices.mobile, function (_ref) {
|
|
8623
|
-
var variant = _ref.variant
|
|
8624
|
-
|
|
8629
|
+
var variant = _ref.variant,
|
|
8630
|
+
theme = _ref.theme;
|
|
8631
|
+
return getTextColor$4(variant, theme, COLORS$4.background);
|
|
8625
8632
|
}, function (_ref2) {
|
|
8626
8633
|
var variant = _ref2.variant;
|
|
8627
8634
|
return getBackgroundColor$2(variant, COLORS$4.background);
|
|
@@ -8629,11 +8636,13 @@ var InfoCTAWrapper = /*#__PURE__*/styled('div')(_templateObject3$w || (_template
|
|
|
8629
8636
|
var variant = _ref3.variant;
|
|
8630
8637
|
return getBorderColor$1(variant, COLORS$4.background);
|
|
8631
8638
|
}, function (_ref4) {
|
|
8632
|
-
var variant = _ref4.variant
|
|
8633
|
-
|
|
8639
|
+
var variant = _ref4.variant,
|
|
8640
|
+
theme = _ref4.theme;
|
|
8641
|
+
return getTextColor$4(variant, theme, COLORS$4.background);
|
|
8634
8642
|
}, function (_ref5) {
|
|
8635
|
-
var variant = _ref5.variant
|
|
8636
|
-
|
|
8643
|
+
var variant = _ref5.variant,
|
|
8644
|
+
theme = _ref5.theme;
|
|
8645
|
+
return getTextColor$4(variant, theme, COLORS$4.hover);
|
|
8637
8646
|
}, function (_ref6) {
|
|
8638
8647
|
var variant = _ref6.variant;
|
|
8639
8648
|
return getBackgroundColor$2(variant, COLORS$4.hover);
|
|
@@ -8641,11 +8650,13 @@ var InfoCTAWrapper = /*#__PURE__*/styled('div')(_templateObject3$w || (_template
|
|
|
8641
8650
|
var variant = _ref7.variant;
|
|
8642
8651
|
return getBorderColor$1(variant, COLORS$4.hover);
|
|
8643
8652
|
}, function (_ref8) {
|
|
8644
|
-
var variant = _ref8.variant
|
|
8645
|
-
|
|
8653
|
+
var variant = _ref8.variant,
|
|
8654
|
+
theme = _ref8.theme;
|
|
8655
|
+
return getTextColor$4(variant, theme, COLORS$4.hover);
|
|
8646
8656
|
}, function (_ref9) {
|
|
8647
|
-
var variant = _ref9.variant
|
|
8648
|
-
|
|
8657
|
+
var variant = _ref9.variant,
|
|
8658
|
+
theme = _ref9.theme;
|
|
8659
|
+
return getTextColor$4(variant, theme, COLORS$4.pressed);
|
|
8649
8660
|
}, function (_ref10) {
|
|
8650
8661
|
var variant = _ref10.variant;
|
|
8651
8662
|
return getBackgroundColor$2(variant, COLORS$4.pressed);
|
|
@@ -8653,8 +8664,9 @@ var InfoCTAWrapper = /*#__PURE__*/styled('div')(_templateObject3$w || (_template
|
|
|
8653
8664
|
var variant = _ref11.variant;
|
|
8654
8665
|
return getBorderColor$1(variant, COLORS$4.pressed);
|
|
8655
8666
|
}, function (_ref12) {
|
|
8656
|
-
var variant = _ref12.variant
|
|
8657
|
-
|
|
8667
|
+
var variant = _ref12.variant,
|
|
8668
|
+
theme = _ref12.theme;
|
|
8669
|
+
return getTextColor$4(variant, theme, COLORS$4.pressed);
|
|
8658
8670
|
});
|
|
8659
8671
|
var InfoBodyWrapper = /*#__PURE__*/styled(BodyCopyHarmonic)(_templateObject4$r || (_templateObject4$r = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: var(--information-panel-color);\n\n a {\n text-decoration: underline;\n color: var(--information-panel-color);\n }\n\n @media ", " {\n padding-top: 4px;\n }\n"])), devices.mobile);
|
|
8660
8672
|
|
|
@@ -8707,9 +8719,11 @@ var InfoCta = function InfoCta(_ref2) {
|
|
|
8707
8719
|
iconName = _ref2.iconName,
|
|
8708
8720
|
iconDirection = _ref2.iconDirection,
|
|
8709
8721
|
_ref2$target = _ref2.target,
|
|
8710
|
-
target = _ref2$target === void 0 ? LinkTarget.Self : _ref2$target
|
|
8722
|
+
target = _ref2$target === void 0 ? LinkTarget.Self : _ref2$target,
|
|
8723
|
+
theme = _ref2.theme;
|
|
8711
8724
|
return /*#__PURE__*/React__default.createElement(InfoCTAWrapper, {
|
|
8712
|
-
variant: variant
|
|
8725
|
+
variant: variant,
|
|
8726
|
+
theme: theme
|
|
8713
8727
|
}, renderButton({
|
|
8714
8728
|
variant: variant,
|
|
8715
8729
|
link: link,
|
|
@@ -8734,7 +8748,8 @@ var Information = function Information(_ref) {
|
|
|
8734
8748
|
var body = _ref.body,
|
|
8735
8749
|
title = _ref.title,
|
|
8736
8750
|
cta = _ref.cta,
|
|
8737
|
-
className = _ref.className
|
|
8751
|
+
className = _ref.className,
|
|
8752
|
+
theme = _ref.theme;
|
|
8738
8753
|
var safeTitle = title || {
|
|
8739
8754
|
text: '',
|
|
8740
8755
|
textSize: 'medium'
|
|
@@ -8772,7 +8787,8 @@ var Information = function Information(_ref) {
|
|
|
8772
8787
|
text: cta.text,
|
|
8773
8788
|
iconName: cta.iconName,
|
|
8774
8789
|
iconDirection: cta.iconDirection,
|
|
8775
|
-
target: cta.target
|
|
8790
|
+
target: cta.target,
|
|
8791
|
+
theme: theme
|
|
8776
8792
|
})))));
|
|
8777
8793
|
};
|
|
8778
8794
|
|
|
@@ -13294,5 +13310,5 @@ var GlobalStyles = /*#__PURE__*/createGlobalStyle(_templateObject$1p || (_templa
|
|
|
13294
13310
|
return theme.footer.tablet.paddingBottom;
|
|
13295
13311
|
}, devices.desktop, devices.largeDesktop);
|
|
13296
13312
|
|
|
13297
|
-
export { Accordion, Accordions, AltHeader, AnchorTabBar, AnnouncementBanner, AspectRatio, AuxiliaryButton, AuxiliaryNav, BodyText, ButtonType, Card, Cards, Carousel, CarouselType, CinemaBadge, Colors, ContactCard, ContentSummary, ControlledDropdown, CreditListing, Editorial, Footer, GlobalStyles, Grid, GridItem, HarmonicThemeProvider, Header, HighlightsCarousel, HighlightsCinema as HighlightsCarouselCinema, HighlightsCore as HighlightsCarouselCore, HighlightsStream as HighlightsCarouselStream, Icon, ImageAspectRatioWrapper, ImageWithCaption, Information, MiniCard, MinimalCarousel, ModalWindow, Navigation, Overline, PageHeadingCinema, PageHeadingCompact, PageHeadingCore, PageHeadingImpact, PageHeadingPanel, PageHeadingPromo, PageHeadingStream, Pagination, PasswordStrength, PeopleListing, PrimaryButton, Progress, PromoWithTags, PromoWithTitle, Quote, Radio, Radio2, RadioGroup, RadioGroup2, ReadMore, RotatorButtons, SearchBar, SecondaryButton, SecondaryLogo, SectionSplitter, SectionTitle, Select, SelectComponent as Select2, SelectComponent$1 as Select2Async, SignUpFormComponent as SignUpForm, Sponsorship, StatusBanner, Component as Stepper, StickyBar, StreamBadge, Subtitle, Tab, TabLink, Table, Tabs, TertiaryButton, TextArea, TextField, TextFieldLegacy, TextLink, TextOnly, Theme as ThemeProvider, ThemeType, Tickbox, Tickbox2, TickboxMode, Timer, TitleWithCTA, TypeTags, UpsellCard, UpsellSection, VideoControls, VideoWithControls$1 as VideoWithControls, breakpoints, devices, zIndexes };
|
|
13313
|
+
export { Accordion, Accordions, AltHeader, AnchorTabBar, AnnouncementBanner, AspectRatio, AuxiliaryButton, AuxiliaryNav, BodyText, ButtonType, Card, Cards, Carousel, CarouselType, CinemaBadge, Colors, ContactCard, ContentSummary, ControlledDropdown, CreditListing, Editorial, Footer, GlobalStyles, Grid, GridItem, HarmonicThemeProvider, Header, HighlightsCarousel, HighlightsCinema as HighlightsCarouselCinema, HighlightsCore as HighlightsCarouselCore, HighlightsStream as HighlightsCarouselStream, Icon, ImageAspectRatioWrapper, ImageWithCaption, Information, MiniCard, MinimalCarousel, ModalWindow, Navigation, Overline, PageHeadingCinema, PageHeadingCompact, PageHeadingCore, PageHeadingImpact, PageHeadingPanel, PageHeadingPromo, PageHeadingStream, Pagination, PasswordStrength, PeopleListing, PrimaryButton, Progress, PromoWithTags, PromoWithTitle, Quote, Radio, Radio2, RadioGroup, RadioGroup2, ReadMore, RotatorButtons, SearchBar, SecondaryButton, SecondaryLogo, SectionSplitter, SectionTitle, Select, SelectComponent as Select2, SelectComponent$1 as Select2Async, SignUpFormComponent as SignUpForm, Sponsorship, StatusBanner, Component as Stepper, StickyBar, StreamBadge, Subtitle, Tab, TabLink, Table, Tabs, TertiaryButton, TextArea, TextField, TextFieldLegacy, TextLink, TextOnly, ThemeColor, Theme as ThemeProvider, ThemeType, Tickbox, Tickbox2, TickboxMode, Timer, TitleWithCTA, TypeTags, UpsellCard, UpsellSection, VideoControls, VideoWithControls$1 as VideoWithControls, breakpoints, devices, zIndexes };
|
|
13298
13314
|
//# sourceMappingURL=harmonic.esm.js.map
|