@royaloperahouse/harmonic 0.5.1 → 0.6.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/dist/components/atoms/Dropdown/Dropdown.d.ts +1 -1
- package/dist/components/atoms/Tab/Tab.d.ts +1 -1
- package/dist/components/index.d.ts +2 -2
- package/dist/components/molecules/PageHeading/PageHeading.style.d.ts +2 -2
- package/dist/components/molecules/PageHeading/index.d.ts +2 -4
- package/dist/components/molecules/index.d.ts +2 -2
- package/dist/harmonic.cjs.development.css +5 -3
- package/dist/harmonic.cjs.development.js +172 -177
- 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 +175 -178
- package/dist/harmonic.esm.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/types/editorial.d.ts +16 -4
- package/dist/types/navigation.d.ts +4 -4
- package/dist/types/types.d.ts +16 -0
- package/package.json +1 -1
- package/dist/components/molecules/PageHeading/Cinema/Cinema.d.ts +0 -4
- package/dist/components/molecules/PageHeading/Cinema/index.d.ts +0 -2
- package/dist/components/molecules/PageHeading/Core/Core.d.ts +0 -4
- package/dist/components/molecules/PageHeading/Core/index.d.ts +0 -2
- package/dist/components/molecules/PageHeading/Stream/Stream.d.ts +0 -4
- package/dist/components/molecules/PageHeading/Stream/Stream.style.d.ts +0 -1
- package/dist/components/molecules/PageHeading/Stream/index.d.ts +0 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
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, Icon, ImageAspectRatioWrapper, ImageWithCaption, Information, Navigation, MinimalCarousel, Overline,
|
|
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, Icon, ImageAspectRatioWrapper, ImageWithCaption, Information, Navigation, MinimalCarousel, Overline, PageHeading, PageHeadingCompact, PageHeadingImpact, PageHeadingPanel, 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, TextOnly, ThemeProvider, TitleWithCTA, Tab, Table, TabLink, Tabs, TextArea, TextField, TextFieldLegacy, TextLink, Tickbox, Tickbox2, Timer, TypeTags, UpsellCard, UpsellSection, Quote, VideoControls, VideoWithControls } from './components';
|
|
2
2
|
import { devices, breakpoints } from './styles/viewports';
|
|
3
3
|
import zIndexes from './styles/zIndexes';
|
|
4
4
|
import { AspectRatio, ButtonType, CarouselType, Colors, IconNameType, IntegratedTimerProps, ITimerProps, TickboxMode, ThemeColor, ThemeType, EditorialLink, IInformationTitleProps, IInformationCTAProps } from './types';
|
|
@@ -8,4 +8,4 @@ import AuxiliaryButton from './components/atoms/Buttons/Auxiliary/AuxiliaryButto
|
|
|
8
8
|
import HarmonicThemeProvider from './styles/HarmonicThemeProvider';
|
|
9
9
|
import { HarmonicSize } from './types/typography';
|
|
10
10
|
import { HarmonicHeader, HarmonicSubtitle, BodyCopyHarmonic, HarmonicOverline, ButtonText, Caption, NavigationText } from './components/Typography';
|
|
11
|
-
export { Accordion, Accordions, AnchorBar, 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,
|
|
11
|
+
export { Accordion, Accordions, AnchorBar, 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, PageHeading, PageHeadingCompact, PageHeadingImpact, PageHeadingPanel, 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, 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, HarmonicHeader, HarmonicSubtitle, BodyCopyHarmonic, HarmonicOverline, ButtonText, Caption, NavigationText, };
|
|
@@ -2,7 +2,7 @@ import { AnchorHTMLAttributes, ImgHTMLAttributes, MouseEventHandler, ReactElemen
|
|
|
2
2
|
import { StyledProps } from 'styled-components';
|
|
3
3
|
import { ButtonType } from './buttonTypes';
|
|
4
4
|
import { DirectionType, IconNameType } from './iconTypes';
|
|
5
|
-
import {
|
|
5
|
+
import { IVideoWithControlsSettings, ThemeColor, ThemeType } from './types';
|
|
6
6
|
import { HarmonicSize, HeaderHierarchy, TypographyLevel } from './typography';
|
|
7
7
|
export interface IEditorialProps {
|
|
8
8
|
/**
|
|
@@ -153,9 +153,9 @@ export interface IThemePageHeadingProps {
|
|
|
153
153
|
*/
|
|
154
154
|
sponsor?: boolean;
|
|
155
155
|
/**
|
|
156
|
-
*
|
|
156
|
+
* Header Hierarchy for the title. Default is h1.
|
|
157
157
|
*/
|
|
158
|
-
|
|
158
|
+
hierarchy: HeaderHierarchy;
|
|
159
159
|
/**
|
|
160
160
|
* Character limit for the text
|
|
161
161
|
*/
|
|
@@ -164,6 +164,18 @@ export interface IThemePageHeadingProps {
|
|
|
164
164
|
* Character limit for the title
|
|
165
165
|
*/
|
|
166
166
|
titleCharLimit?: number;
|
|
167
|
+
/**
|
|
168
|
+
* Class name for theme styling
|
|
169
|
+
*/
|
|
170
|
+
className?: string;
|
|
171
|
+
/**
|
|
172
|
+
* Show Cinema / Stream badge
|
|
173
|
+
*/
|
|
174
|
+
showBadge?: boolean;
|
|
175
|
+
/**
|
|
176
|
+
* Theme for badge
|
|
177
|
+
*/
|
|
178
|
+
theme: ThemeType;
|
|
167
179
|
}
|
|
168
180
|
export interface IPageHeadingProps extends IThemePageHeadingProps {
|
|
169
181
|
/**
|
|
@@ -267,7 +279,7 @@ export interface IPanelHeadingProps {
|
|
|
267
279
|
/**
|
|
268
280
|
* Colour of the info panel background
|
|
269
281
|
*/
|
|
270
|
-
color?:
|
|
282
|
+
color?: ThemeColor;
|
|
271
283
|
/**
|
|
272
284
|
* Reference of the div to scroll to when clicking on Scroll Down
|
|
273
285
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { AnchorHTMLAttributes, MouseEvent, MouseEventHandler, ReactNode } from 'react';
|
|
2
2
|
import { DirectionType, IconNameType } from './iconTypes';
|
|
3
|
-
import { Colors, IOptionItem } from './types';
|
|
3
|
+
import { Colors, IOptionItem, ThemeColor } from './types';
|
|
4
4
|
export interface IAccountProps {
|
|
5
5
|
/**
|
|
6
6
|
* The text of the title
|
|
@@ -245,7 +245,7 @@ export declare type AnchorBarTab = AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
|
245
245
|
/**
|
|
246
246
|
* Color of text and icon
|
|
247
247
|
*/
|
|
248
|
-
color?:
|
|
248
|
+
color?: ThemeColor;
|
|
249
249
|
};
|
|
250
250
|
export interface IAnchorBarAbsolutePositionParams {
|
|
251
251
|
/**
|
|
@@ -342,11 +342,11 @@ export interface ITabLinkProps extends AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
|
342
342
|
/**
|
|
343
343
|
* Color of text and icon
|
|
344
344
|
*/
|
|
345
|
-
color?:
|
|
345
|
+
color?: ThemeColor;
|
|
346
346
|
/**
|
|
347
347
|
* Color of text and icon on hover
|
|
348
348
|
*/
|
|
349
|
-
hoverColor?:
|
|
349
|
+
hoverColor?: ThemeColor;
|
|
350
350
|
/**
|
|
351
351
|
* Set if tab is selected or not
|
|
352
352
|
*/
|
package/dist/types/types.d.ts
CHANGED
|
@@ -118,6 +118,10 @@ export interface ITabProps {
|
|
|
118
118
|
* To keep selected the title of the Tab
|
|
119
119
|
*/
|
|
120
120
|
selected?: boolean;
|
|
121
|
+
/**
|
|
122
|
+
* Icon direction
|
|
123
|
+
*/
|
|
124
|
+
iconDirection?: DirectionType;
|
|
121
125
|
/**
|
|
122
126
|
* The name of the icon
|
|
123
127
|
*/
|
|
@@ -158,6 +162,14 @@ export interface ITabProps {
|
|
|
158
162
|
* Provides an accessible label for screen readers to describe the element's purpose.
|
|
159
163
|
*/
|
|
160
164
|
ariaLabel?: string;
|
|
165
|
+
/**
|
|
166
|
+
* Text color
|
|
167
|
+
*/
|
|
168
|
+
color?: ThemeColor;
|
|
169
|
+
/**
|
|
170
|
+
* Defines if it is needed to trim the text of the Tab and add 3 dots in the end
|
|
171
|
+
*/
|
|
172
|
+
trimText?: boolean;
|
|
161
173
|
}
|
|
162
174
|
export interface IDropdownProps {
|
|
163
175
|
/**
|
|
@@ -208,6 +220,10 @@ export interface IDropdownProps {
|
|
|
208
220
|
* Provides an accessible label for screen readers to describe the element's purpose.
|
|
209
221
|
*/
|
|
210
222
|
ariaLabel?: string;
|
|
223
|
+
/**
|
|
224
|
+
* Defines if it is needed to trim the text of the Tab and add 3 dots in the end
|
|
225
|
+
*/
|
|
226
|
+
trimTabText?: boolean;
|
|
211
227
|
}
|
|
212
228
|
export interface ITabsProps {
|
|
213
229
|
/**
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const StreamWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|