@royaloperahouse/harmonic 1.0.8 → 1.0.9-a

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 (43) hide show
  1. package/CHANGELOG.md +17 -5
  2. package/dist/components/atoms/Buttons/Auxiliary/AuxiliaryButton.style.d.ts +1 -1
  3. package/dist/components/atoms/Buttons/Button.d.ts +1 -1
  4. package/dist/components/atoms/Buttons/Primary/PrimaryButton.d.ts +1 -1
  5. package/dist/components/atoms/Buttons/Primary/PrimaryButton.style.d.ts +1 -1
  6. package/dist/components/atoms/Buttons/Secondary/SecondaryButton.style.d.ts +1 -1
  7. package/dist/components/atoms/Dropdown/Dropdown.d.ts +1 -1
  8. package/dist/components/atoms/Icons/SvgIcons/16px/Expand.svg.d.ts +4 -0
  9. package/dist/components/atoms/Icons/SvgIcons/16px/Remove.svg.d.ts +4 -0
  10. package/dist/components/atoms/Icons/SvgIcons/index.d.ts +2 -0
  11. package/dist/components/atoms/Tab/Tab.d.ts +1 -1
  12. package/dist/components/index.d.ts +2 -2
  13. package/dist/components/molecules/Accordion/Accordion.style.d.ts +3 -1
  14. package/dist/components/molecules/CastFilter/{CastFilters.d.ts → Original/CastFilters.d.ts} +1 -1
  15. package/dist/components/molecules/CastFilter/Original/CastFilters.style.d.ts +5 -0
  16. package/dist/components/molecules/CastFilter/Original/index.d.ts +2 -0
  17. package/dist/components/molecules/CastFilter/Variant/CastFiltersVariant.d.ts +4 -0
  18. package/dist/components/molecules/CastFilter/Variant/index.d.ts +2 -0
  19. package/dist/components/molecules/CustomStrategyTabsFilter/CustomStrategyTabsFilter.d.ts +65 -1
  20. package/dist/components/molecules/CustomStrategyTabsFilter/styled.d.ts +1 -1
  21. package/dist/components/molecules/HotFilters/HotFilters.style.d.ts +1 -1
  22. package/dist/components/molecules/PageHeading/Compact/Compact.style.d.ts +1 -1
  23. package/dist/components/molecules/PageHeading/Impact/Impact.style.d.ts +1 -1
  24. package/dist/components/molecules/PeopleListing/CreditListing/CreditListing.d.ts +1 -1
  25. package/dist/components/molecules/PeopleListing/CreditListing/CreditListing.style.d.ts +0 -1
  26. package/dist/components/molecules/ReadMore/ReadMoreTextLink.d.ts +4 -0
  27. package/dist/components/molecules/ReadMore/ReadMoreTextLink.style.d.ts +3 -0
  28. package/dist/components/molecules/index.d.ts +3 -2
  29. package/dist/components/organisms/Carousels/HighlightsCarousel/helper.d.ts +1 -1
  30. package/dist/components/organisms/TitleWithCTA/TitleWithCTA.style.d.ts +1 -1
  31. package/dist/harmonic.cjs.development.css +319 -0
  32. package/dist/harmonic.cjs.development.js +792 -348
  33. package/dist/harmonic.cjs.development.js.map +1 -1
  34. package/dist/harmonic.cjs.production.min.js +1 -1
  35. package/dist/harmonic.cjs.production.min.js.map +1 -1
  36. package/dist/harmonic.esm.js +802 -357
  37. package/dist/harmonic.esm.js.map +1 -1
  38. package/dist/index.d.ts +3 -3
  39. package/dist/styles/HarmonicThemeProvider/HarmonicThemeProvider.d.ts +1 -0
  40. package/dist/types/creditListing.d.ts +7 -6
  41. package/dist/types/types.d.ts +23 -3
  42. package/package.json +2 -2
  43. package/dist/components/molecules/CastFilter/index.d.ts +0 -2
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { Account, Accordion, Accordions, AnchorBar, AnnouncementBanner, AltHeader, AnchorTabBar, AuxiliaryNav, Basket, BodyText, Card, Cards, Carousel, CastFilter, CinemaBadge, ContactCard, ContactNewsletter, ContentSummary, ControlledDropdown, Dropdown, CreditListing, Editorial, Footer, GlobalStyles, Grid, GridItem, Header, HighlightsCarousel, HighlightsCarouselCinema, HighlightsCarouselCore, HighlightsCarouselStream, HotFilters, Icon, ImageAspectRatioWrapper, ImageWithCaption, Information, Logo, Navigation, NavTop, MinimalCarousel, CustomStrategyTabsFilter, Overline, PageHeading, PageHeadingCompact, PageHeadingImpact, PageHeadingPanel, PageHeadingHighlight, PageHeadingPromo, PageHeadingHighlightCarousel, Pagination, PasswordStrength, Person, Paywall, PersonDetails, 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, TertiaryButton, ThemeProvider, TitleWithCTA, Tab, Table, TabLink, Tabs, TextArea, TextField, TextFieldLegacy, TextLink, Tickbox, Tickbox2, Timer, TypeTags, UpsellCard, UpsellCards, UpsellSection, VideoControls, VideoWithControls } from './components';
1
+ import { Account, Accordion, Accordions, AnchorBar, AnnouncementBanner, AltHeader, AnchorTabBar, AuxiliaryNav, Basket, BodyText, Card, Cards, Carousel, CastFilter, CastFilterVariant, CinemaBadge, ContactCard, ContactNewsletter, ContentSummary, ControlledDropdown, Dropdown, CreditListing, Editorial, Footer, GlobalStyles, Grid, GridItem, Header, HighlightsCarousel, HighlightsCarouselCinema, HighlightsCarouselCore, HighlightsCarouselStream, HotFilters, Icon, ImageAspectRatioWrapper, ImageWithCaption, Information, Logo, Navigation, NavTop, MinimalCarousel, CustomStrategyTabsFilter, Overline, PageHeading, PageHeadingCompact, PageHeadingImpact, PageHeadingPanel, PageHeadingHighlight, PageHeadingPromo, PageHeadingHighlightCarousel, Pagination, PasswordStrength, Person, Paywall, PersonDetails, 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, TertiaryButton, ThemeProvider, TitleWithCTA, Tab, Table, TabLink, Tabs, TextArea, TextField, TextFieldLegacy, TextLink, Tickbox, Tickbox2, Timer, TypeTags, UpsellCard, UpsellCards, UpsellSection, VideoControls, VideoWithControls } from './components';
2
2
  import BodyContent from './components/molecules/BodyContent';
3
3
  import Quote from './components/molecules/Quote';
4
4
  import { devices, breakpoints } from './styles/viewports';
@@ -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 { HarmonicHeader, HarmonicSubtitle, BodyCopyHarmonic, HarmonicOverline, ButtonText, Caption, NavigationText } from './components/Typography';
13
+ import { DisplayHeader, 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, 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, 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, };
@@ -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
  export declare const DEFAULT_THEME = ThemeType.Core;
5
6
  interface HarmonicThemeProviderProps {
6
7
  theme: ThemeType;
@@ -1,16 +1,17 @@
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;
16
17
  }
@@ -147,6 +147,10 @@ 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;
150
154
  /**
151
155
  * Defines the ARIA role of the element for accessibility purposes.
152
156
  */
@@ -222,7 +226,11 @@ export interface IDropdownProps {
222
226
  */
223
227
  ariaLabel?: string;
224
228
  /**
225
- * Defines if it is needed to trim the text of the Tab and add 3 dots in the end
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
226
234
  */
227
235
  trimTabText?: boolean;
228
236
  }
@@ -482,7 +490,7 @@ export declare type TCustomStrategyTabsFilterProps = Omit<IHotFilterProps, 'item
482
490
  pressedColor: ThemeColor;
483
491
  }>;
484
492
  };
485
- export declare type ICastFilterItem = Pick<AnchorHTMLAttributes<HTMLAnchorElement>, 'aria-label' | 'role'> & {
493
+ export declare type ICastFilterItem = {
486
494
  /**
487
495
  * Stable identifier for selection mapping and rendering keys.
488
496
  */
@@ -684,7 +692,9 @@ export interface IAccordionProps {
684
692
  /** The component to be wrapped into the accordion */
685
693
  children?: ReactNode;
686
694
  /** Set if accordions are stacked */
687
- showLine?: boolean;
695
+ showTopLine?: boolean;
696
+ /** Set if accordions are stacked */
697
+ showBottomLine?: boolean;
688
698
  /** Set init open */
689
699
  initOpen?: boolean;
690
700
  /** Custom CSS classes */
@@ -693,6 +703,12 @@ export interface IAccordionProps {
693
703
  expandedStateIcon?: IIconProps;
694
704
  /** Harmonic icon name and direction for collapsed state. Default is 'Expand' */
695
705
  collapsedStateIcon?: IIconProps;
706
+ /** Components wrapped into the accordion that are always visible */
707
+ visibleStandfirst?: ReactNode;
708
+ /** Allows styling of ChildrenContainer, e.g. margin or padding */
709
+ childrenContainerStyle?: React.CSSProperties;
710
+ /** Allows title margin styling for cast sheets */
711
+ titleMargin?: string;
696
712
  }
697
713
  export interface IAccordionsProps {
698
714
  /** Array of Accordion component */
@@ -769,6 +785,10 @@ export interface IReadMoreProps {
769
785
  * Optional truncation
770
786
  */
771
787
  truncate?: boolean;
788
+ /**
789
+ * Class name for custom styling
790
+ */
791
+ className?: string;
772
792
  }
773
793
  export interface IStatusBannerProps {
774
794
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@royaloperahouse/harmonic",
3
- "version": "1.0.8",
3
+ "version": "1.0.9-a",
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-npm-snapshot"
36
+ "publish-snapshot": "make prepare-release-candidate && make publish-snapshot"
37
37
  },
38
38
  "keywords": [
39
39
  "React",
@@ -1,2 +0,0 @@
1
- import CastFilters from './CastFilters';
2
- export default CastFilters;