@royaloperahouse/harmonic 0.12.1-b → 0.12.1-c
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 +2 -2
- package/dist/components/Typography/Typography.d.ts +273 -2
- package/dist/components/index.d.ts +3 -3
- 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/PromoWithTags/PromoWithTags.style.d.ts +271 -1
- package/dist/components/molecules/PromoWithTitle/PromoWithTitle.style.d.ts +271 -1
- package/dist/components/molecules/Quote/Quote.style.d.ts +3 -4
- package/dist/components/molecules/index.d.ts +1 -3
- package/dist/components/organisms/Carousels/Carousel/Carousel.style.d.ts +271 -1
- package/dist/harmonic.cjs.development.js +6842 -6850
- 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 +6859 -6867
- package/dist/harmonic.esm.js.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/types/image.d.ts +5 -9
- package/dist/types/quote.d.ts +4 -15
- package/dist/types/types.d.ts +3 -13
- package/dist/types/typography.d.ts +6 -2
- package/package.json +1 -1
- package/dist/components/molecules/SkipToMain/SkipToMain.d.ts +0 -17
- package/dist/components/molecules/SkipToMain/SkipToMain.style.d.ts +0 -7
- package/dist/components/molecules/SkipToMain/index.d.ts +0 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
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, PageHeadingHighlight, 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,
|
|
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, PageHeadingHighlight, 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
|
+
import Quote from './components/molecules/Quote';
|
|
3
4
|
import { devices, breakpoints } from './styles/viewports';
|
|
4
5
|
import zIndexes from './styles/zIndexes';
|
|
5
6
|
import { AspectRatio, ButtonType, CarouselType, Colors, IconNameType, IntegratedTimerProps, ITimerProps, TickboxMode, ThemeColor, ThemeType, EditorialLink, IInformationTitleProps, IInformationCTAProps } from './types';
|
package/dist/types/image.d.ts
CHANGED
|
@@ -38,17 +38,13 @@ export interface IImageAspectRatioWrapperProps {
|
|
|
38
38
|
alt?: string;
|
|
39
39
|
}
|
|
40
40
|
export interface IImageWithCaptionProps {
|
|
41
|
-
/**
|
|
42
|
-
* Aspect ratio of the contained image
|
|
43
|
-
*/
|
|
41
|
+
/** Aspect ratio of the contained image */
|
|
44
42
|
aspectRatio?: AspectRatio;
|
|
45
|
-
/**
|
|
46
|
-
* Image caption or credit
|
|
47
|
-
*/
|
|
43
|
+
/** Image caption or credit */
|
|
48
44
|
caption: string;
|
|
49
|
-
/**
|
|
50
|
-
|
|
51
|
-
|
|
45
|
+
/** Alternative text describing the image content for accessibility purposes. */
|
|
46
|
+
altText?: string;
|
|
47
|
+
/** Image element */
|
|
52
48
|
children: ReactElement<HTMLImageElement>;
|
|
53
49
|
}
|
|
54
50
|
export interface IImageWithCaptionWrapperProps extends StyledProps<{
|
package/dist/types/quote.d.ts
CHANGED
|
@@ -1,19 +1,8 @@
|
|
|
1
|
-
import { StyledProps } from 'styled-components';
|
|
2
1
|
export interface IQuoteProps {
|
|
3
|
-
/**
|
|
4
|
-
* Text placed in the Quote component
|
|
5
|
-
*/
|
|
2
|
+
/** Text placed in the Quote component */
|
|
6
3
|
text: string;
|
|
7
|
-
/**
|
|
8
|
-
* Attribution under the main text
|
|
9
|
-
*/
|
|
4
|
+
/** Attribution under the main text */
|
|
10
5
|
attribution?: string;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
displayAttribution: boolean;
|
|
14
|
-
}> {
|
|
15
|
-
/**
|
|
16
|
-
* Set visibility of the attribution block
|
|
17
|
-
*/
|
|
18
|
-
displayAttribution: boolean;
|
|
6
|
+
/** Custom CSS classes */
|
|
7
|
+
className?: string;
|
|
19
8
|
}
|
package/dist/types/types.d.ts
CHANGED
|
@@ -346,10 +346,10 @@ export declare type ListingRole = {
|
|
|
346
346
|
dataROH?: string;
|
|
347
347
|
};
|
|
348
348
|
export interface IPeopleListing {
|
|
349
|
-
/**
|
|
350
|
-
* List of roles to be displayed
|
|
351
|
-
*/
|
|
349
|
+
/** List of roles to be displayed */
|
|
352
350
|
roles: ListingRole[];
|
|
351
|
+
/** Custom CSS classes */
|
|
352
|
+
className?: string;
|
|
353
353
|
}
|
|
354
354
|
export interface IPagination {
|
|
355
355
|
/**
|
|
@@ -722,13 +722,3 @@ export declare enum LinkTarget {
|
|
|
722
722
|
*/
|
|
723
723
|
Blank = "_blank"
|
|
724
724
|
}
|
|
725
|
-
export interface ISkipToMainProps {
|
|
726
|
-
/**
|
|
727
|
-
* Custom CSS class
|
|
728
|
-
*/
|
|
729
|
-
className?: string;
|
|
730
|
-
/**
|
|
731
|
-
* Defines which tag the button should skip to. Default: "main"
|
|
732
|
-
*/
|
|
733
|
-
skipToTag?: string;
|
|
734
|
-
}
|
|
@@ -22,9 +22,13 @@ export interface IGenericTypographyProps<T extends HTMLElement = HTMLParagraphEl
|
|
|
22
22
|
bold?: boolean;
|
|
23
23
|
className?: string;
|
|
24
24
|
}
|
|
25
|
-
export
|
|
25
|
+
export declare type HarmonicHeaderProps = (IGenericTypographyProps<HTMLHeadingElement> & {
|
|
26
26
|
hierarchy: HeaderHierarchy;
|
|
27
|
-
|
|
27
|
+
tag?: never;
|
|
28
|
+
}) | (IGenericTypographyProps<HTMLHeadingElement> & {
|
|
29
|
+
tag?: React.ElementType;
|
|
30
|
+
hierarchy?: never;
|
|
31
|
+
});
|
|
28
32
|
export interface ITaggedTypographyProps extends IGenericTypographyProps {
|
|
29
33
|
/** Specifies the HTML tag for rendering typography. The default is 'p'. */
|
|
30
34
|
tag?: React.ElementType;
|
package/package.json
CHANGED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { ISkipToMainProps } from '../../../types/types';
|
|
3
|
-
declare const SkipToMain: ({ className, skipToTag }: ISkipToMainProps) => React.JSX.Element;
|
|
4
|
-
export default SkipToMain;
|
|
5
|
-
/** TODO:
|
|
6
|
-
* - make robust with SSR - might be solved with moving logic to FE.
|
|
7
|
-
* - hiding thing when element not found - might be solved with copying Tab element. ✅
|
|
8
|
-
* - fix columns ✅
|
|
9
|
-
* - fix top-bottom margin ✅
|
|
10
|
-
* - remove !important ✅
|
|
11
|
-
* - add types file ✅
|
|
12
|
-
* - mobile solution ✅
|
|
13
|
-
* - implement in Nav
|
|
14
|
-
* - consider: Make other Tab props available?
|
|
15
|
-
* - is Classname needed as a prop after all?
|
|
16
|
-
* - J's comment about id vs element
|
|
17
|
-
*/
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
interface FocusableTabProps {
|
|
2
|
-
$hide?: boolean;
|
|
3
|
-
}
|
|
4
|
-
export declare const SkiptoMainContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
5
|
-
export declare const FocusableTab: import("styled-components").StyledComponent<({ title, titleLink, onClick, onFocus, onReset, selected, iconName, iconDirection, withIcon, withTextInMobile, trimText, className, role, ariaLabel, tabLinkId, color, }: import("../../../types/types").ITabProps) => import("react").JSX.Element, any, FocusableTabProps, never>;
|
|
6
|
-
export declare const HiddenBlock: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
7
|
-
export {};
|