@royaloperahouse/chord 0.7.38 → 0.7.41
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 +10 -0
- package/README.md +1 -1
- package/dist/chord.cjs.development.js +201 -50
- 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 +201 -51
- package/dist/chord.esm.js.map +1 -1
- package/dist/components/index.d.ts +2 -2
- package/dist/components/molecules/PromoWithTags/PromoWithTags.d.ts +4 -0
- package/dist/components/molecules/PromoWithTags/PromoWithTags.style.d.ts +12 -0
- package/dist/components/molecules/PromoWithTags/index.d.ts +2 -0
- package/dist/components/molecules/PromoWithTitle/PromoWithTitle.style.d.ts +0 -5
- package/dist/components/molecules/index.d.ts +2 -1
- package/dist/index.d.ts +2 -2
- package/dist/styles/themes.d.ts +18 -0
- package/dist/types/editorial.d.ts +61 -8
- 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 { AnchorTapBar, 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, PromoWithTitle, SectionTitle, Tabs, TextOnly, Quote } from './molecules';
|
|
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, AnchorTapBar, 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, 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, AnchorTapBar, 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, };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { IEditorialGridProps, IPromoWithTagsStyledProps } from '../../../types/editorial';
|
|
2
|
+
export declare const PromoWithTagsGrid: import("styled-components").StyledComponent<"div", any, IEditorialGridProps, never>;
|
|
3
|
+
export declare const PromoWithTagsImageWrapper: import("styled-components").StyledComponent<"div", any, IEditorialGridProps, never>;
|
|
4
|
+
export declare const PromoWithTagsContentWrapper: import("styled-components").StyledComponent<"div", any, IEditorialGridProps, never>;
|
|
5
|
+
export declare const PromoWithTagsContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
6
|
+
export declare const PromoWithTagsSubtitle: import("styled-components").StyledComponent<"span", any, {}, never>;
|
|
7
|
+
export declare const PromoWithTagsText: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
8
|
+
export declare const ButtonsContainer: import("styled-components").StyledComponent<"div", any, IEditorialGridProps, never>;
|
|
9
|
+
export declare const PromoWithTagsTagWrapper: import("styled-components").StyledComponent<"div", any, IPromoWithTagsStyledProps, never>;
|
|
10
|
+
export declare const PromoWithTagsAdditionalText: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
11
|
+
export declare const TextLinksContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
12
|
+
export declare const TextLinkWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
import { IEditorialGridProps } from '../../../types/editorial';
|
|
2
|
-
interface ITagProps {
|
|
3
|
-
marginBottom: number;
|
|
4
|
-
}
|
|
5
2
|
export declare const PromoWithTitleGrid: import("styled-components").StyledComponent<"div", any, IEditorialGridProps, never>;
|
|
6
3
|
export declare const PromoWithTitleImageWrapper: import("styled-components").StyledComponent<"div", any, IEditorialGridProps, never>;
|
|
7
4
|
export declare const PromoWithTitleContentWrapper: import("styled-components").StyledComponent<"div", any, IEditorialGridProps, never>;
|
|
@@ -9,5 +6,3 @@ export declare const PromoWithTitleContainer: import("styled-components").Styled
|
|
|
9
6
|
export declare const PromoWithTitleSubtitle: import("styled-components").StyledComponent<"span", any, {}, never>;
|
|
10
7
|
export declare const PromoWithTitleText: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
11
8
|
export declare const ButtonsContainer: import("styled-components").StyledComponent<"div", any, IEditorialGridProps, never>;
|
|
12
|
-
export declare const PromoWithTitleTag: import("styled-components").StyledComponent<"div", any, ITagProps, never>;
|
|
13
|
-
export {};
|
|
@@ -7,10 +7,11 @@ import ContactCard from './ContactCard';
|
|
|
7
7
|
import Editorial from './Editorial';
|
|
8
8
|
import { PageHeadingCinema, PageHeadingCore, PageHeadingImpact, PageHeadingStream } from './PageHeading';
|
|
9
9
|
import PeopleListing from './PeopleListing';
|
|
10
|
+
import PromoWithTags from './PromoWithTags';
|
|
10
11
|
import PromoWithTitle from './PromoWithTitle';
|
|
11
12
|
import SectionTitle from './SectionTitle';
|
|
12
13
|
import Tabs from './Tabs';
|
|
13
14
|
import TextOnly from './TextOnly';
|
|
14
15
|
import ImageWithCaption from './ImageWithCaption';
|
|
15
16
|
import Quote from './Quote';
|
|
16
|
-
export { Accordion, Accordions, AnnouncementBanner, Card, Cards, ContactCard, Editorial, ImageWithCaption, PageHeadingCinema, PageHeadingCore, PageHeadingImpact, PageHeadingStream, PeopleListing, PromoWithTitle, SectionTitle, Tabs, TextOnly, Quote, };
|
|
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, AnchorTapBar, 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, 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, AnchorTapBar, 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, AnchorTapBar, 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, 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, AnchorTapBar, 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, };
|
package/dist/styles/themes.d.ts
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
export declare const fontFamilies: {
|
|
2
|
+
adobeGaramondPro: string;
|
|
3
|
+
adobeGaramondProItalics: string;
|
|
4
|
+
gothamSSmMedium: string;
|
|
5
|
+
gothamSSm: string;
|
|
6
|
+
sabonNextLTProRegular: string;
|
|
7
|
+
sabonNextLTProRegularItalics: string;
|
|
8
|
+
sansSerifFallback: string;
|
|
9
|
+
};
|
|
1
10
|
export declare const core: {
|
|
2
11
|
colors: {
|
|
3
12
|
primary: string;
|
|
@@ -2651,4 +2660,13 @@ export declare const themes: {
|
|
|
2651
2660
|
};
|
|
2652
2661
|
};
|
|
2653
2662
|
};
|
|
2663
|
+
fontFamilies: {
|
|
2664
|
+
adobeGaramondPro: string;
|
|
2665
|
+
adobeGaramondProItalics: string;
|
|
2666
|
+
gothamSSmMedium: string;
|
|
2667
|
+
gothamSSm: string;
|
|
2668
|
+
sabonNextLTProRegular: string;
|
|
2669
|
+
sabonNextLTProRegularItalics: string;
|
|
2670
|
+
sansSerifFallback: string;
|
|
2671
|
+
};
|
|
2654
2672
|
};
|
|
@@ -33,6 +33,16 @@ export interface IEditorialGridProps {
|
|
|
33
33
|
* Set the length of tertiary button text
|
|
34
34
|
*/
|
|
35
35
|
tertiaryButtonTextLength?: number;
|
|
36
|
+
/**
|
|
37
|
+
* Indicates if component has block for the text links
|
|
38
|
+
*/
|
|
39
|
+
hasTextLinks?: boolean;
|
|
40
|
+
}
|
|
41
|
+
export interface IPromoWithTagsStyledProps {
|
|
42
|
+
/**
|
|
43
|
+
* Sets margin for the tags container
|
|
44
|
+
*/
|
|
45
|
+
marginBottom?: number;
|
|
36
46
|
}
|
|
37
47
|
export declare type EditorialLink = AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
38
48
|
/**
|
|
@@ -90,14 +100,6 @@ export interface IPromoWithTitleProps {
|
|
|
90
100
|
* Array of buttons props. First one should have PrimaryButton attributes, second one Tertiary button attributes
|
|
91
101
|
*/
|
|
92
102
|
links?: PromoLinks;
|
|
93
|
-
/**
|
|
94
|
-
* Array of tags in the editorial component
|
|
95
|
-
*/
|
|
96
|
-
aboveTitleTags?: string[];
|
|
97
|
-
/**
|
|
98
|
-
* Array of tags in the editorial component
|
|
99
|
-
*/
|
|
100
|
-
underSubTitleTags?: string[];
|
|
101
103
|
}
|
|
102
104
|
export interface IThemePageHeadingProps {
|
|
103
105
|
/**
|
|
@@ -163,3 +165,54 @@ export interface IImpactWrappersStyledProps extends StyledProps<any> {
|
|
|
163
165
|
*/
|
|
164
166
|
bgUrlDevice?: string;
|
|
165
167
|
}
|
|
168
|
+
export interface IPromoWithTagsProps {
|
|
169
|
+
/**
|
|
170
|
+
* Text placed in the editorial component
|
|
171
|
+
*/
|
|
172
|
+
text?: string;
|
|
173
|
+
/**
|
|
174
|
+
* Title placed in the editorial component
|
|
175
|
+
*/
|
|
176
|
+
title: string;
|
|
177
|
+
/**
|
|
178
|
+
* Title size
|
|
179
|
+
*/
|
|
180
|
+
titleSize?: 'small' | 'large';
|
|
181
|
+
/**
|
|
182
|
+
* Subtitle placed in the editorial component
|
|
183
|
+
*/
|
|
184
|
+
subtitle?: string;
|
|
185
|
+
/**
|
|
186
|
+
* Position of the image in the editorial component
|
|
187
|
+
*/
|
|
188
|
+
imagePosition?: 'left' | 'right';
|
|
189
|
+
/**
|
|
190
|
+
* Image tag or component to be displayed in the editorial component with aspect ratio 4:3
|
|
191
|
+
*/
|
|
192
|
+
children: ReactElement<HTMLImageElement>;
|
|
193
|
+
/**
|
|
194
|
+
* Array of buttons props. First one should have PrimaryButton attributes, second one Tertiary button attributes
|
|
195
|
+
*/
|
|
196
|
+
links?: PromoLinks;
|
|
197
|
+
/**
|
|
198
|
+
* Array of buttons props that will be displayed above the main buttons
|
|
199
|
+
*/
|
|
200
|
+
textLinks?: EditorialLink[];
|
|
201
|
+
/**
|
|
202
|
+
/**
|
|
203
|
+
* Array of tags in the editorial component
|
|
204
|
+
*/
|
|
205
|
+
aboveTitleTags?: string[];
|
|
206
|
+
/**
|
|
207
|
+
* Array of tags in the editorial component
|
|
208
|
+
*/
|
|
209
|
+
underTitleTags?: string[];
|
|
210
|
+
/**
|
|
211
|
+
* Text in the middle
|
|
212
|
+
*/
|
|
213
|
+
middleText?: string;
|
|
214
|
+
/**
|
|
215
|
+
* Text in the bottom
|
|
216
|
+
*/
|
|
217
|
+
bottomText?: string;
|
|
218
|
+
}
|