@royaloperahouse/chord 0.7.48 → 0.7.441
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 +2 -11
- package/dist/chord.cjs.development.js +70 -278
- 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 +71 -278
- package/dist/chord.esm.js.map +1 -1
- package/dist/components/index.d.ts +2 -2
- package/dist/components/molecules/PromoWithTags/PromoWithTags.style.d.ts +1 -5
- package/dist/components/molecules/index.d.ts +1 -2
- package/dist/index.d.ts +2 -2
- package/dist/types/editorial.d.ts +3 -11
- package/dist/types/types.d.ts +0 -1
- package/package.json +1 -1
- package/dist/components/molecules/Information/InfoCta.d.ts +0 -4
- package/dist/components/molecules/Information/Information.d.ts +0 -4
- package/dist/components/molecules/Information/Information.style.d.ts +0 -10
- package/dist/components/molecules/Information/index.d.ts +0 -2
- package/dist/types/information.d.ts +0 -85
|
@@ -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,
|
|
3
|
+
import { Accordion, Accordions, AnnouncementBanner, Card, Cards, ContactCard, Editorial, ImageWithCaption, 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,
|
|
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, };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IEditorialGridProps, IPromoWithTagsStyledProps } from '../../../types/editorial';
|
|
2
2
|
export declare const PromoWithTagsGrid: import("styled-components").StyledComponent<"div", any, IEditorialGridProps, never>;
|
|
3
|
-
export declare const
|
|
3
|
+
export declare const PromoWithTagsImageWrapper: import("styled-components").StyledComponent<"div", any, IEditorialGridProps, never>;
|
|
4
4
|
export declare const PromoWithTagsContentWrapper: import("styled-components").StyledComponent<"div", any, IEditorialGridProps, never>;
|
|
5
5
|
export declare const PromoWithTagsContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
6
6
|
export declare const PromoWithTagsSubtitle: import("styled-components").StyledComponent<"span", any, {}, never>;
|
|
@@ -10,7 +10,3 @@ export declare const PromoWithTagsTagWrapper: import("styled-components").Styled
|
|
|
10
10
|
export declare const PromoWithTagsAdditionalText: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
11
11
|
export declare const TextLinksContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
12
12
|
export declare const TextLinkWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
13
|
-
export declare const ExtraContentWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
14
|
-
export declare const IconWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
15
|
-
export declare const PrimaryButtonWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
16
|
-
export declare const MobileTitleWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -5,7 +5,6 @@ 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';
|
|
9
8
|
import { PageHeadingCinema, PageHeadingCore, PageHeadingImpact, PageHeadingStream } from './PageHeading';
|
|
10
9
|
import PeopleListing from './PeopleListing';
|
|
11
10
|
import PromoWithTags from './PromoWithTags';
|
|
@@ -15,4 +14,4 @@ import Tabs from './Tabs';
|
|
|
15
14
|
import TextOnly from './TextOnly';
|
|
16
15
|
import ImageWithCaption from './ImageWithCaption';
|
|
17
16
|
import Quote from './Quote';
|
|
18
|
-
export { Accordion, Accordions, AnnouncementBanner, Card, Cards, ContactCard, Editorial, ImageWithCaption,
|
|
17
|
+
export { Accordion, Accordions, AnnouncementBanner, Card, Cards, ContactCard, Editorial, ImageWithCaption, 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,
|
|
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';
|
|
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,
|
|
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, };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AnchorHTMLAttributes, MouseEventHandler, ReactElement, ReactNode } from 'react';
|
|
2
2
|
import { StyledProps } from 'styled-components';
|
|
3
3
|
import { DirectionType, IconNameType } from './iconTypes';
|
|
4
|
-
import { Colors
|
|
4
|
+
import { Colors } from './types';
|
|
5
5
|
export interface IEditorialProps {
|
|
6
6
|
/**
|
|
7
7
|
* Text placed in the editorial component
|
|
@@ -37,10 +37,6 @@ export interface IEditorialGridProps {
|
|
|
37
37
|
* Indicates if component has block for the text links
|
|
38
38
|
*/
|
|
39
39
|
hasTextLinks?: boolean;
|
|
40
|
-
/**
|
|
41
|
-
* Indicates if component should be hidden
|
|
42
|
-
*/
|
|
43
|
-
hideSection?: boolean;
|
|
44
40
|
}
|
|
45
41
|
export interface IPromoWithTagsStyledProps {
|
|
46
42
|
/**
|
|
@@ -191,13 +187,9 @@ export interface IPromoWithTagsProps {
|
|
|
191
187
|
*/
|
|
192
188
|
imagePosition?: 'left' | 'right';
|
|
193
189
|
/**
|
|
194
|
-
* Image to be displayed in the editorial component with aspect ratio 4:3
|
|
195
|
-
*/
|
|
196
|
-
image?: Image;
|
|
197
|
-
/**
|
|
198
|
-
* Component to be displayed instead of the image after clicking on the button
|
|
190
|
+
* Image tag or component to be displayed in the editorial component with aspect ratio 4:3
|
|
199
191
|
*/
|
|
200
|
-
children
|
|
192
|
+
children: ReactElement<HTMLImageElement>;
|
|
201
193
|
/**
|
|
202
194
|
* Array of buttons props. First one should have PrimaryButton attributes, second one Tertiary button attributes
|
|
203
195
|
*/
|
package/dist/types/types.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { BackgroundColour, 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
|
-
infoThemed: boolean;
|
|
7
|
-
}, never>;
|
|
8
|
-
export declare const InfoWrapper: import("styled-components").StyledComponent<"div", any, {
|
|
9
|
-
background: BackgroundColour;
|
|
10
|
-
}, never>;
|
|
@@ -1,85 +0,0 @@
|
|
|
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 enum BackgroundColour {
|
|
18
|
-
Cinema = "cinema",
|
|
19
|
-
Core = "core",
|
|
20
|
-
Stream = "stream",
|
|
21
|
-
White = "white"
|
|
22
|
-
}
|
|
23
|
-
export declare type TitleTextSize = 3 | 4 | 5 | 6;
|
|
24
|
-
export interface CTAProps {
|
|
25
|
-
/**
|
|
26
|
-
* Text to display on the CTA
|
|
27
|
-
*/
|
|
28
|
-
text: string;
|
|
29
|
-
/**
|
|
30
|
-
* Link for the CTA
|
|
31
|
-
*/
|
|
32
|
-
link: string;
|
|
33
|
-
/**
|
|
34
|
-
* Style of the CTA. Choices are "Primary" (solid button background), "Secondary" (transparent button background) or "Tertiary" (text only)
|
|
35
|
-
*/
|
|
36
|
-
variant?: CtaVariant;
|
|
37
|
-
/**
|
|
38
|
-
* Theme to use for the CTA. Choices are "Core" (red), "Stream" (blue), or "Cinema" (black)
|
|
39
|
-
*/
|
|
40
|
-
theme?: CtaTheme;
|
|
41
|
-
/**
|
|
42
|
-
* Flag to decide whether to adjust the CTA colours for display on coloured backgrounds
|
|
43
|
-
*/
|
|
44
|
-
infoThemed: boolean;
|
|
45
|
-
/**
|
|
46
|
-
* Name of the icon to be used in the button
|
|
47
|
-
*/
|
|
48
|
-
iconName?: IconNameType;
|
|
49
|
-
/**
|
|
50
|
-
* Direction of the icon used in the button
|
|
51
|
-
*/
|
|
52
|
-
iconDirection?: DirectionType;
|
|
53
|
-
}
|
|
54
|
-
export interface TitleProps {
|
|
55
|
-
/**
|
|
56
|
-
* Title text to display
|
|
57
|
-
*/
|
|
58
|
-
text: string;
|
|
59
|
-
/**
|
|
60
|
-
* Title typography type. Choices are Heading or AltHeader
|
|
61
|
-
*/
|
|
62
|
-
variant: TitleVariant;
|
|
63
|
-
/**
|
|
64
|
-
* The size of the title text
|
|
65
|
-
*/
|
|
66
|
-
textSize: TitleTextSize;
|
|
67
|
-
}
|
|
68
|
-
export interface IInformationProps {
|
|
69
|
-
/**
|
|
70
|
-
* Main body text to display in the Information Component
|
|
71
|
-
*/
|
|
72
|
-
body: string;
|
|
73
|
-
/**
|
|
74
|
-
* Optional CTA to display underneath the body text
|
|
75
|
-
*/
|
|
76
|
-
cta?: CTAProps;
|
|
77
|
-
/**
|
|
78
|
-
* Title options for the component
|
|
79
|
-
*/
|
|
80
|
-
title: TitleProps;
|
|
81
|
-
/**
|
|
82
|
-
* Background Colour. Choices: None, Core, Cinema, Stream
|
|
83
|
-
*/
|
|
84
|
-
background?: BackgroundColour;
|
|
85
|
-
}
|