@royaloperahouse/harmonic 0.12.1-c → 0.13.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/CHANGELOG.md +5 -2
- package/README.GIT +278 -0
- package/README.md +43 -252
- package/dist/components/atoms/Dropdown/Dropdown.d.ts +1 -1
- package/dist/components/atoms/Tab/Tab.d.ts +1 -1
- package/dist/components/atoms/TextField/TextField.style.d.ts +1 -1
- package/dist/components/index.d.ts +2 -2
- package/dist/components/molecules/ContentSummary/ContentSummary.style.d.ts +1 -1
- package/dist/components/molecules/Information/Information.style.d.ts +2 -3
- package/dist/components/molecules/PageHeading/index.d.ts +1 -2
- package/dist/components/molecules/Pagination/Pagination.style.d.ts +1 -1
- package/dist/components/molecules/PeopleListing/PeopleListing.d.ts +1 -1
- package/dist/components/molecules/PeopleListing/PeopleListing.style.d.ts +2 -2
- package/dist/components/molecules/PromoWithTitle/PromoWithTitle.style.d.ts +3 -273
- package/dist/components/molecules/index.d.ts +2 -2
- package/dist/harmonic.cjs.development.css +0 -319
- package/dist/harmonic.cjs.development.js +132 -194
- package/dist/harmonic.cjs.development.js.map +1 -1
- package/dist/harmonic.cjs.production.min.js +1 -1
- package/dist/harmonic.cjs.production.min.js.map +1 -1
- package/dist/harmonic.esm.js +141 -205
- package/dist/harmonic.esm.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/styles/HarmonicThemeProvider/HarmonicThemeProvider.d.ts +0 -1
- package/dist/types/impactHeader.d.ts +2 -20
- package/dist/types/types.d.ts +4 -68
- package/package.json +1 -1
- package/dist/components/molecules/CastFilter/CastFilters.d.ts +0 -4
- package/dist/components/molecules/CastFilter/CastFilters.style.d.ts +0 -14
- package/dist/components/molecules/CastFilter/index.d.ts +0 -2
- package/dist/components/molecules/PageHeading/Highlight/Highlight.d.ts +0 -4
- package/dist/components/molecules/PageHeading/Highlight/Highlight.style.d.ts +0 -9
- package/dist/components/molecules/PageHeading/Highlight/index.d.ts +0 -2
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, HotFilters, Icon, ImageAspectRatioWrapper, ImageWithCaption, Information, Navigation, MinimalCarousel, Overline, PageHeading, PageHeadingCompact, PageHeadingImpact, PageHeadingPanel,
|
|
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, HotFilters, 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, ThemeProvider, TitleWithCTA, Tab, Table, TabLink, Tabs, TextArea, TextField, TextFieldLegacy, TextLink, Tickbox, Tickbox2, Timer, TypeTags, UpsellCard, 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';
|
|
@@ -11,4 +11,4 @@ import HarmonicThemeProvider, { useHarmonicTheme } from './styles/HarmonicThemeP
|
|
|
11
11
|
import { HarmonicSize } from './types/typography';
|
|
12
12
|
import { HarmonicHeader, HarmonicSubtitle, BodyCopyHarmonic, HarmonicOverline, ButtonText, Caption, NavigationText } from './components/Typography';
|
|
13
13
|
export { useHarmonicTheme };
|
|
14
|
-
export { Accordion, Accordions, AnchorBar, AnnouncementBanner, AltHeader, AnchorTabBar, AuxiliaryButton, AuxiliaryNav, AspectRatio, BodyContent, 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, HotFilters, Icon, IconNameType, ImageAspectRatioWrapper, ImageWithCaption, Information, IInformationCTAProps, IInformationTitleProps, ITimerProps, IntegratedTimerProps, MinimalCarousel, MiniCard, ModalWindow, Navigation, Overline, PageHeading, PageHeadingCompact, PageHeadingImpact, PageHeadingPanel,
|
|
14
|
+
export { Accordion, Accordions, AnchorBar, AnnouncementBanner, AltHeader, AnchorTabBar, AuxiliaryButton, AuxiliaryNav, AspectRatio, BodyContent, 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, HotFilters, 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, ThemeColor, ThemeProvider, ThemeType, TitleWithCTA, Tickbox, Tickbox2, TickboxMode, Timer, TypeTags, UpsellCard, UpsellSection, Quote, VideoControls, VideoWithControls, zIndexes, HarmonicHeader, HarmonicSubtitle, BodyCopyHarmonic, HarmonicOverline, ButtonText, Caption, NavigationText, };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { EditorialLink
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { EditorialLink } from '../types';
|
|
3
3
|
import { HeaderHierarchy, TypographyLevel } from './typography';
|
|
4
4
|
export interface CustomSponsorImageData {
|
|
5
5
|
/**
|
|
@@ -190,21 +190,3 @@ export interface IPageHeadingPromoProps {
|
|
|
190
190
|
/** Custom CSS classes */
|
|
191
191
|
className?: string;
|
|
192
192
|
}
|
|
193
|
-
export interface IPageHeadingHighlightProps {
|
|
194
|
-
/**
|
|
195
|
-
* Image to display in the right hand panel, aspect ratio 4:3
|
|
196
|
-
*/
|
|
197
|
-
image: ImgHTMLAttributes<HTMLImageElement>;
|
|
198
|
-
/**
|
|
199
|
-
* Optional change to background color
|
|
200
|
-
*/
|
|
201
|
-
background?: ThemeColor;
|
|
202
|
-
/**
|
|
203
|
-
* The component(s) to be wrapped in the page header
|
|
204
|
-
*/
|
|
205
|
-
children: ReactNode;
|
|
206
|
-
/**
|
|
207
|
-
* Custom CSS classes
|
|
208
|
-
*/
|
|
209
|
-
className?: string;
|
|
210
|
-
}
|
package/dist/types/types.d.ts
CHANGED
|
@@ -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
|
*/
|
|
@@ -218,11 +214,7 @@ export interface IDropdownProps {
|
|
|
218
214
|
*/
|
|
219
215
|
ariaLabel?: string;
|
|
220
216
|
/**
|
|
221
|
-
*
|
|
222
|
-
*/
|
|
223
|
-
tabLinkId?: string;
|
|
224
|
-
/**
|
|
225
|
-
* Defines if it is needed to trim the text of the Tab and add 3 dots in the end
|
|
217
|
+
* Defines if it is needed to trim the text of the Tab and add 3 dots in the end
|
|
226
218
|
*/
|
|
227
219
|
trimTabText?: boolean;
|
|
228
220
|
}
|
|
@@ -346,10 +338,10 @@ export declare type ListingRole = {
|
|
|
346
338
|
dataROH?: string;
|
|
347
339
|
};
|
|
348
340
|
export interface IPeopleListing {
|
|
349
|
-
/**
|
|
341
|
+
/**
|
|
342
|
+
* List of roles to be displayed
|
|
343
|
+
*/
|
|
350
344
|
roles: ListingRole[];
|
|
351
|
-
/** Custom CSS classes */
|
|
352
|
-
className?: string;
|
|
353
345
|
}
|
|
354
346
|
export interface IPagination {
|
|
355
347
|
/**
|
|
@@ -425,62 +417,6 @@ export declare type IHotFilterProps = {
|
|
|
425
417
|
selectedIndex?: number;
|
|
426
418
|
onSelect?: (index: number) => void;
|
|
427
419
|
};
|
|
428
|
-
export declare type ICastFilterItem = Pick<AnchorHTMLAttributes<HTMLAnchorElement>, 'aria-label' | 'role'> & {
|
|
429
|
-
/**
|
|
430
|
-
* Name of the cast member shown below the image circle. Required.
|
|
431
|
-
*/
|
|
432
|
-
name: string;
|
|
433
|
-
/**
|
|
434
|
-
* Image source for the image to be shown. Optional but if not included an unaesthetic placeholder will show.
|
|
435
|
-
*/
|
|
436
|
-
image?: string;
|
|
437
|
-
onClick?: () => void;
|
|
438
|
-
};
|
|
439
|
-
export declare type ICastFiltersProps = {
|
|
440
|
-
/**
|
|
441
|
-
* Array of cast to filter by.
|
|
442
|
-
*/
|
|
443
|
-
cast: ICastFilterItem[];
|
|
444
|
-
/**
|
|
445
|
-
* A classname is required for the HarmonicThemeProvider to provide styles properly.
|
|
446
|
-
* If it is not provided here it will default to 'cast-filters'.
|
|
447
|
-
*/
|
|
448
|
-
className?: string;
|
|
449
|
-
/**
|
|
450
|
-
* Indices of currently selected cast in the `cast` array.
|
|
451
|
-
*/
|
|
452
|
-
selectedIndices?: number[];
|
|
453
|
-
/**
|
|
454
|
-
* Text shown at the top of the component, e.g. 'Filter by cast'. If this is not provided
|
|
455
|
-
* the component will render without any.
|
|
456
|
-
*/
|
|
457
|
-
headingText?: string;
|
|
458
|
-
/**
|
|
459
|
-
* Override the text of the primary CTA. Default is 'Apply'.
|
|
460
|
-
*/
|
|
461
|
-
ctaText?: string;
|
|
462
|
-
/**
|
|
463
|
-
* Override the text of the text link. Default is 'Clear'.
|
|
464
|
-
*/
|
|
465
|
-
textLinkText?: string;
|
|
466
|
-
/**
|
|
467
|
-
* Default image to show in cases where a cast member image prop is missing.
|
|
468
|
-
* If this is undefined then a light grey background will be displayed instead.
|
|
469
|
-
*/
|
|
470
|
-
placeholderImage?: string;
|
|
471
|
-
/**
|
|
472
|
-
* Handle selecting individual cast filters.
|
|
473
|
-
*/
|
|
474
|
-
onSelect?: (index: number) => void;
|
|
475
|
-
/**
|
|
476
|
-
* Handle clicking the primary CTA.
|
|
477
|
-
*/
|
|
478
|
-
onApply?: (indices: number[]) => void;
|
|
479
|
-
/**
|
|
480
|
-
* Handle clicking the text link.
|
|
481
|
-
*/
|
|
482
|
-
onClear?: () => void;
|
|
483
|
-
};
|
|
484
420
|
export interface ISponsorshipProps {
|
|
485
421
|
/**
|
|
486
422
|
* Source URL for Sponsorship IFRAME.
|
package/package.json
CHANGED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export declare const CastFiltersComponentWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
2
|
-
export declare const CastFiltersWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
3
|
-
export declare const CastWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
4
|
-
export declare const ActionButtons: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
5
|
-
export declare const PersonWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
6
|
-
export declare const PersonToggle: import("styled-components").StyledComponent<"div", any, {
|
|
7
|
-
isSelected: boolean;
|
|
8
|
-
}, never>;
|
|
9
|
-
export declare const PersonImage: import("styled-components").StyledComponent<"img", any, {}, never>;
|
|
10
|
-
export declare const MissingImage: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
11
|
-
export declare const PersonName: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
12
|
-
export declare const Decal: import("styled-components").StyledComponent<"div", any, {
|
|
13
|
-
isSelected: boolean;
|
|
14
|
-
}, never>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ThemeColor } from '../../../../types';
|
|
2
|
-
export declare const HighlightPanelGrid: import("styled-components").StyledComponent<"div", any, {
|
|
3
|
-
$background: ThemeColor;
|
|
4
|
-
}, never>;
|
|
5
|
-
export declare const LeftPanel: import("styled-components").StyledComponent<"div", any, {
|
|
6
|
-
hasImage: boolean;
|
|
7
|
-
}, never>;
|
|
8
|
-
export declare const RightPanel: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
9
|
-
export declare const Wrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|