@royaloperahouse/harmonic 0.5.1 → 0.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/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, Icon, ImageAspectRatioWrapper, ImageWithCaption, Information, Navigation, MinimalCarousel, 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, SignUpForm, Sponsorship, StickyBar, Stepper, StreamBadge, Subtitle, TertiaryButton, TextOnly, 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, 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, TextOnly, ThemeProvider, TitleWithCTA, Tab, Table, TabLink, Tabs, TextArea, TextField, TextFieldLegacy, TextLink, Tickbox, Tickbox2, Timer, TypeTags, UpsellCard, UpsellSection, Quote, VideoControls, VideoWithControls } from './components';
2
2
  import { devices, breakpoints } from './styles/viewports';
3
3
  import zIndexes from './styles/zIndexes';
4
4
  import { AspectRatio, ButtonType, CarouselType, Colors, IconNameType, IntegratedTimerProps, ITimerProps, TickboxMode, ThemeColor, ThemeType, EditorialLink, IInformationTitleProps, IInformationCTAProps } from './types';
@@ -8,4 +8,4 @@ import AuxiliaryButton from './components/atoms/Buttons/Auxiliary/AuxiliaryButto
8
8
  import HarmonicThemeProvider from './styles/HarmonicThemeProvider';
9
9
  import { HarmonicSize } from './types/typography';
10
10
  import { HarmonicHeader, HarmonicSubtitle, BodyCopyHarmonic, HarmonicOverline, ButtonText, Caption, NavigationText } from './components/Typography';
11
- export { Accordion, Accordions, AnchorBar, 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, SignUpForm, 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, HarmonicHeader, HarmonicSubtitle, BodyCopyHarmonic, HarmonicOverline, ButtonText, Caption, NavigationText, };
11
+ export { Accordion, Accordions, AnchorBar, 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, 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, TextOnly, ThemeColor, ThemeProvider, ThemeType, TitleWithCTA, Tickbox, Tickbox2, TickboxMode, Timer, TypeTags, UpsellCard, UpsellSection, Quote, VideoControls, VideoWithControls, zIndexes, HarmonicHeader, HarmonicSubtitle, BodyCopyHarmonic, HarmonicOverline, ButtonText, Caption, NavigationText, };
@@ -2,7 +2,7 @@ import { AnchorHTMLAttributes, ImgHTMLAttributes, MouseEventHandler, ReactElemen
2
2
  import { StyledProps } from 'styled-components';
3
3
  import { ButtonType } from './buttonTypes';
4
4
  import { DirectionType, IconNameType } from './iconTypes';
5
- import { Colors, IVideoWithControlsSettings, ThemeColor } from './types';
5
+ import { IVideoWithControlsSettings, ThemeColor, ThemeType } from './types';
6
6
  import { HarmonicSize, HeaderHierarchy, TypographyLevel } from './typography';
7
7
  export interface IEditorialProps {
8
8
  /**
@@ -153,9 +153,9 @@ export interface IThemePageHeadingProps {
153
153
  */
154
154
  sponsor?: boolean;
155
155
  /**
156
- * Semantic level of the title. Default is 1.
156
+ * Header Hierarchy for the title. Default is h1.
157
157
  */
158
- semanticLevel?: TypographyLevel;
158
+ hierarchy: HeaderHierarchy;
159
159
  /**
160
160
  * Character limit for the text
161
161
  */
@@ -164,6 +164,18 @@ export interface IThemePageHeadingProps {
164
164
  * Character limit for the title
165
165
  */
166
166
  titleCharLimit?: number;
167
+ /**
168
+ * Class name for theme styling
169
+ */
170
+ className?: string;
171
+ /**
172
+ * Show Cinema / Stream badge
173
+ */
174
+ showBadge?: boolean;
175
+ /**
176
+ * Theme for badge
177
+ */
178
+ theme: ThemeType;
167
179
  }
168
180
  export interface IPageHeadingProps extends IThemePageHeadingProps {
169
181
  /**
@@ -267,7 +279,7 @@ export interface IPanelHeadingProps {
267
279
  /**
268
280
  * Colour of the info panel background
269
281
  */
270
- color?: Colors;
282
+ color?: ThemeColor;
271
283
  /**
272
284
  * Reference of the div to scroll to when clicking on Scroll Down
273
285
  */
@@ -1,6 +1,6 @@
1
1
  import React, { AnchorHTMLAttributes, MouseEvent, MouseEventHandler, ReactNode } from 'react';
2
2
  import { DirectionType, IconNameType } from './iconTypes';
3
- import { Colors, IOptionItem } from './types';
3
+ import { Colors, IOptionItem, ThemeColor } from './types';
4
4
  export interface IAccountProps {
5
5
  /**
6
6
  * The text of the title
@@ -245,7 +245,7 @@ export declare type AnchorBarTab = AnchorHTMLAttributes<HTMLAnchorElement> & {
245
245
  /**
246
246
  * Color of text and icon
247
247
  */
248
- color?: Colors;
248
+ color?: ThemeColor;
249
249
  };
250
250
  export interface IAnchorBarAbsolutePositionParams {
251
251
  /**
@@ -342,11 +342,11 @@ export interface ITabLinkProps extends AnchorHTMLAttributes<HTMLAnchorElement> {
342
342
  /**
343
343
  * Color of text and icon
344
344
  */
345
- color?: Colors;
345
+ color?: ThemeColor;
346
346
  /**
347
347
  * Color of text and icon on hover
348
348
  */
349
- hoverColor?: Colors;
349
+ hoverColor?: ThemeColor;
350
350
  /**
351
351
  * Set if tab is selected or not
352
352
  */
@@ -118,6 +118,10 @@ export interface ITabProps {
118
118
  * To keep selected the title of the Tab
119
119
  */
120
120
  selected?: boolean;
121
+ /**
122
+ * Icon direction
123
+ */
124
+ iconDirection?: DirectionType;
121
125
  /**
122
126
  * The name of the icon
123
127
  */
@@ -158,6 +162,14 @@ export interface ITabProps {
158
162
  * Provides an accessible label for screen readers to describe the element's purpose.
159
163
  */
160
164
  ariaLabel?: string;
165
+ /**
166
+ * Text color
167
+ */
168
+ color?: ThemeColor;
169
+ /**
170
+ * Defines if it is needed to trim the text of the Tab and add 3 dots in the end
171
+ */
172
+ trimText?: boolean;
161
173
  }
162
174
  export interface IDropdownProps {
163
175
  /**
@@ -208,6 +220,10 @@ export interface IDropdownProps {
208
220
  * Provides an accessible label for screen readers to describe the element's purpose.
209
221
  */
210
222
  ariaLabel?: string;
223
+ /**
224
+ * Defines if it is needed to trim the text of the Tab and add 3 dots in the end
225
+ */
226
+ trimTabText?: boolean;
211
227
  }
212
228
  export interface ITabsProps {
213
229
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@royaloperahouse/harmonic",
3
- "version": "0.5.1",
3
+ "version": "0.6.0",
4
4
  "author": "Royal Opera House",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
@@ -1,4 +0,0 @@
1
- import { FunctionComponent } from 'react';
2
- import { IThemePageHeadingProps } from '../../../../types/editorial';
3
- declare const PageHeadingCinema: FunctionComponent<IThemePageHeadingProps>;
4
- export default PageHeadingCinema;
@@ -1,2 +0,0 @@
1
- import PageTitleCinema from './Cinema';
2
- export default PageTitleCinema;
@@ -1,4 +0,0 @@
1
- import { FunctionComponent } from 'react';
2
- import { IThemePageHeadingProps } from '../../../../types/editorial';
3
- declare const PageHeadingCore: FunctionComponent<IThemePageHeadingProps>;
4
- export default PageHeadingCore;
@@ -1,2 +0,0 @@
1
- import PageTitleCore from './Core';
2
- export default PageTitleCore;
@@ -1,4 +0,0 @@
1
- import { FunctionComponent } from 'react';
2
- import { IThemePageHeadingProps } from '../../../../types/editorial';
3
- declare const PageHeadingStream: FunctionComponent<IThemePageHeadingProps>;
4
- export default PageHeadingStream;
@@ -1 +0,0 @@
1
- export declare const StreamWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -1,2 +0,0 @@
1
- import PageTitleStream from './Stream';
2
- export default PageTitleStream;