@royaloperahouse/harmonic 1.0.9-i → 1.0.10

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, CastFilterVariant, 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, CastFilterVariant, 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
  }
@@ -148,10 +148,6 @@ export interface ITabProps {
148
148
  * Additional CSS class names to apply to the navigation component.
149
149
  */
150
150
  className?: string;
151
- /**
152
- * The unique ID to assign to the link element.
153
- */
154
- tabLinkId?: string;
155
151
  /**
156
152
  * Defines the ARIA role of the element for accessibility purposes.
157
153
  */
@@ -227,11 +223,7 @@ export interface IDropdownProps {
227
223
  */
228
224
  ariaLabel?: string;
229
225
  /**
230
- * The unique ID to assign to the link element inside the tab.
231
- */
232
- tabLinkId?: string;
233
- /**
234
- * Defines if it is needed to trim the text of the Tab and add 3 dots in the end
226
+ * Defines if it is needed to trim the text of the Tab and add 3 dots in the end
235
227
  */
236
228
  trimTabText?: boolean;
237
229
  }
@@ -491,7 +483,7 @@ export declare type TCustomStrategyTabsFilterProps = Omit<IHotFilterProps, 'item
491
483
  pressedColor: ThemeColor;
492
484
  }>;
493
485
  };
494
- export declare type ICastFilterItem = {
486
+ export declare type ICastFilterItem = Pick<AnchorHTMLAttributes<HTMLAnchorElement>, 'aria-label' | 'role'> & {
495
487
  /**
496
488
  * Stable identifier for selection mapping and rendering keys.
497
489
  */
@@ -704,9 +696,7 @@ export interface IAccordionProps {
704
696
  /** The component to be wrapped into the accordion */
705
697
  children?: ReactNode;
706
698
  /** Set if accordions are stacked */
707
- showTopLine?: boolean;
708
- /** Set if accordions are stacked */
709
- showBottomLine?: boolean;
699
+ showLine?: boolean;
710
700
  /** Set init open */
711
701
  initOpen?: boolean;
712
702
  /** Custom CSS classes */
@@ -715,12 +705,6 @@ export interface IAccordionProps {
715
705
  expandedStateIcon?: IIconProps;
716
706
  /** Harmonic icon name and direction for collapsed state. Default is 'Expand' */
717
707
  collapsedStateIcon?: IIconProps;
718
- /** Components wrapped into the accordion that are always visible */
719
- visibleStandfirst?: ReactNode;
720
- /** Allows styling of ChildrenContainer, e.g. margin or padding */
721
- childrenContainerStyle?: React.CSSProperties;
722
- /** Allows title margin styling for cast sheets */
723
- titleMargin?: string;
724
708
  }
725
709
  export interface IAccordionsProps {
726
710
  /** Array of Accordion component */
@@ -797,10 +781,6 @@ export interface IReadMoreProps {
797
781
  * Optional truncation
798
782
  */
799
783
  truncate?: boolean;
800
- /**
801
- * Class name for custom styling
802
- */
803
- className?: string;
804
784
  }
805
785
  export interface IStatusBannerProps {
806
786
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@royaloperahouse/harmonic",
3
- "version": "1.0.9-i",
3
+ "version": "1.0.10",
4
4
  "author": "Royal Opera House",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
@@ -33,7 +33,7 @@
33
33
  "test:save-results": "jest --json --passWithNoTests --outputFile=./test/jest-test-results.json",
34
34
  "test-storybook": "jest --json --passWithNoTests --outputFile=./test/jest-test-results.json",
35
35
  "publish-release": "make prepare-release-candidate && make publish-release",
36
- "publish-snapshot": "make prepare-release-candidate && make publish-snapshot"
36
+ "publish-snapshot": "make prepare-release-candidate && make publish-npm-snapshot"
37
37
  },
38
38
  "keywords": [
39
39
  "React",
@@ -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>;