@royaloperahouse/chord 0.7.45 → 0.7.46
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 +3 -0
- package/dist/chord.cjs.development.js +192 -40
- 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 +192 -41
- package/dist/chord.esm.js.map +1 -1
- package/dist/components/index.d.ts +2 -2
- package/dist/components/molecules/Information/InfoCta.d.ts +4 -0
- package/dist/components/molecules/Information/Information.d.ts +4 -0
- package/dist/components/molecules/Information/Information.style.d.ts +10 -0
- package/dist/components/molecules/Information/index.d.ts +2 -0
- package/dist/components/molecules/index.d.ts +2 -1
- package/dist/index.d.ts +2 -2
- package/dist/types/information.d.ts +79 -0
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AltHeader, BodyText, CinemaBadge, ControlledDropdown, Grid, GridItem, Header, Icon, ImageAspectRatioWrapper, Overline, PrimaryButton, RotatorButtons, SecondaryButton, SecondaryLogo, TertiaryButton, SectionSplitter, Sponsorship, StreamBadge, Subtitle, Tab, TabLink, TextLink, Tickbox, TypeTags } from './atoms';
|
|
2
2
|
import { AnchorTabBar, Carousel, Footer, HighlightsCarousel, HighlightsCarouselCinema, HighlightsCarouselCore, HighlightsCarouselStream, LiveChat, Navigation, StickyBar, TitleWithCTA } from './organisms';
|
|
3
|
-
import { Accordion, Accordions, AnnouncementBanner, Card, Cards, ContactCard, Editorial, ImageWithCaption, PageHeadingCinema, PageHeadingCore, PageHeadingImpact, PageHeadingStream, PeopleListing, PromoWithTags, PromoWithTitle, SectionTitle, Tabs, TextOnly, Quote } from './molecules';
|
|
3
|
+
import { Accordion, Accordions, AnnouncementBanner, Card, Cards, ContactCard, Editorial, ImageWithCaption, Information, PageHeadingCinema, PageHeadingCore, PageHeadingImpact, PageHeadingStream, PeopleListing, PromoWithTags, PromoWithTitle, SectionTitle, Tabs, TextOnly, Quote } from './molecules';
|
|
4
4
|
import ThemeProvider from '../styles/ThemeProvider';
|
|
5
5
|
import GlobalStyles from '../styles/GlobalStyles';
|
|
6
|
-
export { Accordion, Accordions, AnnouncementBanner, AltHeader, AnchorTabBar, BodyText, Card, Cards, ContactCard, Carousel, CinemaBadge, ControlledDropdown, Editorial, Footer, GlobalStyles, Grid, GridItem, Header, HighlightsCarousel, HighlightsCarouselCinema, HighlightsCarouselCore, HighlightsCarouselStream, Icon, ImageAspectRatioWrapper, ImageWithCaption, Navigation, Overline, PageHeadingCinema, PageHeadingCore, PageHeadingImpact, PageHeadingStream, PeopleListing, PrimaryButton, PromoWithTags, PromoWithTitle, RotatorButtons, SecondaryButton, SecondaryLogo, SectionTitle, Sponsorship, StickyBar, StreamBadge, Subtitle, TertiaryButton, TextOnly, ThemeProvider, TitleWithCTA, SectionSplitter, Tab, TabLink, Tabs, TextLink, Tickbox, TypeTags, Quote, LiveChat, };
|
|
6
|
+
export { Accordion, Accordions, AnnouncementBanner, AltHeader, AnchorTabBar, BodyText, Card, Cards, ContactCard, Carousel, CinemaBadge, ControlledDropdown, Editorial, Footer, GlobalStyles, Grid, GridItem, Header, HighlightsCarousel, HighlightsCarouselCinema, HighlightsCarouselCore, HighlightsCarouselStream, Icon, ImageAspectRatioWrapper, ImageWithCaption, Information, Navigation, Overline, PageHeadingCinema, PageHeadingCore, PageHeadingImpact, PageHeadingStream, PeopleListing, PrimaryButton, PromoWithTags, PromoWithTitle, RotatorButtons, SecondaryButton, SecondaryLogo, SectionTitle, Sponsorship, StickyBar, StreamBadge, Subtitle, TertiaryButton, TextOnly, ThemeProvider, TitleWithCTA, SectionSplitter, Tab, TabLink, Tabs, TextLink, Tickbox, TypeTags, Quote, LiveChat, };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { CtaVariant } from '../../../types/information';
|
|
2
|
+
export declare const InfoContent: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
3
|
+
export declare const InfoTitle: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
4
|
+
export declare const InfoCTAWrapper: import("styled-components").StyledComponent<"div", any, {
|
|
5
|
+
variant: CtaVariant;
|
|
6
|
+
important: boolean;
|
|
7
|
+
}, never>;
|
|
8
|
+
export declare const InfoWrapper: import("styled-components").StyledComponent<"div", any, {
|
|
9
|
+
important: boolean;
|
|
10
|
+
}, never>;
|
|
@@ -5,6 +5,7 @@ import Card from './Card';
|
|
|
5
5
|
import Cards from './Cards';
|
|
6
6
|
import ContactCard from './ContactCard';
|
|
7
7
|
import Editorial from './Editorial';
|
|
8
|
+
import Information from './Information';
|
|
8
9
|
import { PageHeadingCinema, PageHeadingCore, PageHeadingImpact, PageHeadingStream } from './PageHeading';
|
|
9
10
|
import PeopleListing from './PeopleListing';
|
|
10
11
|
import PromoWithTags from './PromoWithTags';
|
|
@@ -14,4 +15,4 @@ import Tabs from './Tabs';
|
|
|
14
15
|
import TextOnly from './TextOnly';
|
|
15
16
|
import ImageWithCaption from './ImageWithCaption';
|
|
16
17
|
import Quote from './Quote';
|
|
17
|
-
export { Accordion, Accordions, AnnouncementBanner, Card, Cards, ContactCard, Editorial, ImageWithCaption, PageHeadingCinema, PageHeadingCore, PageHeadingImpact, PageHeadingStream, PeopleListing, PromoWithTags, PromoWithTitle, SectionTitle, Tabs, TextOnly, Quote, };
|
|
18
|
+
export { Accordion, Accordions, AnnouncementBanner, Card, Cards, ContactCard, Editorial, ImageWithCaption, Information, PageHeadingCinema, PageHeadingCore, PageHeadingImpact, PageHeadingStream, PeopleListing, PromoWithTags, PromoWithTitle, SectionTitle, Tabs, TextOnly, Quote, };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Accordion, Accordions, AnnouncementBanner, AltHeader, AnchorTabBar, BodyText, Card, Cards, Carousel, CinemaBadge, ContactCard, ControlledDropdown, Editorial, Footer, GlobalStyles, Grid, GridItem, Header, HighlightsCarousel, HighlightsCarouselCinema, HighlightsCarouselCore, HighlightsCarouselStream, Icon, ImageAspectRatioWrapper, ImageWithCaption, LiveChat, Navigation, Overline, PageHeadingCinema, PageHeadingCore, PageHeadingImpact, PageHeadingStream, PeopleListing, PrimaryButton, PromoWithTags, PromoWithTitle, RotatorButtons, SecondaryButton, SecondaryLogo, SectionSplitter, SectionTitle, Sponsorship, StickyBar, StreamBadge, Subtitle, TertiaryButton, TextOnly, ThemeProvider, TitleWithCTA, Tab, TabLink, Tabs, TextLink, Tickbox, TypeTags, Quote } from './components';
|
|
1
|
+
import { Accordion, Accordions, AnnouncementBanner, AltHeader, AnchorTabBar, BodyText, Card, Cards, Carousel, CinemaBadge, ContactCard, ControlledDropdown, Editorial, Footer, GlobalStyles, Grid, GridItem, Header, HighlightsCarousel, HighlightsCarouselCinema, HighlightsCarouselCore, HighlightsCarouselStream, Icon, ImageAspectRatioWrapper, ImageWithCaption, Information, LiveChat, Navigation, Overline, PageHeadingCinema, PageHeadingCore, PageHeadingImpact, PageHeadingStream, PeopleListing, PrimaryButton, PromoWithTags, PromoWithTitle, RotatorButtons, SecondaryButton, SecondaryLogo, SectionSplitter, SectionTitle, Sponsorship, StickyBar, StreamBadge, Subtitle, TertiaryButton, TextOnly, ThemeProvider, TitleWithCTA, Tab, TabLink, Tabs, TextLink, Tickbox, TypeTags, Quote } from './components';
|
|
2
2
|
import { devices } from './styles/viewports';
|
|
3
3
|
import { AspectRatio, CarouselType, Colors, IconNameType, TickboxMode, ThemeType } from './types';
|
|
4
|
-
export { Accordion, Accordions, AnnouncementBanner, AltHeader, AnchorTabBar, AspectRatio, BodyText, Card, Cards, Carousel, CarouselType, CinemaBadge, Colors, ContactCard, ControlledDropdown, devices, Editorial, Footer, GlobalStyles, Grid, GridItem, Header, HighlightsCarousel, HighlightsCarouselCinema, HighlightsCarouselCore, HighlightsCarouselStream, Icon, IconNameType, ImageAspectRatioWrapper, ImageWithCaption, LiveChat, Navigation, Overline, PageHeadingCinema, PageHeadingCore, PageHeadingImpact, PageHeadingStream, PeopleListing, PrimaryButton, PromoWithTags, PromoWithTitle, RotatorButtons, SecondaryButton, SecondaryLogo, SectionSplitter, SectionTitle, Sponsorship, StickyBar, StreamBadge, Subtitle, Tab, TabLink, Tabs, TertiaryButton, TextLink, TextOnly, ThemeProvider, ThemeType, TitleWithCTA, Tickbox, TickboxMode, TypeTags, Quote, };
|
|
4
|
+
export { Accordion, Accordions, AnnouncementBanner, AltHeader, AnchorTabBar, AspectRatio, BodyText, Card, Cards, Carousel, CarouselType, CinemaBadge, Colors, ContactCard, ControlledDropdown, devices, Editorial, Footer, GlobalStyles, Grid, GridItem, Header, HighlightsCarousel, HighlightsCarouselCinema, HighlightsCarouselCore, HighlightsCarouselStream, Icon, IconNameType, ImageAspectRatioWrapper, ImageWithCaption, Information, LiveChat, Navigation, Overline, PageHeadingCinema, PageHeadingCore, PageHeadingImpact, PageHeadingStream, PeopleListing, PrimaryButton, PromoWithTags, PromoWithTitle, RotatorButtons, SecondaryButton, SecondaryLogo, SectionSplitter, SectionTitle, Sponsorship, StickyBar, StreamBadge, Subtitle, Tab, TabLink, Tabs, TertiaryButton, TextLink, TextOnly, ThemeProvider, ThemeType, TitleWithCTA, Tickbox, TickboxMode, TypeTags, Quote, };
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { DirectionType, IconNameType } from './iconTypes';
|
|
2
|
+
export declare enum CtaVariant {
|
|
3
|
+
Primary = "Primary",
|
|
4
|
+
Secondary = "Secondary",
|
|
5
|
+
Tertiary = "Tertiary",
|
|
6
|
+
TextLink = "TextLink"
|
|
7
|
+
}
|
|
8
|
+
export declare enum CtaTheme {
|
|
9
|
+
Cinema = "Cinema",
|
|
10
|
+
Core = "Core",
|
|
11
|
+
Stream = "Stream"
|
|
12
|
+
}
|
|
13
|
+
export declare enum TitleVariant {
|
|
14
|
+
Header = "Header",
|
|
15
|
+
AltHeader = "AltHeader"
|
|
16
|
+
}
|
|
17
|
+
export declare type TitleTextSize = 3 | 4 | 5 | 6;
|
|
18
|
+
export interface CTAProps {
|
|
19
|
+
/**
|
|
20
|
+
* Text to display on the CTA
|
|
21
|
+
*/
|
|
22
|
+
text: string;
|
|
23
|
+
/**
|
|
24
|
+
* Link for the CTA
|
|
25
|
+
*/
|
|
26
|
+
link: string;
|
|
27
|
+
/**
|
|
28
|
+
* Style of the CTA. Choices are "Primary" (solid button background), "Secondary" (transparent button background) or "Tertiary" (text only)
|
|
29
|
+
*/
|
|
30
|
+
variant?: CtaVariant;
|
|
31
|
+
/**
|
|
32
|
+
* Theme to use for the CTA. Choices are "Core" (red), "Stream" (blue), or "Cinema" (black)
|
|
33
|
+
*/
|
|
34
|
+
theme?: CtaTheme;
|
|
35
|
+
/**
|
|
36
|
+
* Adjust the CTA colours for display on Core Red backgrounds
|
|
37
|
+
*/
|
|
38
|
+
important?: boolean;
|
|
39
|
+
/**
|
|
40
|
+
* Name of the icon to be used in the button
|
|
41
|
+
*/
|
|
42
|
+
iconName?: IconNameType;
|
|
43
|
+
/**
|
|
44
|
+
* Direction of the icon used in the button
|
|
45
|
+
*/
|
|
46
|
+
iconDirection?: DirectionType;
|
|
47
|
+
}
|
|
48
|
+
export interface TitleProps {
|
|
49
|
+
/**
|
|
50
|
+
* Title text to display
|
|
51
|
+
*/
|
|
52
|
+
text: string;
|
|
53
|
+
/**
|
|
54
|
+
* Title typography type. Choices are Heading or AltHeader
|
|
55
|
+
*/
|
|
56
|
+
variant: TitleVariant;
|
|
57
|
+
/**
|
|
58
|
+
* The size of the title text
|
|
59
|
+
*/
|
|
60
|
+
textSize: TitleTextSize;
|
|
61
|
+
}
|
|
62
|
+
export interface IInformationProps {
|
|
63
|
+
/**
|
|
64
|
+
* Main body text to display in the Information Component
|
|
65
|
+
*/
|
|
66
|
+
body: string;
|
|
67
|
+
/**
|
|
68
|
+
* Optional CTA to display underneath the body text
|
|
69
|
+
*/
|
|
70
|
+
cta?: CTAProps;
|
|
71
|
+
/**
|
|
72
|
+
* Title options for the component
|
|
73
|
+
*/
|
|
74
|
+
title: TitleProps;
|
|
75
|
+
/**
|
|
76
|
+
* Mark the component as important
|
|
77
|
+
*/
|
|
78
|
+
important: boolean;
|
|
79
|
+
}
|