@royaloperahouse/chord 0.6.0 → 0.7.3

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.
@@ -2,6 +2,7 @@ import { PrimaryButton, SecondaryButton, TertiaryButton } from './Buttons';
2
2
  import { Grid, GridItem } from './Grid';
3
3
  import { Icon } from './Icons';
4
4
  import { CinemaBadge, StreamBadge } from './Badge';
5
+ import ControlledDropdown from './ControlledDropdown';
5
6
  import SecondaryLogo from './SecondaryLogo';
6
7
  import SponsorLogo from './SponsorLogo';
7
8
  import Sponsorship from './Sponsorship';
@@ -9,8 +10,9 @@ import SectionSplitter from './SectionSplitter';
9
10
  import ImageAspectRatioWrapper from './ImageAspectRatioWrapper';
10
11
  import Tab from './Tab';
11
12
  import TabLink from './TabLink';
13
+ import TextLink from './TextLink';
12
14
  import Tickbox from './Tickbox';
13
15
  import TypeTags from './TypeTags';
14
16
  import RotatorButtons from './RotatorButtons';
15
17
  import { AltHeader, BodyText, Header, Overline, Subtitle } from './Typography';
16
- export { AltHeader, BodyText, CinemaBadge, Grid, GridItem, Header, Icon, ImageAspectRatioWrapper, Overline, PrimaryButton, RotatorButtons, SecondaryButton, SecondaryLogo, SectionSplitter, SponsorLogo, Sponsorship, StreamBadge, Subtitle, Tab, TabLink, TertiaryButton, Tickbox, TypeTags, };
18
+ export { AltHeader, BodyText, CinemaBadge, ControlledDropdown, Grid, GridItem, Header, Icon, ImageAspectRatioWrapper, Overline, PrimaryButton, RotatorButtons, SecondaryButton, SecondaryLogo, SectionSplitter, SponsorLogo, Sponsorship, StreamBadge, Subtitle, Tab, TabLink, TertiaryButton, TextLink, Tickbox, TypeTags, };
@@ -1,6 +1,6 @@
1
- import { AltHeader, BodyText, CinemaBadge, Grid, GridItem, Header, Icon, ImageAspectRatioWrapper, Overline, PrimaryButton, RotatorButtons, SecondaryButton, SecondaryLogo, TertiaryButton, SectionSplitter, Sponsorship, StreamBadge, Subtitle, Tab, TabLink, Tickbox, TypeTags } from './atoms';
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, HighlightsCarousel, HighlightsCarouselCinema, HighlightsCarouselCore, HighlightsCarouselStream, Carousel, Footer, Navigation, TitleWithCTA } from './organisms';
3
3
  import { Accordion, Accordions, Card, Cards, Editorial, ImageWithCaption, PageHeadingCinema, PageHeadingCore, PageHeadingImpact, PageHeadingStream, PeopleListing, PromoWithTitle, SectionTitle, Tabs, TextOnly } from './molecules';
4
4
  import ThemeProvider from '../styles/ThemeProvider';
5
5
  import GlobalStyles from '../styles/GlobalStyles';
6
- export { Accordion, Accordions, AltHeader, AnchorTapBar, BodyText, Card, Cards, Carousel, CinemaBadge, 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, StreamBadge, Subtitle, TertiaryButton, TextOnly, ThemeProvider, TitleWithCTA, SectionSplitter, Tab, TabLink, Tabs, Tickbox, TypeTags, };
6
+ export { Accordion, Accordions, AltHeader, AnchorTapBar, BodyText, Card, Cards, 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, StreamBadge, Subtitle, TertiaryButton, TextOnly, ThemeProvider, TitleWithCTA, SectionSplitter, Tab, TabLink, Tabs, TextLink, Tickbox, TypeTags, };
@@ -1,3 +1,3 @@
1
1
  import { IPeopleListing } from '../../../types/types';
2
- declare const PeopleListing: ({ people }: IPeopleListing) => JSX.Element;
2
+ declare const PeopleListing: ({ roles }: IPeopleListing) => JSX.Element;
3
3
  export default PeopleListing;
@@ -1,2 +1,3 @@
1
- declare const PeopleListingGrid: import("styled-components").StyledComponent<"div", any, {}, never>;
2
- export default PeopleListingGrid;
1
+ export declare const PeopleListingGrid: import("styled-components").StyledComponent<"div", any, {}, never>;
2
+ export declare const RoleWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
3
+ export declare const PersonLink: import("styled-components").StyledComponent<"a", any, {}, never>;
@@ -0,0 +1,7 @@
1
+ import { FunctionComponent } from 'react';
2
+ import { ListingPerson } from '../../../types/types';
3
+ declare const Person: FunctionComponent<{
4
+ person: ListingPerson;
5
+ withSeparator: boolean;
6
+ }>;
7
+ export default Person;
@@ -3,6 +3,7 @@ import { ITitleCTAProps } from '../../../types/navigation';
3
3
  export declare const TitleCTAGridWrapper: import("styled-components").StyledComponent<"div", any, ITitleCTAProps, never>;
4
4
  export declare const CTAGridWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
5
5
  export declare const AnchorTitle: import("styled-components").StyledComponent<"div", any, {}, never>;
6
+ export declare const GridItemTitleWrapper: import("styled-components").StyledComponent<"div", any, import("../../../types/types").IGridItemProps, never>;
6
7
  export declare const ButtonsDesktopGridItem: import("styled-components").StyledComponent<"div", any, import("../../../types/types").IGridItemProps, never>;
7
8
  export declare const ButtonsMobileWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
8
9
  export declare const PrimaryButtonReverse: import("styled-components").StyledComponent<import("react").FunctionComponent<import("../../../types/buttonTypes").IPrimaryButtonProps>, any, {}, never>;
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { Accordion, Accordions, AltHeader, AnchorTapBar, BodyText, Card, Cards, Carousel, CinemaBadge, 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, SectionSplitter, SectionTitle, Sponsorship, StreamBadge, Subtitle, TertiaryButton, TextOnly, ThemeProvider, TitleWithCTA, Tab, TabLink, Tabs, Tickbox, TypeTags } from './components';
1
+ import { Accordion, Accordions, AltHeader, AnchorTapBar, BodyText, Card, Cards, 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, SectionSplitter, SectionTitle, Sponsorship, StreamBadge, Subtitle, TertiaryButton, TextOnly, ThemeProvider, TitleWithCTA, Tab, TabLink, Tabs, TextLink, Tickbox, TypeTags } from './components';
2
2
  import { devices } from './styles/viewports';
3
3
  import { AspectRatio, CarouselType, Colors, IconNameType, TickboxMode, ThemeType } from './types';
4
- export { Accordion, Accordions, AltHeader, AnchorTapBar, AspectRatio, BodyText, Card, Cards, Carousel, CarouselType, CinemaBadge, Colors, devices, Editorial, Footer, GlobalStyles, Grid, GridItem, Header, HighlightsCarousel, HighlightsCarouselCinema, HighlightsCarouselCore, HighlightsCarouselStream, Icon, IconNameType, ImageAspectRatioWrapper, ImageWithCaption, Navigation, Overline, PageHeadingCinema, PageHeadingCore, PageHeadingImpact, PageHeadingStream, PeopleListing, PrimaryButton, PromoWithTitle, RotatorButtons, SecondaryButton, SecondaryLogo, SectionSplitter, SectionTitle, Sponsorship, StreamBadge, Subtitle, Tab, TabLink, Tabs, TertiaryButton, TextOnly, ThemeProvider, ThemeType, TitleWithCTA, Tickbox, TickboxMode, TypeTags, };
4
+ export { Accordion, Accordions, AltHeader, AnchorTapBar, AspectRatio, BodyText, Card, Cards, Carousel, CarouselType, CinemaBadge, Colors, ControlledDropdown, devices, Editorial, Footer, GlobalStyles, Grid, GridItem, Header, HighlightsCarousel, HighlightsCarouselCinema, HighlightsCarouselCore, HighlightsCarouselStream, Icon, IconNameType, ImageAspectRatioWrapper, ImageWithCaption, Navigation, Overline, PageHeadingCinema, PageHeadingCore, PageHeadingImpact, PageHeadingStream, PeopleListing, PrimaryButton, PromoWithTitle, RotatorButtons, SecondaryButton, SecondaryLogo, SectionSplitter, SectionTitle, Sponsorship, StreamBadge, Subtitle, Tab, TabLink, Tabs, TertiaryButton, TextLink, TextOnly, ThemeProvider, ThemeType, TitleWithCTA, Tickbox, TickboxMode, TypeTags, };
@@ -237,14 +237,39 @@ export interface IControlledDropdownHeaderProps extends StyledProps<any> {
237
237
  */
238
238
  active: boolean;
239
239
  }
240
- export interface IIndividualListing {
241
- role: string;
240
+ export declare type ListingPerson = {
241
+ /**
242
+ * Person name
243
+ */
242
244
  name: string;
245
+ /**
246
+ * Link to person profile
247
+ */
243
248
  link?: string;
249
+ /**
250
+ * String separator
251
+ */
252
+ separator?: string;
253
+ };
254
+ export declare type ListingRole = {
255
+ /**
256
+ * Role name
257
+ */
258
+ name: string;
259
+ /**
260
+ * List of people in the role
261
+ */
262
+ people: ListingPerson[];
263
+ /**
264
+ * Data roh param
265
+ */
244
266
  dataROH?: string;
245
- }
267
+ };
246
268
  export interface IPeopleListing {
247
- people: IIndividualListing[];
269
+ /**
270
+ * List of roles to be displayed
271
+ */
272
+ roles: ListingRole[];
248
273
  }
249
274
  export interface INodeProps {
250
275
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@royaloperahouse/chord",
3
- "version": "0.6.0",
3
+ "version": "0.7.3",
4
4
  "author": "Royal Opera House",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
@@ -1,3 +0,0 @@
1
- import { IIndividualListing } from '../../../types/types';
2
- declare const IndividualListing: ({ role, name, link, dataROH }: IIndividualListing) => JSX.Element;
3
- export default IndividualListing;
@@ -1,2 +0,0 @@
1
- export declare const RoleWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
2
- export declare const NameWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -1,2 +0,0 @@
1
- import IndividualListing from './IndividualListing';
2
- export default IndividualListing;