@royaloperahouse/harmonic 0.12.0-a → 0.12.0-c

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.
Files changed (27) hide show
  1. package/dist/components/Typography/Typography.d.ts +2 -2
  2. package/dist/components/atoms/TextField/TextField.style.d.ts +1 -1
  3. package/dist/components/index.d.ts +2 -2
  4. package/dist/components/molecules/Accordion/Accordion.style.d.ts +5 -3
  5. package/dist/components/molecules/Card/Card.style.d.ts +1 -1
  6. package/dist/components/molecules/ContentSummary/ContentSummary.style.d.ts +1 -1
  7. package/dist/components/molecules/Editorial/Editorial.style.d.ts +2 -2
  8. package/dist/components/molecules/Information/Information.style.d.ts +1 -1
  9. package/dist/components/molecules/PageHeading/Highlight/Highlight.d.ts +4 -0
  10. package/dist/components/molecules/PageHeading/Highlight/Highlight.style.d.ts +9 -0
  11. package/dist/components/molecules/PageHeading/Highlight/index.d.ts +2 -0
  12. package/dist/components/molecules/PageHeading/index.d.ts +2 -1
  13. package/dist/components/molecules/Pagination/Pagination.style.d.ts +1 -1
  14. package/dist/components/molecules/PromoWithTags/PromoWithTags.style.d.ts +2 -2
  15. package/dist/components/molecules/PromoWithTitle/PromoWithTitle.style.d.ts +2 -2
  16. package/dist/components/molecules/index.d.ts +2 -2
  17. package/dist/harmonic.cjs.development.js +229 -193
  18. package/dist/harmonic.cjs.development.js.map +1 -1
  19. package/dist/harmonic.cjs.production.min.js +1 -1
  20. package/dist/harmonic.cjs.production.min.js.map +1 -1
  21. package/dist/harmonic.esm.js +229 -194
  22. package/dist/harmonic.esm.js.map +1 -1
  23. package/dist/index.d.ts +2 -2
  24. package/dist/types/editorial.d.ts +6 -12
  25. package/dist/types/impactHeader.d.ts +20 -2
  26. package/dist/types/types.d.ts +9 -32
  27. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { Accordion, Accordions, AnchorBar, AnnouncementBanner, AltHeader, AnchorTabBar, AuxiliaryNav, BodyText, Card, Cards, Carousel, CinemaBadge, ContactCard, ContentSummary, ControlledDropdown, CreditListing, Editorial, Footer, GlobalStyles, Grid, GridItem, Header, HighlightsCarousel, HighlightsCarouselCinema, HighlightsCarouselCore, HighlightsCarouselStream, HotFilters, Icon, ImageAspectRatioWrapper, ImageWithCaption, Information, Navigation, MinimalCarousel, Overline, PageHeading, PageHeadingCompact, PageHeadingImpact, PageHeadingPanel, PageHeadingPromo, Pagination, PasswordStrength, PeopleListing, PrimaryButton, Progress, PromoWithTags, PromoWithTitle, Radio, Radio2, RadioGroup, RadioGroup2, ReadMore, RotatorButtons, StatusBanner, SearchBar, SecondaryButton, SecondaryLogo, SectionSplitter, SectionTitle, Select, Select2, Select2Async, SignUpForm, Sponsorship, StickyBar, Stepper, StreamBadge, Subtitle, TertiaryButton, ThemeProvider, TitleWithCTA, Tab, Table, TabLink, Tabs, TextArea, TextField, TextFieldLegacy, TextLink, Tickbox, Tickbox2, Timer, TypeTags, UpsellCard, UpsellSection, Quote, VideoControls, VideoWithControls } from './components';
1
+ import { Accordion, Accordions, AnchorBar, AnnouncementBanner, AltHeader, AnchorTabBar, AuxiliaryNav, BodyText, Card, Cards, Carousel, CinemaBadge, ContactCard, ContentSummary, ControlledDropdown, CreditListing, Editorial, Footer, GlobalStyles, Grid, GridItem, Header, HighlightsCarousel, HighlightsCarouselCinema, HighlightsCarouselCore, HighlightsCarouselStream, HotFilters, Icon, ImageAspectRatioWrapper, ImageWithCaption, Information, Navigation, MinimalCarousel, Overline, PageHeading, PageHeadingCompact, PageHeadingImpact, PageHeadingPanel, PageHeadingHighlight, PageHeadingPromo, Pagination, PasswordStrength, PeopleListing, PrimaryButton, Progress, PromoWithTags, PromoWithTitle, Radio, Radio2, RadioGroup, RadioGroup2, ReadMore, RotatorButtons, StatusBanner, SearchBar, SecondaryButton, SecondaryLogo, SectionSplitter, SectionTitle, Select, Select2, Select2Async, SignUpForm, Sponsorship, StickyBar, Stepper, StreamBadge, Subtitle, TertiaryButton, ThemeProvider, TitleWithCTA, Tab, Table, TabLink, Tabs, TextArea, TextField, TextFieldLegacy, TextLink, Tickbox, Tickbox2, Timer, TypeTags, UpsellCard, UpsellSection, Quote, VideoControls, VideoWithControls } from './components';
2
2
  import BodyContent from './components/molecules/BodyContent';
3
3
  import { devices, breakpoints } from './styles/viewports';
4
4
  import zIndexes from './styles/zIndexes';
@@ -10,4 +10,4 @@ import HarmonicThemeProvider, { useHarmonicTheme } from './styles/HarmonicThemeP
10
10
  import { HarmonicSize } from './types/typography';
11
11
  import { HarmonicHeader, HarmonicSubtitle, BodyCopyHarmonic, HarmonicOverline, ButtonText, Caption, NavigationText } from './components/Typography';
12
12
  export { useHarmonicTheme };
13
- export { Accordion, Accordions, AnchorBar, AnnouncementBanner, AltHeader, AnchorTabBar, AuxiliaryButton, AuxiliaryNav, AspectRatio, BodyContent, BodyText, breakpoints, ButtonType, Card, Cards, CarouselType, Carousel, CinemaBadge, Colors, ContactCard, ContentSummary, ControlledDropdown, CreditListing, devices, Editorial, EditorialLink, Footer, GlobalStyles, Grid, GridItem, HarmonicSize, HarmonicThemeProvider, Header, HighlightsCarousel, HighlightsCarouselCinema, HighlightsCarouselCore, HighlightsCarouselStream, HotFilters, Icon, IconNameType, ImageAspectRatioWrapper, ImageWithCaption, Information, IInformationCTAProps, IInformationTitleProps, ITimerProps, IntegratedTimerProps, MinimalCarousel, MiniCard, ModalWindow, Navigation, Overline, PageHeading, PageHeadingCompact, PageHeadingImpact, PageHeadingPanel, PageHeadingPromo, Pagination, PasswordStrength, PeopleListing, PrimaryButton, Progress, PromoWithTags, PromoWithTitle, Radio, Radio2, RadioGroup, RadioGroup2, ReadMore, RotatorButtons, StatusBanner, SearchBar, SecondaryButton, SecondaryLogo, SectionSplitter, SectionTitle, Select, Select2, Select2Async, SignUpForm, Sponsorship, StickyBar, Stepper, StreamBadge, Subtitle, Tab, Table, TabLink, Tabs, TertiaryButton, TextArea, TextField, TextFieldLegacy, TextLink, ThemeColor, ThemeProvider, ThemeType, TitleWithCTA, Tickbox, Tickbox2, TickboxMode, Timer, TypeTags, UpsellCard, UpsellSection, Quote, VideoControls, VideoWithControls, zIndexes, HarmonicHeader, HarmonicSubtitle, BodyCopyHarmonic, HarmonicOverline, ButtonText, Caption, NavigationText, };
13
+ export { Accordion, Accordions, AnchorBar, AnnouncementBanner, AltHeader, AnchorTabBar, AuxiliaryButton, AuxiliaryNav, AspectRatio, BodyContent, BodyText, breakpoints, ButtonType, Card, Cards, CarouselType, Carousel, CinemaBadge, Colors, ContactCard, ContentSummary, ControlledDropdown, CreditListing, devices, Editorial, EditorialLink, Footer, GlobalStyles, Grid, GridItem, HarmonicSize, HarmonicThemeProvider, Header, HighlightsCarousel, HighlightsCarouselCinema, HighlightsCarouselCore, HighlightsCarouselStream, HotFilters, Icon, IconNameType, ImageAspectRatioWrapper, ImageWithCaption, Information, IInformationCTAProps, IInformationTitleProps, ITimerProps, IntegratedTimerProps, MinimalCarousel, MiniCard, ModalWindow, Navigation, Overline, PageHeading, PageHeadingCompact, PageHeadingImpact, PageHeadingPanel, PageHeadingHighlight, PageHeadingPromo, Pagination, PasswordStrength, PeopleListing, PrimaryButton, Progress, PromoWithTags, PromoWithTitle, Radio, Radio2, RadioGroup, RadioGroup2, ReadMore, RotatorButtons, StatusBanner, SearchBar, SecondaryButton, SecondaryLogo, SectionSplitter, SectionTitle, Select, Select2, Select2Async, SignUpForm, Sponsorship, StickyBar, Stepper, StreamBadge, Subtitle, Tab, Table, TabLink, Tabs, TertiaryButton, TextArea, TextField, TextFieldLegacy, TextLink, ThemeColor, ThemeProvider, ThemeType, TitleWithCTA, Tickbox, Tickbox2, TickboxMode, Timer, TypeTags, UpsellCard, UpsellSection, Quote, VideoControls, VideoWithControls, zIndexes, HarmonicHeader, HarmonicSubtitle, BodyCopyHarmonic, HarmonicOverline, ButtonText, Caption, NavigationText, };
@@ -5,22 +5,16 @@ import { DirectionType, IconNameType } from './iconTypes';
5
5
  import { IVideoWithControlsSettings, ThemeColor, ThemeType } from './types';
6
6
  import { HarmonicSize, HeaderHierarchy } from './typography';
7
7
  export interface IEditorialProps {
8
- /**
9
- * Text placed in the editorial component
10
- */
8
+ /** Text placed in the editorial component */
11
9
  text: string;
12
- /**
13
- * Subtitle placed in the editorial component
14
- */
10
+ /** Subtitle placed in the editorial component */
15
11
  subtitle?: string;
16
- /**
17
- * Position of the image in the editorial component
18
- */
12
+ /** Position of the image in the editorial component */
19
13
  imagePosition?: 'left' | 'right';
20
- /**
21
- * Image tag or component to be displayed in the editorial component with aspect ratio 1:1
22
- */
14
+ /** Image tag or component to be displayed in the editorial component with aspect ratio 1:1 */
23
15
  children: ReactElement<HTMLImageElement>;
16
+ /** Custom CSS classes */
17
+ className?: string;
24
18
  }
25
19
  export interface IEditorialGridProps {
26
20
  /**
@@ -1,5 +1,5 @@
1
- import { ReactNode } from 'react';
2
- import { EditorialLink } from '../types';
1
+ import { ImgHTMLAttributes, ReactNode } from 'react';
2
+ import { EditorialLink, ThemeColor } from '../types';
3
3
  import { HeaderHierarchy, TypographyLevel } from './typography';
4
4
  export interface CustomSponsorImageData {
5
5
  /**
@@ -190,3 +190,21 @@ export interface IPageHeadingPromoProps {
190
190
  /** Custom CSS classes */
191
191
  className?: string;
192
192
  }
193
+ export interface IPageHeadingHighlightProps {
194
+ /**
195
+ * Image to display in the right hand panel, aspect ratio 4:3
196
+ */
197
+ image: ImgHTMLAttributes<HTMLImageElement>;
198
+ /**
199
+ * Optional change to background color
200
+ */
201
+ background?: ThemeColor;
202
+ /**
203
+ * The component(s) to be wrapped in the page header
204
+ */
205
+ children: ReactNode;
206
+ /**
207
+ * Custom CSS classes
208
+ */
209
+ className?: string;
210
+ }
@@ -1,7 +1,6 @@
1
1
  import { ReactNode, AnchorHTMLAttributes, MouseEventHandler, ReactElement } from 'react';
2
2
  import { StyledProps } from 'styled-components';
3
3
  import { IconNameType, DirectionType } from './iconTypes';
4
- import { TypographyLevel, TypographyType } from './typography';
5
4
  import type { ExternalLink } from './links';
6
5
  export declare enum Colors {
7
6
  White = "white",
@@ -573,44 +572,22 @@ export interface ILogosStyledProps extends StyledProps<any> {
573
572
  fillColor?: Colors.White | Colors.Black;
574
573
  }
575
574
  export interface IAccordionProps {
576
- /**
577
- * Title to display.
578
- */
575
+ /** Title to display. */
579
576
  title?: string;
580
- /**
581
- * The component to be wrapped into the accordion
582
- */
577
+ /** The component to be wrapped into the accordion */
583
578
  children?: ReactNode;
584
- /**
585
- * Components wrapped into the accordion that are always visible
586
- */
587
- visibleStandfirst?: ReactNode;
588
- /**
589
- * Set if accordions are stacked
590
- */
579
+ /** Set if accordions are stacked */
591
580
  showLine?: boolean;
592
- /**
593
- * Set init open
594
- */
581
+ /** Set init open */
595
582
  initOpen?: boolean;
596
- /**
597
- * Set content type - header or subtitle
598
- */
599
- contentType?: TypographyType;
600
- /**
601
- * Set display level - aesthetic
602
- */
603
- displayLevel?: TypographyLevel;
604
- /**
605
- * Set semantic level - not to be used for aesthetic
606
- */
607
- semanticLevel?: TypographyLevel;
583
+ /** Custom CSS classes */
584
+ className?: string;
608
585
  }
609
586
  export interface IAccordionsProps {
610
- /**
611
- * Array of Accordion component
612
- */
587
+ /** Array of Accordion component */
613
588
  items: IAccordionProps[];
589
+ /** Custom CSS classes */
590
+ className?: string;
614
591
  }
615
592
  export declare const BannerVariants: {
616
593
  readonly 'service-persistent': "service-persistent";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@royaloperahouse/harmonic",
3
- "version": "0.12.0-a",
3
+ "version": "0.12.0-c",
4
4
  "author": "Royal Opera House",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",