@royaloperahouse/harmonic 1.0.7-a → 1.0.7

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
@@ -10,6 +10,6 @@ import AuxiliaryButton from './components/atoms/Buttons/Auxiliary/AuxiliaryButto
10
10
  import PersonCard from './components/molecules/PersonCard';
11
11
  import HarmonicThemeProvider, { useHarmonicTheme } from './styles/HarmonicThemeProvider';
12
12
  import { HarmonicSize } from './types/typography';
13
- import { DisplayHeader, HarmonicHeader, HarmonicSubtitle, BodyCopyHarmonic, HarmonicOverline, ButtonText, Caption, NavigationText } from './components/Typography';
13
+ import { HarmonicHeader, HarmonicSubtitle, BodyCopyHarmonic, HarmonicOverline, ButtonText, Caption, NavigationText } from './components/Typography';
14
14
  export { useHarmonicTheme };
15
- export { Account, Accordion, Accordions, AnchorBar, AnnouncementBanner, AltHeader, AnchorTabBar, AuxiliaryButton, AuxiliaryNav, AspectRatio, Basket, BodyContent, BodyText, breakpoints, ButtonType, Card, Cards, CarouselType, Carousel, CastFilter, CinemaBadge, Colors, ContactCard, ContactNewsletter, ContentSummary, ControlledDropdown, DisplayHeader, Dropdown, CreditListing, devices, Editorial, EditorialLink, Footer, GlobalStyles, Grid, GridItem, HarmonicSize, HarmonicThemeProvider, Header, HighlightsCarousel, HighlightsCarouselCinema, HighlightsCarouselCore, HighlightsCarouselStream, HotFilters, Icon, IconNameType, ImageAspectRatioWrapper, ImageWithCaption, Information, Logo, IInformationCTAProps, IInformationTitleProps, ITimerProps, IntegratedTimerProps, MinimalCarousel, MiniCard, CustomStrategyTabsFilter, ModalWindow, Navigation, NavTop, Overline, PageHeading, PageHeadingCompact, PageHeadingImpact, PageHeadingPanel, PageHeadingHighlight, PageHeadingPromo, PageHeadingHighlightCarousel, Pagination, PasswordStrength, Person, PersonCard, PersonDetails, Paywall, PeopleListing, PolicyLinks, PrimaryButton, Progress, PromoWithTags, PromoWithTitle, Radio2, RadioGroup2, ReadMore, RotatorButtons, Search, StatusBanner, SearchBar, SecondaryButton, SecondaryLogo, SocialLinks, SectionSplitter, SectionTitle, Select2, Select2Async, SignUpForm, Swipe, SwipeRef, Sponsorship, StickyBar, Stepper, StreamBadge, Subtitle, Tab, Table, TabLink, Tabs, TCustomStrategyTabsFilterProps, TCustomStrategyTabsFilterItem, TertiaryButton, TextArea, TextField, TextFieldLegacy, TextLink, ThemeColor, ThemeProvider, ThemeType, TitleWithCTA, Tickbox, Tickbox2, TickboxMode, Timer, TypeTags, UpsellCard, UpsellCards, UpsellSection, Quote, VideoControls, VideoWithControls, zIndexes, HarmonicHeader, HarmonicSubtitle, BodyCopyHarmonic, HarmonicOverline, ButtonText, Caption, NavigationText, };
15
+ export { Account, Accordion, Accordions, AnchorBar, AnnouncementBanner, AltHeader, AnchorTabBar, AuxiliaryButton, AuxiliaryNav, AspectRatio, Basket, BodyContent, BodyText, breakpoints, ButtonType, Card, Cards, CarouselType, Carousel, CastFilter, CinemaBadge, Colors, ContactCard, ContactNewsletter, ContentSummary, ControlledDropdown, Dropdown, CreditListing, devices, Editorial, EditorialLink, Footer, GlobalStyles, Grid, GridItem, HarmonicSize, HarmonicThemeProvider, Header, HighlightsCarousel, HighlightsCarouselCinema, HighlightsCarouselCore, HighlightsCarouselStream, HotFilters, Icon, IconNameType, ImageAspectRatioWrapper, ImageWithCaption, Information, Logo, IInformationCTAProps, IInformationTitleProps, ITimerProps, IntegratedTimerProps, MinimalCarousel, MiniCard, CustomStrategyTabsFilter, ModalWindow, Navigation, NavTop, Overline, PageHeading, PageHeadingCompact, PageHeadingImpact, PageHeadingPanel, PageHeadingHighlight, PageHeadingPromo, PageHeadingHighlightCarousel, Pagination, PasswordStrength, Person, PersonCard, PersonDetails, Paywall, PeopleListing, PolicyLinks, PrimaryButton, Progress, PromoWithTags, PromoWithTitle, Radio2, RadioGroup2, ReadMore, RotatorButtons, Search, StatusBanner, SearchBar, SecondaryButton, SecondaryLogo, SocialLinks, SectionSplitter, SectionTitle, Select2, Select2Async, SignUpForm, Swipe, SwipeRef, Sponsorship, StickyBar, Stepper, StreamBadge, Subtitle, Tab, Table, TabLink, Tabs, TCustomStrategyTabsFilterProps, TCustomStrategyTabsFilterItem, TertiaryButton, TextArea, TextField, TextFieldLegacy, TextLink, ThemeColor, ThemeProvider, ThemeType, TitleWithCTA, Tickbox, Tickbox2, TickboxMode, Timer, TypeTags, UpsellCard, UpsellCards, UpsellSection, Quote, VideoControls, VideoWithControls, zIndexes, HarmonicHeader, HarmonicSubtitle, BodyCopyHarmonic, HarmonicOverline, ButtonText, Caption, NavigationText, };
@@ -1,7 +1,6 @@
1
1
  import React from 'react';
2
2
  import { ThemeType } from '../../types';
3
3
  import './theme/fonts.css';
4
- import './theme/typography.css';
5
4
  export declare const DEFAULT_THEME = ThemeType.Core;
6
5
  interface HarmonicThemeProviderProps {
7
6
  theme: ThemeType;
@@ -1,17 +1,16 @@
1
1
  import { ListingPerson } from './types';
2
2
  export interface ICreditListing {
3
3
  roles: {
4
- name?: string;
4
+ name: string;
5
5
  people: ListingPerson[] | ListingPerson[][];
6
- description?: string;
7
- musicTitle?: string[];
8
- replacement?: string;
9
- additionalInfo?: string;
10
- dataROH?: string;
6
+ description: string;
7
+ musicTitle: string[];
8
+ replacement: string;
9
+ additionalInfo: string;
10
+ dataROH: string;
11
11
  }[];
12
12
  columnCount?: number;
13
13
  expandLargeEntries?: boolean;
14
14
  largeColumnSpan?: number;
15
15
  characterThreshold?: number;
16
- className?: string;
17
16
  }
@@ -147,10 +147,6 @@ export interface ITabProps {
147
147
  * Additional CSS class names to apply to the navigation component.
148
148
  */
149
149
  className?: string;
150
- /**
151
- * The unique ID to assign to the link element.
152
- */
153
- tabLinkId?: string;
154
150
  /**
155
151
  * Defines the ARIA role of the element for accessibility purposes.
156
152
  */
@@ -226,11 +222,7 @@ export interface IDropdownProps {
226
222
  */
227
223
  ariaLabel?: string;
228
224
  /**
229
- * The unique ID to assign to the link element inside the tab.
230
- */
231
- tabLinkId?: string;
232
- /**
233
- * Defines if it is needed to trim the text of the Tab and add 3 dots in the end
225
+ * Defines if it is needed to trim the text of the Tab and add 3 dots in the end
234
226
  */
235
227
  trimTabText?: boolean;
236
228
  }
@@ -487,7 +479,7 @@ export declare type TCustomStrategyTabsFilterProps = Omit<IHotFilterProps, 'item
487
479
  pressedColor: ThemeColor;
488
480
  }>;
489
481
  };
490
- export declare type ICastFilterItem = {
482
+ export declare type ICastFilterItem = Pick<AnchorHTMLAttributes<HTMLAnchorElement>, 'aria-label' | 'role'> & {
491
483
  /**
492
484
  * Stable identifier for selection mapping and rendering keys.
493
485
  */
@@ -689,9 +681,7 @@ export interface IAccordionProps {
689
681
  /** The component to be wrapped into the accordion */
690
682
  children?: ReactNode;
691
683
  /** Set if accordions are stacked */
692
- showTopLine?: boolean;
693
- /** Set if accordions are stacked */
694
- showBottomLine?: boolean;
684
+ showLine?: boolean;
695
685
  /** Set init open */
696
686
  initOpen?: boolean;
697
687
  /** Custom CSS classes */
@@ -700,12 +690,6 @@ export interface IAccordionProps {
700
690
  expandedStateIcon?: IIconProps;
701
691
  /** Harmonic icon name and direction for collapsed state. Default is 'Expand' */
702
692
  collapsedStateIcon?: IIconProps;
703
- /** Allows styling of ChildrenContainer, e.g. margin or padding */
704
- childrenContainerStyle?: React.CSSProperties;
705
- /** Allows title margin styling for cast sheets */
706
- titleMargin?: string;
707
- /** Components wrapped into the accordion that are always visible */
708
- visibleStandfirst?: ReactNode;
709
693
  }
710
694
  export interface IAccordionsProps {
711
695
  /** Array of Accordion component */
@@ -782,10 +766,6 @@ export interface IReadMoreProps {
782
766
  * Optional truncation
783
767
  */
784
768
  truncate?: boolean;
785
- /**
786
- * Class name for custom styling
787
- */
788
- className?: string;
789
769
  }
790
770
  export interface IStatusBannerProps {
791
771
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@royaloperahouse/harmonic",
3
- "version": "1.0.7-a",
3
+ "version": "1.0.7",
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 { ITextLinkProps } from '../../../types/types';
3
- declare const ReadMoreTextLink: FunctionComponent<ITextLinkProps>;
4
- export default ReadMoreTextLink;
@@ -1,3 +0,0 @@
1
- import { ITextLinkProps } from '../../../types/types';
2
- export declare const TextLinkWrapper: import("styled-components").StyledComponent<"a", any, ITextLinkProps, never>;
3
- export declare const TextLinkIconWrapper: import("styled-components").StyledComponent<"span", any, {}, never>;