@royaloperahouse/chord 1.5.0 → 1.6.0
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 +9 -3
- package/README.GIT +209 -56
- package/README.md +1 -1
- package/dist/chord.cjs.development.js +6 -4
- 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 +6 -4
- package/dist/chord.esm.js.map +1 -1
- package/dist/components/index.d.ts +2 -2
- package/dist/components/molecules/PageHeading/Highlight/Highlight.d.ts +5 -0
- package/dist/components/molecules/PageHeading/Highlight/Highlight.style.d.ts +14 -0
- package/dist/components/molecules/PageHeading/Highlight/index.d.ts +2 -0
- package/dist/components/molecules/PageHeading/index.d.ts +2 -1
- package/dist/components/molecules/index.d.ts +2 -2
- package/dist/components/organisms/AnchorTabBar/AnchorTabBar.style.d.ts +1 -1
- package/dist/types/editorial.d.ts +19 -1
- package/package.json +4 -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, Information, 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, PageHeadingHighlight, 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, 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, };
|
|
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, PageHeadingHighlight, 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,14 @@
|
|
|
1
|
+
interface HighlightsInfoWrapperProps {
|
|
2
|
+
hasImages: boolean;
|
|
3
|
+
}
|
|
4
|
+
interface HighlightsCarouselWrapperProps {
|
|
5
|
+
hasMultipleImages: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare const HighlightsGrid: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
8
|
+
export declare const HighlightTitleWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
9
|
+
export declare const HighlightTextWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
10
|
+
export declare const HighlightsInfoWrapper: import("styled-components").StyledComponent<"div", any, HighlightsInfoWrapperProps, never>;
|
|
11
|
+
export declare const HighlightsCarouselWrapper: import("styled-components").StyledComponent<"div", any, HighlightsCarouselWrapperProps, never>;
|
|
12
|
+
export declare const MobileRotatorButtonsWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
13
|
+
export declare const RotatorButtonsWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
14
|
+
export {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import PageHeadingCore from './Core';
|
|
2
2
|
import PageHeadingCinema from './Cinema';
|
|
3
|
+
import PageHeadingHighlight from './Highlight';
|
|
3
4
|
import PageHeadingImpact from './Impact';
|
|
4
5
|
import PageHeadingStream from './Stream';
|
|
5
|
-
export { PageHeadingCinema, PageHeadingCore, PageHeadingImpact, PageHeadingStream };
|
|
6
|
+
export { PageHeadingCinema, PageHeadingCore, PageHeadingHighlight, PageHeadingImpact, PageHeadingStream };
|
|
@@ -6,7 +6,7 @@ import Cards from './Cards';
|
|
|
6
6
|
import ContactCard from './ContactCard';
|
|
7
7
|
import Editorial from './Editorial';
|
|
8
8
|
import Information from './Information';
|
|
9
|
-
import { PageHeadingCinema, PageHeadingCore, PageHeadingImpact, PageHeadingStream } from './PageHeading';
|
|
9
|
+
import { PageHeadingCinema, PageHeadingCore, PageHeadingHighlight, PageHeadingImpact, PageHeadingStream } from './PageHeading';
|
|
10
10
|
import PeopleListing from './PeopleListing';
|
|
11
11
|
import PromoWithTags from './PromoWithTags';
|
|
12
12
|
import PromoWithTitle from './PromoWithTitle';
|
|
@@ -15,4 +15,4 @@ import Tabs from './Tabs';
|
|
|
15
15
|
import TextOnly from './TextOnly';
|
|
16
16
|
import ImageWithCaption from './ImageWithCaption';
|
|
17
17
|
import Quote from './Quote';
|
|
18
|
-
export { Accordion, Accordions, AnnouncementBanner, Card, Cards, ContactCard, Editorial, ImageWithCaption, Information, 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, PageHeadingHighlight, PageHeadingStream, PeopleListing, PromoWithTags, PromoWithTitle, SectionTitle, Tabs, TextOnly, Quote, };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IAnchorTabsListProps } from '../../../types/navigation';
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const AnchorTabbarWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
3
3
|
export declare const TabsGrid: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
4
4
|
export declare const TabsWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
5
5
|
export declare const TabsList: import("styled-components").StyledComponent<"ul", any, IAnchorTabsListProps, never>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AnchorHTMLAttributes, MouseEventHandler, ReactElement, ReactNode } from 'react';
|
|
1
|
+
import { AnchorHTMLAttributes, ImgHTMLAttributes, MouseEventHandler, ReactElement, ReactNode } from 'react';
|
|
2
2
|
import { StyledProps } from 'styled-components';
|
|
3
3
|
import { ButtonType } from './buttonTypes';
|
|
4
4
|
import { DirectionType, IconNameType } from './iconTypes';
|
|
@@ -215,3 +215,21 @@ export interface IPromoWithTagsProps {
|
|
|
215
215
|
*/
|
|
216
216
|
disabledCTACopy?: string;
|
|
217
217
|
}
|
|
218
|
+
export interface IHighlightsHeaderProps {
|
|
219
|
+
/**
|
|
220
|
+
* Text placed in the editorial component
|
|
221
|
+
*/
|
|
222
|
+
title: string;
|
|
223
|
+
/**
|
|
224
|
+
* Subtitle placed in the editorial component
|
|
225
|
+
*/
|
|
226
|
+
subtitle?: string;
|
|
227
|
+
/**
|
|
228
|
+
* Text placed in the editorial component
|
|
229
|
+
*/
|
|
230
|
+
text?: string;
|
|
231
|
+
/**
|
|
232
|
+
* Explanation
|
|
233
|
+
*/
|
|
234
|
+
images?: Array<ImgHTMLAttributes<HTMLImageElement>>;
|
|
235
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@royaloperahouse/chord",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.6.0",
|
|
4
4
|
"author": "Royal Opera House",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -21,7 +21,9 @@
|
|
|
21
21
|
"size": "size-limit",
|
|
22
22
|
"analyze": "size-limit --why",
|
|
23
23
|
"storybook": "start-storybook -s ./external -p 6006",
|
|
24
|
+
"build-storybook-dev": "build-storybook",
|
|
24
25
|
"build-storybook": "rm -rf ./storybook-static; build-storybook -s ./src -o ./storybook-static; cp -r ./external/ ./storybook-static/",
|
|
26
|
+
"deploy-storybook-dev": "chromatic --build-script-name build-storybook-dev",
|
|
25
27
|
"deploy-storybook": "storybook-to-aws-s3 --bucket-path=chord.roh.org.uk --aws-profile=parent --existing-output-dir=storybook-static --s3-sync-options=--acl=public-read",
|
|
26
28
|
"test-storybook": "tsdx test --json --passWithNoTests --outputFile=./test/jest-test-results.json",
|
|
27
29
|
"publish-release": "make prepare-release-candidate; make publish-release",
|
|
@@ -92,6 +94,7 @@
|
|
|
92
94
|
"@types/swiper": "^5.4.3",
|
|
93
95
|
"@types/testing-library__jest-dom": "^5.14.1",
|
|
94
96
|
"babel-loader": "^8.2.3",
|
|
97
|
+
"chromatic": "^6.11.4",
|
|
95
98
|
"husky": "^7.0.4",
|
|
96
99
|
"react": "^17.0.2",
|
|
97
100
|
"react-dom": "^17.0.2",
|