@royaloperahouse/chord 0.7.23 → 0.7.26

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.
@@ -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, HighlightsCarousel, HighlightsCarouselCinema, HighlightsCarouselCore, HighlightsCarouselStream, Carousel, Footer, Navigation, TitleWithCTA } from './organisms';
3
- import { Accordion, Accordions, AnnouncementBanner, Card, Cards, 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, 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, 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, Quote, };
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, StreamBadge, Subtitle, TertiaryButton, TextOnly, ThemeProvider, TitleWithCTA, SectionSplitter, Tab, TabLink, Tabs, TextLink, Tickbox, TypeTags, Quote, };
@@ -0,0 +1,4 @@
1
+ import { FunctionComponent } from 'react';
2
+ import { IContactCardProps } from '../../../types/types';
3
+ declare const ContactCard: FunctionComponent<IContactCardProps>;
4
+ export default ContactCard;
@@ -0,0 +1,5 @@
1
+ export declare const ContentWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
2
+ export declare const Wrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
3
+ export declare const AddressWrapperDesktop: import("styled-components").StyledComponent<"div", any, {}, never>;
4
+ export declare const AddressWrapperMobile: import("styled-components").StyledComponent<"div", any, {}, never>;
5
+ export declare const DetailsWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -0,0 +1,2 @@
1
+ import ContactCard from './ContactCard';
2
+ export default ContactCard;
@@ -1,3 +1,6 @@
1
1
  export declare const PeopleListingGrid: import("styled-components").StyledComponent<"div", any, {}, never>;
2
+ export declare const PersonWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
3
+ export declare const HeadshotWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
2
4
  export declare const RoleWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
5
+ export declare const TextWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
3
6
  export declare const PersonLink: import("styled-components").StyledComponent<"a", any, {}, never>;
@@ -3,6 +3,7 @@ import Accordions from './Accordions';
3
3
  import AnnouncementBanner from './AnnouncementBanner';
4
4
  import Card from './Card';
5
5
  import Cards from './Cards';
6
+ import ContactCard from './ContactCard';
6
7
  import Editorial from './Editorial';
7
8
  import { PageHeadingCinema, PageHeadingCore, PageHeadingImpact, PageHeadingStream } from './PageHeading';
8
9
  import PeopleListing from './PeopleListing';
@@ -12,4 +13,4 @@ import Tabs from './Tabs';
12
13
  import TextOnly from './TextOnly';
13
14
  import ImageWithCaption from './ImageWithCaption';
14
15
  import Quote from './Quote';
15
- export { Accordion, Accordions, AnnouncementBanner, Card, Cards, Editorial, ImageWithCaption, PageHeadingCinema, PageHeadingCore, PageHeadingImpact, PageHeadingStream, PeopleListing, PromoWithTitle, SectionTitle, Tabs, TextOnly, Quote, };
16
+ export { Accordion, Accordions, AnnouncementBanner, Card, Cards, ContactCard, Editorial, ImageWithCaption, PageHeadingCinema, PageHeadingCore, PageHeadingImpact, PageHeadingStream, PeopleListing, 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, 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, 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, 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, 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, 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, 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, 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, Quote, };
@@ -249,7 +249,15 @@ export declare type ListingPerson = {
249
249
  /**
250
250
  * String separator
251
251
  */
252
+ headshot?: string;
253
+ /**
254
+ * Headshot image url
255
+ */
252
256
  separator?: string;
257
+ /**
258
+ * Use headshot or not
259
+ */
260
+ useHeadshot: boolean;
253
261
  };
254
262
  export declare type ListingRole = {
255
263
  /**
@@ -447,3 +455,29 @@ export interface IAnnouncementBannerProps {
447
455
  */
448
456
  icon: 'Info' | 'Clock' | 'Location' | 'Reminder' | 'Star';
449
457
  }
458
+ export interface IContactCardProps {
459
+ /**
460
+ * Name
461
+ */
462
+ name: string;
463
+ /**
464
+ * Description
465
+ */
466
+ description?: string;
467
+ /**
468
+ * Email
469
+ */
470
+ email?: string;
471
+ /**
472
+ * Phone number
473
+ */
474
+ phone?: string;
475
+ /**
476
+ * Website
477
+ */
478
+ website?: string;
479
+ /**
480
+ * Address string
481
+ */
482
+ address?: string;
483
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@royaloperahouse/chord",
3
- "version": "0.7.23",
3
+ "version": "0.7.26",
4
4
  "author": "Royal Opera House",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
@@ -22,6 +22,7 @@
22
22
  "analyze": "size-limit --why",
23
23
  "storybook": "start-storybook -s ./external -p 6006",
24
24
  "build-storybook": "rm -rf ./storybook-static; build-storybook -s ./src -o ./storybook-static; cp -r ./external/ ./storybook-static/",
25
+ "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",
25
26
  "test-storybook": "tsdx test --json --passWithNoTests --outputFile=./test/jest-test-results.json",
26
27
  "publish-release": "make prepare-release-candidate; make publish-release",
27
28
  "publish-snapshot": "make prepare-release-candidate; make publish-npm-snapshot"
@@ -79,6 +80,7 @@
79
80
  "@storybook/addon-links": "^6.3.12",
80
81
  "@storybook/addons": "^6.3.12",
81
82
  "@storybook/react": "^6.3.12",
83
+ "@storybook/storybook-deployer": "^2.8.11",
82
84
  "@testing-library/jest-dom": "^5.15.0",
83
85
  "@testing-library/react": "^12.1.2",
84
86
  "@testing-library/user-event": "^13.5.0",