@royaloperahouse/harmonic 0.1.10-a → 0.2.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/README.GIT +278 -0
- package/README.md +43 -252
- package/dist/components/Typography/Typography.d.ts +1 -1
- package/dist/components/Typography/utils.d.ts +7 -0
- package/dist/components/atoms/Buttons/Primary/utils.d.ts +2 -0
- package/dist/components/atoms/Buttons/Secondary/utils.d.ts +2 -1
- package/dist/components/atoms/Buttons/Tertiary/utils.d.ts +1 -1
- package/dist/components/index.d.ts +3 -3
- package/dist/components/molecules/AnnouncementBanner/AnnouncementBanner.style.d.ts +1 -1
- package/dist/components/molecules/Card/Card.style.d.ts +1 -1
- package/dist/components/molecules/Information/Information.style.d.ts +3 -12
- package/dist/components/molecules/Information/utils.d.ts +11 -0
- package/dist/components/molecules/PageHeading/Promo/Promo.d.ts +5 -0
- package/dist/components/molecules/PageHeading/Promo/Promo.style.d.ts +28 -0
- package/dist/components/molecules/PageHeading/Promo/components/Badge.d.ts +10 -0
- package/dist/components/molecules/PageHeading/Promo/components/Button.d.ts +10 -0
- package/dist/components/molecules/PageHeading/Promo/components/Image.d.ts +4 -0
- package/dist/components/molecules/PageHeading/Promo/index.d.ts +2 -0
- package/dist/components/molecules/PageHeading/index.d.ts +2 -1
- package/dist/components/molecules/Swipe/Swipe.d.ts +13 -0
- package/dist/components/molecules/Swipe/Swipe.style.d.ts +8 -0
- package/dist/components/molecules/Swipe/helper.d.ts +2 -0
- package/dist/components/molecules/Swipe/index.d.ts +2 -0
- package/dist/components/molecules/index.d.ts +2 -2
- package/dist/components/organisms/Carousels/Carousel/Carousel.d.ts +4 -0
- package/dist/components/organisms/Carousels/Carousel/Carousel.style.d.ts +11 -0
- package/dist/components/organisms/Carousels/Carousel/helper.d.ts +26 -0
- package/dist/components/organisms/Carousels/Carousel/index.d.ts +2 -0
- package/dist/components/organisms/Carousels/HighlightsCarousel/HighlightsCarousel.d.ts +4 -0
- package/dist/components/organisms/Carousels/HighlightsCarousel/HighlightsCarousel.style.d.ts +21 -0
- package/dist/components/organisms/Carousels/HighlightsCarousel/HighlightsCinema.d.ts +4 -0
- package/dist/components/organisms/Carousels/HighlightsCarousel/HighlightsCore.d.ts +4 -0
- package/dist/components/organisms/Carousels/HighlightsCarousel/HighlightsStream.d.ts +4 -0
- package/dist/components/organisms/Carousels/HighlightsCarousel/components/Buttons.d.ts +5 -0
- package/dist/components/organisms/Carousels/HighlightsCarousel/components/InfoSection.d.ts +10 -0
- package/dist/components/organisms/Carousels/HighlightsCarousel/components/SwipeCarousel.d.ts +12 -0
- package/dist/components/organisms/Carousels/HighlightsCarousel/helper.d.ts +291 -0
- package/dist/components/organisms/Carousels/HighlightsCarousel/index.d.ts +5 -0
- package/dist/components/organisms/Carousels/MinimalCarousel/MinimalCarousel.d.ts +4 -0
- package/dist/components/organisms/Carousels/MinimalCarousel/MinimalCarousel.style.d.ts +4 -0
- package/dist/components/organisms/Carousels/MinimalCarousel/index.d.ts +2 -0
- package/dist/components/organisms/index.d.ts +4 -1
- package/dist/harmonic.cjs.development.css +72 -32
- package/dist/harmonic.cjs.development.js +1939 -717
- 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 +1942 -730
- package/dist/harmonic.esm.js.map +1 -1
- package/dist/index.d.ts +5 -3
- package/dist/types/buttonTypes.d.ts +6 -2
- package/dist/types/card.d.ts +2 -2
- package/dist/types/carousel.d.ts +68 -9
- package/dist/types/editorial.d.ts +18 -6
- package/dist/types/image.d.ts +9 -3
- package/dist/types/impactHeader.d.ts +52 -1
- package/dist/types/index.d.ts +3 -3
- package/dist/types/information.d.ts +18 -41
- package/dist/types/progress.d.ts +4 -0
- package/dist/types/types.d.ts +5 -1
- package/dist/types/typography.d.ts +11 -5
- package/package.json +2 -1
|
@@ -5,7 +5,7 @@ export declare const CardContainer: import("styled-components").StyledComponent<
|
|
|
5
5
|
isCardClickable: boolean;
|
|
6
6
|
}, never>;
|
|
7
7
|
export declare const HoverContainer: import("styled-components").StyledComponent<"div", any, {
|
|
8
|
-
lineColor?:
|
|
8
|
+
lineColor?: "primary" | "primary-red" | "primary-black" | "base-white" | "base-black" | "base-dark-grey" | "base-mid-grey" | "base-light-grey" | "base-transparent" | "state-error" | "state-medium" | "state-good" | "state-focused" | "state-disabled" | "rbo-red-hovered" | "rbo-red-pressed" | "rbo-black-hovered" | "rbo-black-pressed" | "black-hovered" | "black-pressed" | "white-hovered" | "white-pressed" | "secondary-yellow" | "secondary-pink" | "secondary-orange" | "secondary-blue" | undefined;
|
|
9
9
|
}, never>;
|
|
10
10
|
export declare const ProgressContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
11
11
|
export declare const ContentContainer: import("styled-components").StyledComponent<"div", any, ICardContentContainerProps, never>;
|
|
@@ -1,13 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const InfoContent: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
1
|
+
export declare const InfoWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
3
2
|
export declare const InfoTitle: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
4
|
-
export declare const InfoCTAWrapper: import("styled-components").StyledComponent<"div", any,
|
|
5
|
-
|
|
6
|
-
infoThemed: boolean;
|
|
7
|
-
}, never>;
|
|
8
|
-
export declare const InfoWrapper: import("styled-components").StyledComponent<"div", any, {
|
|
9
|
-
background: IInformationBackgroundColour;
|
|
10
|
-
}, never>;
|
|
11
|
-
export declare const InfoBodyWrapper: import("styled-components").StyledComponent<"div", any, {
|
|
12
|
-
background: IInformationBackgroundColour;
|
|
13
|
-
}, never>;
|
|
3
|
+
export declare const InfoCTAWrapper: import("styled-components").StyledComponent<"div", any, Pick<import("../../../types/information").IInformationCTAProps, "theme" | "variant">, never>;
|
|
4
|
+
export declare const InfoBodyWrapper: import("styled-components").StyledComponent<({ children, size, color, className, ...props }: import("../../../types/typography").IGenericTypographyProps<HTMLParagraphElement>) => import("react").JSX.Element, any, {}, never>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { InformationCtaVariant } from '../../../types/information';
|
|
2
|
+
import { ThemeType } from '../../../types/types';
|
|
3
|
+
export declare const COLORS: {
|
|
4
|
+
readonly default: "var(--information-panel-button-color)";
|
|
5
|
+
readonly background: "var(--information-panel-button-bg-color)";
|
|
6
|
+
readonly hover: "var(--information-panel-button-hover-color)";
|
|
7
|
+
readonly pressed: "var(--information-panel-button-pressed-color)";
|
|
8
|
+
};
|
|
9
|
+
export declare const getTextColor: (variant: InformationCtaVariant | undefined, theme: ThemeType, colorValue: string) => string;
|
|
10
|
+
export declare const getBackgroundColor: (variant: InformationCtaVariant | undefined, colorValue: string) => string;
|
|
11
|
+
export declare const getBorderColor: (variant: InformationCtaVariant | undefined, colorValue: string) => string;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { IPageHeadingPromoProps } from '../../../../types/impactHeader';
|
|
3
|
+
import { ThemeChildProps } from '../../../../types/types';
|
|
4
|
+
declare const PageHeadingPromo: React.FC<IPageHeadingPromoProps & ThemeChildProps>;
|
|
5
|
+
export default PageHeadingPromo;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { ThemeType } from '../../../../types';
|
|
2
|
+
declare type ThemeProps = {
|
|
3
|
+
theme: ThemeType;
|
|
4
|
+
};
|
|
5
|
+
declare type TitleWrapperProps = ThemeProps & {
|
|
6
|
+
isButtonPresent: boolean;
|
|
7
|
+
};
|
|
8
|
+
declare type MainButtonProps = {
|
|
9
|
+
isAdditionalButtonPresent: boolean;
|
|
10
|
+
};
|
|
11
|
+
declare type ContentSectionProps = ThemeProps & {
|
|
12
|
+
showBlock: boolean;
|
|
13
|
+
};
|
|
14
|
+
declare type AdditionalContentProps = {
|
|
15
|
+
isBadgePresent: boolean;
|
|
16
|
+
};
|
|
17
|
+
export declare const Wrapper: import("styled-components").StyledComponent<"section", any, {}, never>;
|
|
18
|
+
export declare const ImageWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
19
|
+
export declare const SponsorWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
20
|
+
export declare const ImageButtonWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
21
|
+
export declare const ContentSection: import("styled-components").StyledComponent<"div", any, ContentSectionProps, never>;
|
|
22
|
+
export declare const BadgeWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
23
|
+
export declare const AdditionalContentWrapper: import("styled-components").StyledComponent<"div", any, AdditionalContentProps, never>;
|
|
24
|
+
export declare const MainButtonWrapper: import("styled-components").StyledComponent<"div", any, MainButtonProps, never>;
|
|
25
|
+
export declare const AdditionalButtonWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
26
|
+
export declare const TitleWrapper: import("styled-components").StyledComponent<"div", any, TitleWrapperProps, never>;
|
|
27
|
+
export declare const ContentWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
28
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ThemeType } from '../../../../../types';
|
|
3
|
+
import { PageHeadingPromoBadge } from '../../../../../types/impactHeader';
|
|
4
|
+
declare type Props = {
|
|
5
|
+
theme?: ThemeType;
|
|
6
|
+
badge?: PageHeadingPromoBadge;
|
|
7
|
+
isMobile: boolean;
|
|
8
|
+
};
|
|
9
|
+
declare const Badge: React.FC<Props>;
|
|
10
|
+
export default Badge;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { EditorialLink, ThemeType } from '../../../../../types';
|
|
3
|
+
import { PageHeadingPromoAdditionalLink } from '../../../../../types/impactHeader';
|
|
4
|
+
declare type Props = {
|
|
5
|
+
link: PageHeadingPromoAdditionalLink | EditorialLink;
|
|
6
|
+
theme?: ThemeType;
|
|
7
|
+
isMobile?: boolean;
|
|
8
|
+
};
|
|
9
|
+
declare const Button: React.FC<Props>;
|
|
10
|
+
export default Button;
|
|
@@ -3,5 +3,6 @@ import PageHeadingCinema from './Cinema';
|
|
|
3
3
|
import PageHeadingImpact from './Impact';
|
|
4
4
|
import PageHeadingPanel from './Panel';
|
|
5
5
|
import PageHeadingStream from './Stream';
|
|
6
|
+
import PageHeadingPromo from './Promo';
|
|
6
7
|
import PageHeadingCompact from './Compact/Compact';
|
|
7
|
-
export { PageHeadingCinema, PageHeadingCore, PageHeadingImpact, PageHeadingStream, PageHeadingCompact, PageHeadingPanel, };
|
|
8
|
+
export { PageHeadingCinema, PageHeadingCore, PageHeadingImpact, PageHeadingStream, PageHeadingCompact, PageHeadingPanel, PageHeadingPromo, };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface SwipeRef {
|
|
3
|
+
nextSlide: () => void;
|
|
4
|
+
prevSlide: () => void;
|
|
5
|
+
}
|
|
6
|
+
declare const Swipe: React.ForwardRefExoticComponent<{
|
|
7
|
+
children: React.ReactNode[];
|
|
8
|
+
infinite?: boolean | undefined;
|
|
9
|
+
slidesOffsetBefore?: number | undefined;
|
|
10
|
+
onIndexChange?: ((index: number) => void) | undefined;
|
|
11
|
+
onActiveChange?: ((value: boolean) => void) | undefined;
|
|
12
|
+
} & React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<SwipeRef>>;
|
|
13
|
+
export default Swipe;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const SWIPE_SLIDE_CLASS_NAME = "swipe-slide";
|
|
2
|
+
declare type SwipeTrackProps = {
|
|
3
|
+
translateX: number;
|
|
4
|
+
transitioning: boolean;
|
|
5
|
+
};
|
|
6
|
+
export declare const SwipeContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
7
|
+
export declare const SwipeTrack: import("styled-components").StyledComponent<"div", any, SwipeTrackProps, never>;
|
|
8
|
+
export {};
|
|
@@ -7,7 +7,7 @@ import ContactCard from './ContactCard';
|
|
|
7
7
|
import ContentSummary from './ContentSummary';
|
|
8
8
|
import Editorial from './Editorial';
|
|
9
9
|
import Information from './Information';
|
|
10
|
-
import { PageHeadingCinema, PageHeadingCore, PageHeadingImpact, PageHeadingPanel, PageHeadingStream, PageHeadingCompact } from './PageHeading';
|
|
10
|
+
import { PageHeadingCinema, PageHeadingCore, PageHeadingImpact, PageHeadingPanel, PageHeadingStream, PageHeadingCompact, PageHeadingPromo } from './PageHeading';
|
|
11
11
|
import Pagination from './Pagination';
|
|
12
12
|
import { PeopleListing, CreditListing } from './PeopleListing';
|
|
13
13
|
import PolicyLinks from './PolicyLinks';
|
|
@@ -33,4 +33,4 @@ import PasswordStrength from './PasswordStrength';
|
|
|
33
33
|
import Table from './Table';
|
|
34
34
|
import VideoWithControls from './VideoWithControls';
|
|
35
35
|
import SignUpForm from './SignUpForm';
|
|
36
|
-
export { Accordion, Accordions, AnnouncementBanner, AuxiliaryNav, Card, Cards, ContactCard, ContentSummary, CreditListing, Editorial, ImageWithCaption, Information, MiniCard, PageHeadingCinema, PageHeadingCompact, PageHeadingCore, PageHeadingImpact, PageHeadingPanel, PageHeadingStream, PasswordStrength, Pagination, PeopleListing, PolicyLinks, PromoWithTags, PromoWithTitle, RadioGroup, RadioGroup2, ReadMore, Quote, StatusBanner, SectionTitle, SearchBar, Select, Select2, Select2Async, Tabs, Table, TextOnly, UpsellCard, VideoWithControls, SignUpForm, };
|
|
36
|
+
export { Accordion, Accordions, AnnouncementBanner, AuxiliaryNav, Card, Cards, ContactCard, ContentSummary, CreditListing, Editorial, ImageWithCaption, Information, MiniCard, PageHeadingCinema, PageHeadingCompact, PageHeadingCore, PageHeadingImpact, PageHeadingPanel, PageHeadingPromo, PageHeadingStream, PasswordStrength, Pagination, PeopleListing, PolicyLinks, PromoWithTags, PromoWithTitle, RadioGroup, RadioGroup2, ReadMore, Quote, StatusBanner, SectionTitle, SearchBar, Select, Select2, Select2Async, Tabs, Table, TextOnly, UpsellCard, VideoWithControls, SignUpForm, };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ICarouselWrapperProps } from '../../../../types/carousel';
|
|
2
|
+
export declare const ImageCarouselWrapper: import("styled-components").StyledComponent<"div", any, ICarouselWrapperProps, never>;
|
|
3
|
+
export declare const CardsCarouselWrapper: import("styled-components").StyledComponent<"div", any, ICarouselWrapperProps, never>;
|
|
4
|
+
export declare const TitleButtonsGrid: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
5
|
+
export declare const CarouselInfoWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
6
|
+
export declare const TitleWrapper: import("styled-components").StyledComponent<"div", any, {
|
|
7
|
+
isDescriptionPresent: boolean;
|
|
8
|
+
}, never>;
|
|
9
|
+
export declare const ButtonsWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
10
|
+
export declare const TitleGridItem: import("styled-components").StyledComponent<"div", any, import("../../../../types/types").IGridItemProps, never>;
|
|
11
|
+
export declare const SwipeGridWrapper: import("styled-components").StyledComponent<"div", any, import("../../../../types/types").IGridItemProps, never>;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { CarouselType } from '../../../../types';
|
|
2
|
+
export declare const GRID_VALUES: {
|
|
3
|
+
desktop: {
|
|
4
|
+
gapsNumber: number;
|
|
5
|
+
columnsNumber: number;
|
|
6
|
+
gapsNumberOffset: number;
|
|
7
|
+
columnsNumberOffset: number;
|
|
8
|
+
largeCard: {
|
|
9
|
+
gapsPerSlide: number;
|
|
10
|
+
columnsPerSlide: number;
|
|
11
|
+
};
|
|
12
|
+
smallCard: {
|
|
13
|
+
gapsPerSlide: number;
|
|
14
|
+
columnsPerSlide: number;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
mobile: {
|
|
18
|
+
columnsNumber: number;
|
|
19
|
+
gapsNumber: number;
|
|
20
|
+
columnsPerSlide: number;
|
|
21
|
+
gapsPerSlide: number;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
export declare const getCardSlideDesktopStyles: (type: CarouselType, isActive?: boolean | undefined) => string;
|
|
25
|
+
export declare const getCardSlideMobileStyles: () => string;
|
|
26
|
+
export declare const getImageSlideStyles: (imageHeight: number) => string;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
declare type StyledProps = {
|
|
2
|
+
isCurrentSlide: boolean;
|
|
3
|
+
};
|
|
4
|
+
export declare const HighlightsGrid: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
5
|
+
export declare const CarouselTitleWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
6
|
+
export declare const HeaderWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
7
|
+
export declare const InfoWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
8
|
+
export declare const InfoLogoWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
9
|
+
export declare const InfoTitleWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
10
|
+
export declare const InfoTextWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
11
|
+
export declare const InfoLinkWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
12
|
+
export declare const CarouselWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
13
|
+
export declare const RotatorButtonsWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
14
|
+
export declare const RotatorButtonsWrapperMobile: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
15
|
+
export declare const HtmlBodyText: import("styled-components").StyledComponent<"p", any, {}, never>;
|
|
16
|
+
export declare const FirstButtonComponentWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
17
|
+
export declare const TimerWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
18
|
+
export declare const AdditionalInfoWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
19
|
+
export declare const InfoSubtitleWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
20
|
+
export declare const VideoWithControlsWrapper: import("styled-components").StyledComponent<"div", any, StyledProps, never>;
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { FunctionComponent } from 'react';
|
|
2
|
+
import { HighlightsCarouselSlide } from '../../../../../types/carousel';
|
|
3
|
+
declare type Props = Pick<HighlightsCarouselSlide, 'links' | 'auxiliaryCTA'>;
|
|
4
|
+
declare const Buttons: FunctionComponent<Props>;
|
|
5
|
+
export default Buttons;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { FunctionComponent, ReactElement } from 'react';
|
|
2
|
+
import { HighlightsCarouselSlide } from '../../../../../types/carousel';
|
|
3
|
+
import { ILogosProps } from '../../../../../types/types';
|
|
4
|
+
declare type Props = {
|
|
5
|
+
logo?: ReactElement<ILogosProps> | null;
|
|
6
|
+
slide: HighlightsCarouselSlide;
|
|
7
|
+
currentSlideIndex: number;
|
|
8
|
+
};
|
|
9
|
+
declare const InfoSection: FunctionComponent<Props>;
|
|
10
|
+
export default InfoSection;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React, { FunctionComponent } from 'react';
|
|
2
|
+
import { HighlightsCarouselSlideImage, HighlightsCarouselSlideVideo } from '../../../../../types/carousel';
|
|
3
|
+
import { SwipeRef } from '../../../../molecules/Swipe';
|
|
4
|
+
declare type Props = {
|
|
5
|
+
slidesMedia: (HighlightsCarouselSlideImage | HighlightsCarouselSlideVideo)[];
|
|
6
|
+
currentSlide: number;
|
|
7
|
+
setCurrentSlide: React.Dispatch<React.SetStateAction<number>>;
|
|
8
|
+
carouselRef: React.RefObject<SwipeRef>;
|
|
9
|
+
hasMultipleSlides: boolean;
|
|
10
|
+
};
|
|
11
|
+
declare const SwipeCarousel: FunctionComponent<Props>;
|
|
12
|
+
export default SwipeCarousel;
|