@royaloperahouse/harmonic 0.2.3-f → 0.2.3-g
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/dist/harmonic.cjs.development.js +2 -5
- 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 +2 -5
- package/dist/harmonic.esm.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/types/editorial.d.ts +2 -2
- package/dist/types/information.d.ts +2 -2
- package/dist/types/typography.d.ts +3 -3
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -6,5 +6,5 @@ import { MiniCard } from './components/molecules';
|
|
|
6
6
|
import { ModalWindow } from './components/organisms';
|
|
7
7
|
import AuxiliaryButton from './components/atoms/Buttons/Auxiliary/AuxiliaryButton';
|
|
8
8
|
import HarmonicThemeProvider from './styles/HarmonicThemeProvider';
|
|
9
|
-
import {
|
|
10
|
-
export { Accordion, Accordions, AnnouncementBanner, AltHeader, AnchorTabBar, AuxiliaryButton, AuxiliaryNav, AspectRatio, BodyText, breakpoints, ButtonType, Card, Cards, CarouselType, Carousel, CinemaBadge, Colors, ContactCard, ContentSummary, ControlledDropdown, CreditListing, devices, Editorial, EditorialLink, Footer, GlobalStyles, Grid, GridItem,
|
|
9
|
+
import { HarmonicSize } from './types/typography';
|
|
10
|
+
export { Accordion, Accordions, AnnouncementBanner, AltHeader, AnchorTabBar, AuxiliaryButton, AuxiliaryNav, AspectRatio, 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, Icon, IconNameType, ImageAspectRatioWrapper, ImageWithCaption, Information, IInformationCTAProps, IInformationTitleProps, ITimerProps, IntegratedTimerProps, MinimalCarousel, MiniCard, ModalWindow, Navigation, Overline, PageHeadingCinema, PageHeadingCompact, PageHeadingCore, PageHeadingImpact, PageHeadingPanel, PageHeadingPromo, PageHeadingStream, Pagination, PasswordStrength, PeopleListing, PrimaryButton, Progress, PromoWithTags, PromoWithTitle, Radio, Radio2, RadioGroup, RadioGroup2, ReadMore, RotatorButtons, StatusBanner, SearchBar, SecondaryButton, SecondaryLogo, SectionSplitter, SectionTitle, Select, Select2, Select2Async, Sponsorship, StickyBar, Stepper, StreamBadge, Subtitle, Tab, Table, TabLink, Tabs, TertiaryButton, TextArea, TextField, TextFieldLegacy, TextLink, TextOnly, ThemeColor, ThemeProvider, ThemeType, TitleWithCTA, Tickbox, Tickbox2, TickboxMode, Timer, TypeTags, UpsellCard, UpsellSection, Quote, VideoControls, VideoWithControls, zIndexes, SignUpForm, };
|
|
@@ -3,7 +3,7 @@ import { StyledProps } from 'styled-components';
|
|
|
3
3
|
import { ButtonType } from './buttonTypes';
|
|
4
4
|
import { DirectionType, IconNameType } from './iconTypes';
|
|
5
5
|
import { Colors, IVideoWithControlsSettings, ThemeColor } from './types';
|
|
6
|
-
import {
|
|
6
|
+
import { HarmonicSize, HeaderHierarchy, TypographyLevel } from './typography';
|
|
7
7
|
export interface IEditorialProps {
|
|
8
8
|
/**
|
|
9
9
|
* Text placed in the editorial component
|
|
@@ -91,7 +91,7 @@ export declare type EditorialLink = AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
|
91
91
|
buttonType?: ButtonType;
|
|
92
92
|
};
|
|
93
93
|
export declare type PromoLinks = [EditorialLink, EditorialLink?];
|
|
94
|
-
export declare type PromoTitleSize = Exclude<
|
|
94
|
+
export declare type PromoTitleSize = Exclude<HarmonicSize, 'small'>;
|
|
95
95
|
export declare type PromoTitleHierarchy = Exclude<HeaderHierarchy, 'H1'>;
|
|
96
96
|
export interface IPromoWithTitleProps {
|
|
97
97
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DirectionType, IconNameType } from './iconTypes';
|
|
2
2
|
import { LinkTarget } from './types';
|
|
3
3
|
import type { ThemeChildProps } from './types';
|
|
4
|
-
import type {
|
|
4
|
+
import type { HarmonicSize } from './typography';
|
|
5
5
|
export declare const InformationCtaVariants: {
|
|
6
6
|
readonly Primary: "Primary";
|
|
7
7
|
readonly Secondary: "Secondary";
|
|
@@ -45,7 +45,7 @@ export interface IInformationTitleProps {
|
|
|
45
45
|
/**
|
|
46
46
|
* The size of the title text
|
|
47
47
|
*/
|
|
48
|
-
textSize:
|
|
48
|
+
textSize: HarmonicSize;
|
|
49
49
|
}
|
|
50
50
|
export interface IInformationProps extends ThemeProps {
|
|
51
51
|
/**
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import { StyledProps } from 'styled-components';
|
|
3
|
-
export declare const
|
|
3
|
+
export declare const HarmonicSize: {
|
|
4
4
|
readonly Small: "small";
|
|
5
5
|
readonly Medium: "medium";
|
|
6
6
|
readonly Large: "large";
|
|
7
7
|
};
|
|
8
|
-
export declare type
|
|
8
|
+
export declare type HarmonicSize = (typeof HarmonicSize)[keyof typeof HarmonicSize];
|
|
9
9
|
export declare const HeaderHierarchy: {
|
|
10
10
|
readonly H1: "h1";
|
|
11
11
|
readonly H2: "h2";
|
|
@@ -15,7 +15,7 @@ export declare type HeaderHierarchy = (typeof HeaderHierarchy)[keyof typeof Head
|
|
|
15
15
|
export declare type HarmonicColors = 'primary' | 'black' | 'white' | 'red' | 'grey' | 'inherit';
|
|
16
16
|
export interface IGenericTypographyProps<T extends HTMLElement = HTMLParagraphElement> extends React.HTMLAttributes<T> {
|
|
17
17
|
children?: ReactNode;
|
|
18
|
-
size?:
|
|
18
|
+
size?: HarmonicSize;
|
|
19
19
|
serif?: boolean;
|
|
20
20
|
color?: HarmonicColors;
|
|
21
21
|
em?: boolean;
|