@royaloperahouse/harmonic 0.15.0 → 0.16.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 +3 -0
- 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/Card/Card.style.d.ts +1 -1
- package/dist/components/molecules/ContentSummary/ContentSummary.style.d.ts +1 -1
- package/dist/components/molecules/Information/Information.style.d.ts +1 -1
- package/dist/components/molecules/Pagination/Pagination.style.d.ts +1 -1
- package/dist/components/molecules/PromoWithTags/PromoWithTags.style.d.ts +2 -2
- package/dist/components/molecules/PromoWithTitle/PromoWithTitle.style.d.ts +2 -2
- package/dist/components/molecules/SkipToMain/SkipToMain.d.ts +20 -0
- package/dist/components/molecules/SkipToMain/SkipToMain.style.d.ts +6 -0
- package/dist/components/molecules/SkipToMain/index.d.ts +2 -0
- package/dist/components/molecules/index.d.ts +2 -1
- package/dist/components/organisms/Navigation/Navigation.d.ts +1 -1
- package/dist/harmonic.cjs.development.js +6765 -6663
- 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 +6782 -6680
- package/dist/harmonic.esm.js.map +1 -1
- package/dist/types/navigation.d.ts +4 -0
- package/dist/types/types.d.ts +10 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ITabProps } from '../../../types/types';
|
|
3
|
-
declare const Tab: ({ title, titleLink, onClick, onFocus, onReset, selected, iconName, iconDirection, withIcon, withTextInMobile, trimText, className, role, ariaLabel, color, isOpen, }: ITabProps) => React.JSX.Element;
|
|
3
|
+
declare const Tab: ({ title, titleLink, onClick, onFocus, onReset, selected, iconName, iconDirection, withIcon, withTextInMobile, trimText, className, role, ariaLabel, color, dataTestId, isOpen, }: ITabProps) => React.JSX.Element;
|
|
4
4
|
export default Tab;
|
|
@@ -7,4 +7,4 @@ export declare const Input: import("styled-components").StyledComponent<"input",
|
|
|
7
7
|
export declare const ShowHideButton: import("styled-components").StyledComponent<"button", any, {}, never>;
|
|
8
8
|
export declare const TextLabel: import("styled-components").StyledComponent<"div", any, Pick<ITextFieldProps, "darkMode">, never>;
|
|
9
9
|
export declare const ErrorLabel: import("styled-components").StyledComponent<"div", any, Pick<ITextFieldProps, "darkMode">, never>;
|
|
10
|
-
export declare const BodyCopyHarmonicWithWrapper: import("styled-components").StyledComponent<(
|
|
10
|
+
export declare const BodyCopyHarmonicWithWrapper: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("../../../types/typography").ITaggedTypographyProps & import("react").RefAttributes<HTMLParagraphElement>>, any, {}, never>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { DisplayHeader, HarmonicHeader, HarmonicSubtitle, BodyCopyHarmonic, HarmonicOverline, ButtonText, Caption, NavigationText } from './Typography';
|
|
2
2
|
import { AltHeader, BodyText, CinemaBadge, ControlledDropdown, Grid, GridItem, Header, Icon, ImageAspectRatioWrapper, Overline, PrimaryButton, Progress, Radio, Radio2, RotatorButtons, SecondaryButton, SecondaryLogo, TertiaryButton, SectionSplitter, SponsorLogo, Sponsorship, Stepper, StreamBadge, Subtitle, Tab, TabLink, TextLogo, TextArea, TextField, TextFieldLegacy, TextLink, Tickbox, Tickbox2, Timer, TypeTags, VideoControls } from './atoms';
|
|
3
3
|
import { AnchorTabBar, Footer, Navigation, StickyBar, TitleWithCTA, UpsellSection, Carousel, MinimalCarousel, HighlightsCarousel, HighlightsCarouselCinema, HighlightsCarouselCore, HighlightsCarouselStream } from './organisms';
|
|
4
|
-
import { Accordion, Accordions, AnchorBar, AnnouncementBanner, AuxiliaryNav, Card, Cards, ContactCard, ContentSummary, CreditListing, Editorial, HotFilters, ImageWithCaption, Information, PageHeading, PageHeadingCompact, PageHeadingImpact, PageHeadingPanel, PageHeadingPromo, PageHeadingHighlight, PasswordStrength, Pagination, PeopleListing, PromoWithTags, PromoWithTitle, RadioGroup, RadioGroup2, ReadMore, StatusBanner, SearchBar, SectionTitle, Select, Select2, Select2Async, SignUpForm, Table, Tabs, UpsellCard, VideoWithControls } from './molecules';
|
|
4
|
+
import { Accordion, Accordions, AnchorBar, AnnouncementBanner, AuxiliaryNav, Card, Cards, ContactCard, ContentSummary, CreditListing, Editorial, HotFilters, ImageWithCaption, Information, PageHeading, PageHeadingCompact, PageHeadingImpact, PageHeadingPanel, PageHeadingPromo, PageHeadingHighlight, PasswordStrength, Pagination, PeopleListing, PromoWithTags, PromoWithTitle, RadioGroup, RadioGroup2, ReadMore, StatusBanner, SearchBar, SectionTitle, Select, Select2, Select2Async, SignUpForm, Table, Tabs, UpsellCard, VideoWithControls, SkipToMain } from './molecules';
|
|
5
5
|
import ThemeProvider from '../styles/ThemeProvider';
|
|
6
6
|
import GlobalStyles from '../styles/GlobalStyles';
|
|
7
|
-
export { DisplayHeader, HarmonicHeader, HarmonicSubtitle, BodyCopyHarmonic, HarmonicOverline, ButtonText, Caption, NavigationText, };
|
|
7
|
+
export { DisplayHeader, HarmonicHeader, HarmonicSubtitle, BodyCopyHarmonic, HarmonicOverline, ButtonText, Caption, NavigationText, SkipToMain, };
|
|
8
8
|
export { Accordion, Accordions, AnchorBar, AnnouncementBanner, AltHeader, AnchorTabBar, AuxiliaryNav, BodyText, Card, Cards, Carousel, ContactCard, ContentSummary, CinemaBadge, ControlledDropdown, CreditListing, Editorial, Footer, GlobalStyles, Grid, GridItem, HighlightsCarousel, HighlightsCarouselCinema, HighlightsCarouselCore, HighlightsCarouselStream, Header, HotFilters, Icon, ImageAspectRatioWrapper, ImageWithCaption, Information, MinimalCarousel, Navigation, Overline, PageHeading, PageHeadingCompact, PageHeadingImpact, PageHeadingPanel, PageHeadingHighlight, PageHeadingPromo, Pagination, PasswordStrength, PeopleListing, PrimaryButton, Progress, PromoWithTags, PromoWithTitle, Radio, Radio2, RadioGroup, RadioGroup2, ReadMore, RotatorButtons, SecondaryButton, SecondaryLogo, StatusBanner, SearchBar, SectionTitle, Select, Select2, Select2Async, SponsorLogo, SignUpForm, Sponsorship, Stepper, StickyBar, StreamBadge, Subtitle, TertiaryButton, ThemeProvider, TitleWithCTA, SectionSplitter, Tab, TabLink, Table, Tabs, TextArea, TextField, TextFieldLegacy, TextLink, TextLogo, Tickbox, Tickbox2, Timer, TypeTags, UpsellCard, UpsellSection, VideoControls, VideoWithControls, };
|
|
@@ -11,7 +11,7 @@ export declare const ProgressContainer: import("styled-components").StyledCompon
|
|
|
11
11
|
export declare const ContentContainer: import("styled-components").StyledComponent<"div", any, ICardContentContainerProps, never>;
|
|
12
12
|
export declare const TitleContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
13
13
|
export declare const TitleContainerMobile: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
14
|
-
export declare const TextContainer: import("styled-components").StyledComponent<(
|
|
14
|
+
export declare const TextContainer: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("../../../types/typography").ITaggedTypographyProps & import("react").RefAttributes<HTMLParagraphElement>>, any, {}, never>;
|
|
15
15
|
export declare const HighlightTextContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
16
16
|
export declare const SubtitleContainer: import("styled-components").StyledComponent<"span", any, {}, never>;
|
|
17
17
|
export declare const LabelContainer: import("styled-components").StyledComponent<"div", any, {
|
|
@@ -7,7 +7,7 @@ interface ContentSummaryProps {
|
|
|
7
7
|
interface Clickable {
|
|
8
8
|
clickable?: boolean;
|
|
9
9
|
}
|
|
10
|
-
export declare const BodyTextRelative: import("styled-components").StyledComponent<(
|
|
10
|
+
export declare const BodyTextRelative: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("../../../types/typography").ITaggedTypographyProps & import("react").RefAttributes<HTMLParagraphElement>>, any, {}, never>;
|
|
11
11
|
export declare const ContentSummaryWrapper: import("styled-components").StyledComponent<"article", any, Clickable, never>;
|
|
12
12
|
export declare const ContentSummaryImageWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
13
13
|
export declare const ContentSummaryTextWrapper: import("styled-components").StyledComponent<"div", any, ContentSummaryProps, never>;
|
|
@@ -2,4 +2,4 @@ import type { InformationCTAWrapperProps } from '../../../types/information';
|
|
|
2
2
|
export declare const InfoWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
3
3
|
export declare const InfoTitle: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
4
4
|
export declare const InfoCTAWrapper: import("styled-components").StyledComponent<"div", any, InformationCTAWrapperProps, never>;
|
|
5
|
-
export declare const InfoBodyWrapper: import("styled-components").StyledComponent<(
|
|
5
|
+
export declare const InfoBodyWrapper: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("../../../types/typography").ITaggedTypographyProps & import("react").RefAttributes<HTMLParagraphElement>>, any, {}, never>;
|
|
@@ -4,6 +4,6 @@ export declare const MorePages: import("styled-components").StyledComponent<"spa
|
|
|
4
4
|
export declare const PageNumberWrapper: import("styled-components").StyledComponent<"ol", any, {}, never>;
|
|
5
5
|
export declare const LastPageItem: import("styled-components").StyledComponent<"li", any, {}, never>;
|
|
6
6
|
export declare const PreviousPageItem: import("styled-components").StyledComponent<"li", any, {}, never>;
|
|
7
|
-
export declare const TextLinkPagination: import("styled-components").StyledComponent<(
|
|
7
|
+
export declare const TextLinkPagination: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("../../../types/typography").ITaggedTypographyProps & import("react").RefAttributes<HTMLParagraphElement>>, any, {
|
|
8
8
|
active?: boolean | undefined;
|
|
9
9
|
}, never>;
|
|
@@ -15,5 +15,5 @@ export declare const PromoWithTagsContentWrapper: import("styled-components").St
|
|
|
15
15
|
export declare const TimerWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
16
16
|
export declare const EndDateText: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
17
17
|
export declare const HarmonicHeaderWithWrapper: import("styled-components").StyledComponent<({ children, size, em, color, serif, hierarchy: Tag, className, }: import("../../../types/typography").IHarmonicHeaderProps) => import("react").JSX.Element, any, {}, never>;
|
|
18
|
-
export declare const BodyCopyHarmonicWithWrapper: import("styled-components").StyledComponent<(
|
|
19
|
-
export declare const HarmonicSubtitleWithWrapper: import("styled-components").StyledComponent<({ children, size, color, className }: import("../../../types/typography").
|
|
18
|
+
export declare const BodyCopyHarmonicWithWrapper: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("../../../types/typography").ITaggedTypographyProps & import("react").RefAttributes<HTMLParagraphElement>>, any, {}, never>;
|
|
19
|
+
export declare const HarmonicSubtitleWithWrapper: import("styled-components").StyledComponent<({ children, size, color, className, tag: Tag, }: import("../../../types/typography").ITaggedTypographyProps) => import("react").JSX.Element, any, {}, never>;
|
|
@@ -3,6 +3,6 @@ export declare const PromoWithTitleGrid: import("styled-components").StyledCompo
|
|
|
3
3
|
export declare const PromoWithTitleImageWrapper: import("styled-components").StyledComponent<"div", any, IEditorialGridProps, never>;
|
|
4
4
|
export declare const PromoWithTitleContentWrapper: import("styled-components").StyledComponent<"div", any, IEditorialGridProps, never>;
|
|
5
5
|
export declare const HarmonicHeaderWithWrapper: import("styled-components").StyledComponent<({ children, size, em, color, serif, hierarchy: Tag, className, }: import("../../../types/typography").IHarmonicHeaderProps) => import("react").JSX.Element, any, {}, never>;
|
|
6
|
-
export declare const HarmonicSubtitleWithWrapper: import("styled-components").StyledComponent<({ children, size, color, className }: import("../../../types/typography").
|
|
7
|
-
export declare const BodyCopyHarmonicWithWrapper: import("styled-components").StyledComponent<(
|
|
6
|
+
export declare const HarmonicSubtitleWithWrapper: import("styled-components").StyledComponent<({ children, size, color, className, tag: Tag, }: import("../../../types/typography").ITaggedTypographyProps) => import("react").JSX.Element, any, {}, never>;
|
|
7
|
+
export declare const BodyCopyHarmonicWithWrapper: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("../../../types/typography").ITaggedTypographyProps & import("react").RefAttributes<HTMLParagraphElement>>, any, {}, never>;
|
|
8
8
|
export declare const ButtonsContainer: import("styled-components").StyledComponent<"div", any, IEditorialGridProps, never>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ISkipToMainProps } from '../../../types/types';
|
|
3
|
+
/**
|
|
4
|
+
* An accessible component which allows Assistive Technology users to move the focus
|
|
5
|
+
* to main content, skipping the Nav bar. On desktop, it will remain invisible until focused.
|
|
6
|
+
* On mobile, it will remain invisible even when focused.
|
|
7
|
+
*
|
|
8
|
+
* It's default functionality is to skip to the <main> tag.
|
|
9
|
+
* However, skipToId may be passed as a prop to target any element with corresponding id.
|
|
10
|
+
* If neither of those is found in the document, the component will be hidden and not focusable.
|
|
11
|
+
*
|
|
12
|
+
* To prevent SSR errors, the component will return `null` when document object is undefined.
|
|
13
|
+
* In practice, testing reveals that this component renders correctly on most SSR'd pages,
|
|
14
|
+
* but this check serves as an additional safeguard.
|
|
15
|
+
*
|
|
16
|
+
* @param skipToId - an optional id of the element to be skipped to, instead of the default <main> tag target.
|
|
17
|
+
* @returns JSX.Element | null
|
|
18
|
+
*/
|
|
19
|
+
declare const SkipToMain: ({ skipToId }: ISkipToMainProps) => React.JSX.Element | null;
|
|
20
|
+
export default SkipToMain;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
interface FocusableTabProps {
|
|
2
|
+
hide?: boolean;
|
|
3
|
+
}
|
|
4
|
+
export declare const FocusableTab: import("styled-components").StyledComponent<({ title, titleLink, onClick, onFocus, onReset, selected, iconName, iconDirection, withIcon, withTextInMobile, trimText, className, role, ariaLabel, color, dataTestId, isOpen, }: import("../../../types/types").ITabProps) => import("react").JSX.Element, any, FocusableTabProps, never>;
|
|
5
|
+
export declare const HiddenBlock: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
6
|
+
export {};
|
|
@@ -33,4 +33,5 @@ import Table from './Table';
|
|
|
33
33
|
import VideoWithControls from './VideoWithControls';
|
|
34
34
|
import SignUpForm from './SignUpForm';
|
|
35
35
|
import AnchorBar from './AnchorBar';
|
|
36
|
-
|
|
36
|
+
import SkipToMain from './SkipToMain';
|
|
37
|
+
export { Accordion, Accordions, AnchorBar, AnnouncementBanner, AuxiliaryNav, Card, Cards, ContactCard, ContentSummary, CreditListing, Editorial, HotFilters, ImageWithCaption, Information, MiniCard, PageHeading, PageHeadingCompact, PageHeadingImpact, PageHeadingHighlight, PageHeadingPanel, PageHeadingPromo, PasswordStrength, Pagination, PeopleListing, PolicyLinks, PromoWithTags, PromoWithTitle, RadioGroup, RadioGroup2, ReadMore, StatusBanner, SectionTitle, SearchBar, Select, Select2, Select2Async, SignUpForm, Tabs, Table, UpsellCard, VideoWithControls, SkipToMain, };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { INavigationProps } from '../../../types/navigation';
|
|
3
|
-
declare const Navigation: ({ dataNavTop, menuData, onSearch, onLink, crest, className, logoLink, }: INavigationProps) => React.JSX.Element;
|
|
3
|
+
declare const Navigation: ({ dataNavTop, menuData, onSearch, onLink, crest, className, logoLink, skipToId, }: INavigationProps) => React.JSX.Element;
|
|
4
4
|
export default Navigation;
|