@royaloperahouse/harmonic 0.2.3-b → 0.2.3-d
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 +0 -3
- package/dist/components/Typography/Typography.d.ts +1 -0
- package/dist/components/molecules/PromoWithTitle/PromoWithTitle.style.d.ts +3 -3
- package/dist/harmonic.cjs.development.css +105 -105
- package/dist/harmonic.cjs.development.js +71 -47
- 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 +102 -78
- package/dist/harmonic.esm.js.map +1 -1
- package/dist/helpers/urls.d.ts +1 -0
- package/dist/index.d.ts +2 -1
- package/dist/styles/HarmonicThemeProvider/HarmonicThemeProvider.d.ts +0 -1
- package/dist/types/editorial.d.ts +4 -6
- package/dist/types/information.d.ts +2 -2
- package/dist/types/typography.d.ts +3 -8
- package/package.json +1 -1
package/dist/helpers/urls.d.ts
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -7,4 +7,5 @@ import { ModalWindow } from './components/organisms';
|
|
|
7
7
|
import AuxiliaryButton from './components/atoms/Buttons/Auxiliary/AuxiliaryButton';
|
|
8
8
|
import HarmonicThemeProvider from './styles/HarmonicThemeProvider';
|
|
9
9
|
import { HarmonicSizes } from './types/typography';
|
|
10
|
-
|
|
10
|
+
import type { HarmonicSize } from './types/typography';
|
|
11
|
+
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, HarmonicSizes, 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 { TypographyLevel } from './typography';
|
|
7
7
|
export interface IEditorialProps {
|
|
8
8
|
/**
|
|
9
9
|
* Text placed in the editorial component
|
|
@@ -91,8 +91,6 @@ 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<HarmonicSizes, 'small'>;
|
|
95
|
-
export declare type PromoTitleHierarchy = Exclude<HeaderHierarchy, 'H1'>;
|
|
96
94
|
export interface IPromoWithTitleProps {
|
|
97
95
|
/**
|
|
98
96
|
* Text placed in the editorial component
|
|
@@ -105,7 +103,7 @@ export interface IPromoWithTitleProps {
|
|
|
105
103
|
/**
|
|
106
104
|
* Text placed in the editorial component
|
|
107
105
|
*/
|
|
108
|
-
titleSize?:
|
|
106
|
+
titleSize?: 'small' | 'large';
|
|
109
107
|
/**
|
|
110
108
|
* Subtitle placed in the editorial component
|
|
111
109
|
*/
|
|
@@ -127,9 +125,9 @@ export interface IPromoWithTitleProps {
|
|
|
127
125
|
*/
|
|
128
126
|
links?: PromoLinks;
|
|
129
127
|
/**
|
|
130
|
-
* Semantic level of the
|
|
128
|
+
* Semantic level of the title. Default is 2.
|
|
131
129
|
*/
|
|
132
|
-
|
|
130
|
+
titleSemanticLevel?: TypographyLevel;
|
|
133
131
|
/**
|
|
134
132
|
* Additional CSS class names to apply to component.
|
|
135
133
|
*/
|
|
@@ -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
|
/**
|
|
@@ -5,23 +5,18 @@ export declare const HarmonicSizes: {
|
|
|
5
5
|
readonly Medium: "medium";
|
|
6
6
|
readonly Large: "large";
|
|
7
7
|
};
|
|
8
|
-
export declare type
|
|
9
|
-
export declare const HeaderHierarchy: {
|
|
10
|
-
readonly H1: "h1";
|
|
11
|
-
readonly H2: "h2";
|
|
12
|
-
readonly H3: "h3";
|
|
13
|
-
};
|
|
14
|
-
export declare type HeaderHierarchy = (typeof HeaderHierarchy)[keyof typeof HeaderHierarchy];
|
|
8
|
+
export declare type HarmonicSize = (typeof HarmonicSizes)[keyof typeof HarmonicSizes];
|
|
15
9
|
export declare type HarmonicColors = 'primary' | 'black' | 'white' | 'red' | 'grey' | 'inherit';
|
|
16
10
|
export interface IGenericTypographyProps<T extends HTMLElement = HTMLParagraphElement> extends React.HTMLAttributes<T> {
|
|
17
11
|
children?: ReactNode;
|
|
18
|
-
size?:
|
|
12
|
+
size?: HarmonicSize;
|
|
19
13
|
serif?: boolean;
|
|
20
14
|
color?: HarmonicColors;
|
|
21
15
|
em?: boolean;
|
|
22
16
|
bold?: boolean;
|
|
23
17
|
className?: string;
|
|
24
18
|
}
|
|
19
|
+
export declare type HeaderHierarchy = 'h1' | 'h2' | 'h3';
|
|
25
20
|
export interface IHarmonicHeaderProps extends IGenericTypographyProps {
|
|
26
21
|
hierarchy: HeaderHierarchy;
|
|
27
22
|
}
|