@royaloperahouse/harmonic 0.2.3-f → 0.2.3-h

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,2 +1,2 @@
1
1
  import { ThemeType } from '../types';
2
- export declare const themeToColor: (theme: ThemeType) => "primary-red" | "primary-black" | "secondary-blue";
2
+ export declare const themeToColor: (theme: ThemeType) => "primary-red" | "primary-black" | "base-black";
package/dist/index.d.ts CHANGED
@@ -6,5 +6,5 @@ import { MiniCard } from './components/molecules';
6
6
  import { ModalWindow } from './components/organisms';
7
7
  import AuxiliaryButton from './components/atoms/Buttons/Auxiliary/AuxiliaryButton';
8
8
  import HarmonicThemeProvider from './styles/HarmonicThemeProvider';
9
- import { HarmonicSizes } from './types/typography';
10
- export { Accordion, Accordions, AnnouncementBanner, AltHeader, AnchorTabBar, AuxiliaryButton, AuxiliaryNav, AspectRatio, BodyText, breakpoints, ButtonType, Card, Cards, CarouselType, Carousel, CinemaBadge, Colors, ContactCard, ContentSummary, ControlledDropdown, CreditListing, devices, Editorial, EditorialLink, Footer, GlobalStyles, Grid, GridItem, HarmonicSizes, HarmonicThemeProvider, Header, HighlightsCarousel, HighlightsCarouselCinema, HighlightsCarouselCore, HighlightsCarouselStream, Icon, IconNameType, ImageAspectRatioWrapper, ImageWithCaption, Information, IInformationCTAProps, IInformationTitleProps, ITimerProps, IntegratedTimerProps, MinimalCarousel, MiniCard, ModalWindow, Navigation, Overline, PageHeadingCinema, PageHeadingCompact, PageHeadingCore, PageHeadingImpact, PageHeadingPanel, PageHeadingPromo, PageHeadingStream, Pagination, PasswordStrength, PeopleListing, PrimaryButton, Progress, PromoWithTags, PromoWithTitle, Radio, Radio2, RadioGroup, RadioGroup2, ReadMore, RotatorButtons, StatusBanner, SearchBar, SecondaryButton, SecondaryLogo, SectionSplitter, SectionTitle, Select, Select2, Select2Async, Sponsorship, StickyBar, Stepper, StreamBadge, Subtitle, Tab, Table, TabLink, Tabs, TertiaryButton, TextArea, TextField, TextFieldLegacy, TextLink, TextOnly, ThemeColor, ThemeProvider, ThemeType, TitleWithCTA, Tickbox, Tickbox2, TickboxMode, Timer, TypeTags, UpsellCard, UpsellSection, Quote, VideoControls, VideoWithControls, zIndexes, SignUpForm, };
9
+ import { HarmonicSize } from './types/typography';
10
+ export { Accordion, Accordions, AnnouncementBanner, AltHeader, AnchorTabBar, AuxiliaryButton, AuxiliaryNav, AspectRatio, 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, Icon, IconNameType, ImageAspectRatioWrapper, ImageWithCaption, Information, IInformationCTAProps, IInformationTitleProps, ITimerProps, IntegratedTimerProps, MinimalCarousel, MiniCard, ModalWindow, Navigation, Overline, PageHeadingCinema, PageHeadingCompact, PageHeadingCore, PageHeadingImpact, PageHeadingPanel, PageHeadingPromo, PageHeadingStream, Pagination, PasswordStrength, PeopleListing, PrimaryButton, Progress, PromoWithTags, PromoWithTitle, Radio, Radio2, RadioGroup, RadioGroup2, ReadMore, RotatorButtons, StatusBanner, SearchBar, SecondaryButton, SecondaryLogo, SectionSplitter, SectionTitle, Select, Select2, Select2Async, Sponsorship, StickyBar, Stepper, StreamBadge, Subtitle, Tab, Table, TabLink, Tabs, TertiaryButton, TextArea, TextField, TextFieldLegacy, TextLink, TextOnly, ThemeColor, ThemeProvider, ThemeType, TitleWithCTA, Tickbox, Tickbox2, TickboxMode, Timer, TypeTags, UpsellCard, UpsellSection, Quote, VideoControls, VideoWithControls, zIndexes, SignUpForm, };
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
2
  import { ThemeType } from '../../types';
3
3
  import './theme/fonts.css';
4
+ import './theme/typography.css';
4
5
  interface HarmonicThemeProviderProps {
5
6
  theme: ThemeType;
6
7
  children: React.ReactNode;
@@ -3,7 +3,7 @@ import { StyledProps } from 'styled-components';
3
3
  import { ButtonType } from './buttonTypes';
4
4
  import { DirectionType, IconNameType } from './iconTypes';
5
5
  import { Colors, IVideoWithControlsSettings, ThemeColor } from './types';
6
- import { HarmonicSizes, HeaderHierarchy, TypographyLevel } from './typography';
6
+ import { HarmonicSize, HeaderHierarchy, TypographyLevel } from './typography';
7
7
  export interface IEditorialProps {
8
8
  /**
9
9
  * Text placed in the editorial component
@@ -91,7 +91,7 @@ export declare type EditorialLink = AnchorHTMLAttributes<HTMLAnchorElement> & {
91
91
  buttonType?: ButtonType;
92
92
  };
93
93
  export declare type PromoLinks = [EditorialLink, EditorialLink?];
94
- export declare type PromoTitleSize = Exclude<HarmonicSizes, 'small'>;
94
+ export declare type PromoTitleSize = Exclude<HarmonicSize, 'small'>;
95
95
  export declare type PromoTitleHierarchy = Exclude<HeaderHierarchy, 'H1'>;
96
96
  export interface IPromoWithTitleProps {
97
97
  /**
@@ -1,7 +1,7 @@
1
1
  import { DirectionType, IconNameType } from './iconTypes';
2
2
  import { LinkTarget } from './types';
3
3
  import type { ThemeChildProps } from './types';
4
- import type { HarmonicSizes } from './typography';
4
+ import type { HarmonicSize } from './typography';
5
5
  export declare const InformationCtaVariants: {
6
6
  readonly Primary: "Primary";
7
7
  readonly Secondary: "Secondary";
@@ -45,7 +45,7 @@ export interface IInformationTitleProps {
45
45
  /**
46
46
  * The size of the title text
47
47
  */
48
- textSize: HarmonicSizes;
48
+ textSize: HarmonicSize;
49
49
  }
50
50
  export interface IInformationProps extends ThemeProps {
51
51
  /**
@@ -56,6 +56,10 @@ export interface ISignUpFormProps {
56
56
  submitHandler: (data: SignUpRequestBody) => Promise<{
57
57
  success: boolean;
58
58
  }>;
59
+ /**
60
+ * Class Name
61
+ */
62
+ className?: string;
59
63
  }
60
64
  export declare type SignUpFormComponentTitleProps = {
61
65
  title: string;
@@ -76,5 +80,6 @@ export declare type SignUpFormComponentFormProps = Pick<ISignUpFormProps, 'ctaPr
76
80
  setIsSuccess: Dispatch<SetStateAction<boolean>>;
77
81
  formValues: FormValues;
78
82
  setFormValues: Dispatch<SetStateAction<FormValues>>;
83
+ className?: string;
79
84
  };
80
85
  export {};
@@ -1,11 +1,11 @@
1
1
  import { ReactNode } from 'react';
2
2
  import { StyledProps } from 'styled-components';
3
- export declare const HarmonicSizes: {
3
+ export declare const HarmonicSize: {
4
4
  readonly Small: "small";
5
5
  readonly Medium: "medium";
6
6
  readonly Large: "large";
7
7
  };
8
- export declare type HarmonicSizes = (typeof HarmonicSizes)[keyof typeof HarmonicSizes];
8
+ export declare type HarmonicSize = (typeof HarmonicSize)[keyof typeof HarmonicSize];
9
9
  export declare const HeaderHierarchy: {
10
10
  readonly H1: "h1";
11
11
  readonly H2: "h2";
@@ -15,7 +15,7 @@ export declare type HeaderHierarchy = (typeof HeaderHierarchy)[keyof typeof Head
15
15
  export declare type HarmonicColors = 'primary' | 'black' | 'white' | 'red' | 'grey' | 'inherit';
16
16
  export interface IGenericTypographyProps<T extends HTMLElement = HTMLParagraphElement> extends React.HTMLAttributes<T> {
17
17
  children?: ReactNode;
18
- size?: HarmonicSizes;
18
+ size?: HarmonicSize;
19
19
  serif?: boolean;
20
20
  color?: HarmonicColors;
21
21
  em?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@royaloperahouse/harmonic",
3
- "version": "0.2.3-f",
3
+ "version": "0.2.3-h",
4
4
  "author": "Royal Opera House",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",