@royaloperahouse/harmonic 0.11.0-n → 0.12.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/README.GIT +278 -0
- package/README.md +43 -252
- package/dist/components/Typography/Typography.d.ts +3 -3
- package/dist/components/atoms/Buttons/Secondary/utils.d.ts +4 -4
- package/dist/components/atoms/Dropdown/Dropdown.d.ts +1 -1
- package/dist/components/atoms/SectionSplitter/SectionSplitter.d.ts +1 -1
- 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/ContactCard/ContactCard.style.d.ts +4 -5
- 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/PageHeading/Promo/Promo.d.ts +2 -1
- package/dist/components/molecules/PromoWithTags/PromoWithTags.style.d.ts +6 -3
- package/dist/components/molecules/PromoWithTitle/PromoWithTitle.style.d.ts +1 -1
- package/dist/components/molecules/SectionTitle/SectionTitle.d.ts +1 -1
- package/dist/components/molecules/TextOnly/TextOnly.d.ts +4 -0
- package/dist/components/molecules/TextOnly/index.d.ts +2 -0
- package/dist/components/molecules/index.d.ts +2 -1
- package/dist/components/organisms/AnchorTabBar/AnchorTabBar.style.d.ts +3 -8
- package/dist/components/organisms/StickyBar/StickyBar.style.d.ts +1 -1
- package/dist/harmonic.cjs.development.css +16 -345
- package/dist/harmonic.cjs.development.js +674 -598
- 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 +687 -613
- package/dist/harmonic.esm.js.map +1 -1
- package/dist/index.d.ts +3 -5
- package/dist/styles/HarmonicThemeProvider/HarmonicThemeProvider.d.ts +0 -4
- package/dist/styles/HarmonicThemeProvider/index.d.ts +1 -2
- package/dist/types/buttonTypes.d.ts +2 -0
- package/dist/types/contactCard.d.ts +22 -8
- package/dist/types/impactHeader.d.ts +0 -2
- package/dist/types/information.d.ts +43 -23
- package/dist/types/navigation.d.ts +61 -33
- package/dist/types/promoWithTags.d.ts +1 -9
- package/dist/types/types.d.ts +40 -26
- package/dist/types/typography.d.ts +0 -4
- package/package.json +1 -1
- package/dist/components/molecules/BodyContent/BodyContent.d.ts +0 -4
- package/dist/components/molecules/BodyContent/index.d.ts +0 -2
- /package/dist/components/molecules/{BodyContent/BodyContent.style.d.ts → TextOnly/TextOnly.style.d.ts} +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -1,13 +1,11 @@
|
|
|
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, 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, Quote, VideoControls, VideoWithControls } from './components';
|
|
2
|
-
import BodyContent from './components/molecules/BodyContent';
|
|
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, 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';
|
|
3
2
|
import { devices, breakpoints } from './styles/viewports';
|
|
4
3
|
import zIndexes from './styles/zIndexes';
|
|
5
4
|
import { AspectRatio, ButtonType, CarouselType, Colors, IconNameType, IntegratedTimerProps, ITimerProps, TickboxMode, ThemeColor, ThemeType, EditorialLink, IInformationTitleProps, IInformationCTAProps } from './types';
|
|
6
5
|
import { MiniCard } from './components/molecules';
|
|
7
6
|
import { ModalWindow } from './components/organisms';
|
|
8
7
|
import AuxiliaryButton from './components/atoms/Buttons/Auxiliary/AuxiliaryButton';
|
|
9
|
-
import HarmonicThemeProvider
|
|
8
|
+
import HarmonicThemeProvider from './styles/HarmonicThemeProvider';
|
|
10
9
|
import { HarmonicSize } from './types/typography';
|
|
11
10
|
import { HarmonicHeader, HarmonicSubtitle, BodyCopyHarmonic, HarmonicOverline, ButtonText, Caption, NavigationText } from './components/Typography';
|
|
12
|
-
export {
|
|
13
|
-
export { Accordion, Accordions, AnchorBar, AnnouncementBanner, AltHeader, AnchorTabBar, AuxiliaryButton, AuxiliaryNav, AspectRatio, BodyContent, 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, HotFilters, 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, ThemeColor, ThemeProvider, ThemeType, TitleWithCTA, Tickbox, Tickbox2, TickboxMode, Timer, TypeTags, UpsellCard, UpsellSection, Quote, VideoControls, VideoWithControls, zIndexes, HarmonicHeader, HarmonicSubtitle, BodyCopyHarmonic, HarmonicOverline, ButtonText, Caption, NavigationText, };
|
|
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, HotFilters, 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, };
|
|
@@ -1,13 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ThemeType } from '../../types';
|
|
3
3
|
import './theme/fonts.css';
|
|
4
|
-
import './theme/typography.css';
|
|
5
|
-
export declare const DEFAULT_THEME = ThemeType.Core;
|
|
6
4
|
interface HarmonicThemeProviderProps {
|
|
7
5
|
theme: ThemeType;
|
|
8
6
|
children: React.ReactNode;
|
|
9
7
|
}
|
|
10
|
-
export declare const HarmonicThemeContext: React.Context<ThemeType>;
|
|
11
|
-
export declare const useHarmonicTheme: () => ThemeType;
|
|
12
8
|
declare const HarmonicThemeProvider: React.FC<HarmonicThemeProviderProps>;
|
|
13
9
|
export default HarmonicThemeProvider;
|
|
@@ -1,12 +1,9 @@
|
|
|
1
|
+
import { StyledProps } from 'styled-components';
|
|
1
2
|
export interface IContactCardProps {
|
|
2
3
|
/**
|
|
3
|
-
*
|
|
4
|
+
* Name
|
|
4
5
|
*/
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Title suffix
|
|
8
|
-
*/
|
|
9
|
-
titleSuffix?: string;
|
|
6
|
+
name: string;
|
|
10
7
|
/**
|
|
11
8
|
* Description
|
|
12
9
|
*/
|
|
@@ -28,7 +25,24 @@ export interface IContactCardProps {
|
|
|
28
25
|
*/
|
|
29
26
|
address?: string;
|
|
30
27
|
/**
|
|
31
|
-
*
|
|
28
|
+
* Set visibility of the top border
|
|
29
|
+
*/
|
|
30
|
+
hideTopBorder?: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* Set visibility of the top border
|
|
33
|
+
*/
|
|
34
|
+
hideBottomBorder?: boolean;
|
|
35
|
+
}
|
|
36
|
+
export interface IContactCardWrapperProps extends StyledProps<{
|
|
37
|
+
hideTopBorder: boolean;
|
|
38
|
+
hideBottomBorder: boolean;
|
|
39
|
+
}> {
|
|
40
|
+
/**
|
|
41
|
+
* Set visibility of the top border
|
|
42
|
+
*/
|
|
43
|
+
hideTopBorder: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* Set visibility of the bottom border
|
|
32
46
|
*/
|
|
33
|
-
|
|
47
|
+
hideBottomBorder: boolean;
|
|
34
48
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { DirectionType, IconNameType } from './iconTypes';
|
|
2
|
-
import { LinkTarget
|
|
2
|
+
import { LinkTarget } from './types';
|
|
3
|
+
import type { ThemeChildProps } from './types';
|
|
3
4
|
import type { HarmonicSize } from './typography';
|
|
4
5
|
export declare const InformationCtaVariants: {
|
|
5
6
|
readonly Primary: "Primary";
|
|
@@ -8,41 +9,60 @@ export declare const InformationCtaVariants: {
|
|
|
8
9
|
readonly TextLink: "TextLink";
|
|
9
10
|
};
|
|
10
11
|
export declare type InformationCtaVariant = keyof typeof InformationCtaVariants;
|
|
11
|
-
|
|
12
|
-
|
|
12
|
+
declare type ThemeProps = Pick<ThemeChildProps, 'theme'>;
|
|
13
|
+
export interface IInformationCTAProps extends ThemeProps {
|
|
14
|
+
/**
|
|
15
|
+
* Text to display on the CTA
|
|
16
|
+
*/
|
|
13
17
|
text: string;
|
|
14
|
-
/**
|
|
18
|
+
/**
|
|
19
|
+
* Link for the CTA
|
|
20
|
+
*/
|
|
15
21
|
link: string;
|
|
16
|
-
/**
|
|
22
|
+
/**
|
|
23
|
+
* Style of the CTA
|
|
24
|
+
*/
|
|
17
25
|
variant?: InformationCtaVariant;
|
|
18
|
-
/**
|
|
26
|
+
/**
|
|
27
|
+
* Name of the icon to be used in the button
|
|
28
|
+
*/
|
|
19
29
|
iconName?: IconNameType;
|
|
20
|
-
/**
|
|
30
|
+
/**
|
|
31
|
+
* Direction of the icon used in the button
|
|
32
|
+
*/
|
|
21
33
|
iconDirection?: DirectionType;
|
|
22
|
-
/**
|
|
34
|
+
/**
|
|
35
|
+
* Attribute to specify where to open the link
|
|
36
|
+
*/
|
|
23
37
|
target?: LinkTarget;
|
|
24
|
-
/** Custom CSS classes */
|
|
25
|
-
className?: string;
|
|
26
38
|
}
|
|
27
|
-
export declare type InformationCTAWrapperProps =
|
|
28
|
-
/** Style of the CTA */
|
|
29
|
-
variant: InformationCtaVariant;
|
|
30
|
-
/** Theme options */
|
|
31
|
-
theme?: ThemeType;
|
|
32
|
-
};
|
|
39
|
+
export declare type InformationCTAWrapperProps = Pick<IInformationCTAProps, 'variant' | 'theme'>;
|
|
33
40
|
export interface IInformationTitleProps {
|
|
34
|
-
/**
|
|
41
|
+
/**
|
|
42
|
+
* Title text to display
|
|
43
|
+
*/
|
|
35
44
|
text: string;
|
|
36
|
-
/**
|
|
45
|
+
/**
|
|
46
|
+
* The size of the title text
|
|
47
|
+
*/
|
|
37
48
|
textSize: HarmonicSize;
|
|
38
49
|
}
|
|
39
|
-
export interface IInformationProps {
|
|
40
|
-
/**
|
|
50
|
+
export interface IInformationProps extends ThemeProps {
|
|
51
|
+
/**
|
|
52
|
+
* Main body text to display in the Information Component
|
|
53
|
+
*/
|
|
41
54
|
body: string;
|
|
42
|
-
/**
|
|
55
|
+
/**
|
|
56
|
+
* Optional CTA to display underneath the body text
|
|
57
|
+
*/
|
|
43
58
|
cta?: IInformationCTAProps;
|
|
44
|
-
/**
|
|
59
|
+
/**
|
|
60
|
+
* Title options for the component
|
|
61
|
+
*/
|
|
45
62
|
title?: IInformationTitleProps;
|
|
46
|
-
/**
|
|
63
|
+
/**
|
|
64
|
+
* Additional CSS class names to apply to component.
|
|
65
|
+
*/
|
|
47
66
|
className?: string;
|
|
48
67
|
}
|
|
68
|
+
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { AnchorHTMLAttributes, MouseEventHandler, ReactNode } from 'react';
|
|
1
|
+
import React, { AnchorHTMLAttributes, MouseEvent, MouseEventHandler, ReactNode } from 'react';
|
|
2
2
|
import { DirectionType, IconNameType } from './iconTypes';
|
|
3
3
|
import { Colors, IOptionItem, ThemeColor } from './types';
|
|
4
4
|
export interface IAccountProps {
|
|
@@ -275,22 +275,26 @@ export interface IAnchorBarAbsolutePositionParams {
|
|
|
275
275
|
topOffset: number;
|
|
276
276
|
}
|
|
277
277
|
export interface IAnchorBarProps {
|
|
278
|
-
/**
|
|
278
|
+
/**
|
|
279
|
+
* Tabs displayed in the anchor bar
|
|
280
|
+
*/
|
|
279
281
|
tabs: AnchorBarTab[];
|
|
280
|
-
/**
|
|
281
|
-
|
|
282
|
-
|
|
282
|
+
/**
|
|
283
|
+
* Function to be called when a tab is clicked
|
|
284
|
+
*/
|
|
285
|
+
onTabClick?: (e: MouseEvent, id: string) => void;
|
|
286
|
+
/**
|
|
287
|
+
* Set the id of the tab actived
|
|
288
|
+
*/
|
|
283
289
|
activeTab?: string;
|
|
284
|
-
/**
|
|
290
|
+
/**
|
|
291
|
+
* Only for IOS devices that do not fully support sticky position, in case a keyboard is opened on the device
|
|
292
|
+
*/
|
|
285
293
|
absolutePositionParams?: IAnchorBarAbsolutePositionParams;
|
|
286
|
-
/**
|
|
294
|
+
/**
|
|
295
|
+
* Boolean to set bottom border
|
|
296
|
+
*/
|
|
287
297
|
bottomBorder?: boolean;
|
|
288
|
-
/** Flag indicating whether the bar should have a shadow */
|
|
289
|
-
withShadow?: boolean;
|
|
290
|
-
/** Additional offset height for the tab bar */
|
|
291
|
-
offsetHeight?: number;
|
|
292
|
-
/** Custom CSS classes */
|
|
293
|
-
className?: string;
|
|
294
298
|
}
|
|
295
299
|
export interface ITitleCTAProps {
|
|
296
300
|
/**
|
|
@@ -327,40 +331,64 @@ export interface IAnchorTabsListProps {
|
|
|
327
331
|
hasTwoArrows: boolean;
|
|
328
332
|
}
|
|
329
333
|
export interface IAnchorTabBarBorderProps {
|
|
330
|
-
/**
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
+
/**
|
|
335
|
+
* Boolean to set bottom border
|
|
336
|
+
*/
|
|
337
|
+
bottomBorder: boolean;
|
|
338
|
+
}
|
|
339
|
+
export interface IAnchorTabArrowsBoxProps {
|
|
340
|
+
/**
|
|
341
|
+
* Boolean to determine width of the arrows container
|
|
342
|
+
*/
|
|
343
|
+
fullWidth: boolean;
|
|
334
344
|
}
|
|
335
345
|
export interface ITabLinkProps extends AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
336
346
|
children: ReactNode;
|
|
337
|
-
/**
|
|
347
|
+
/**
|
|
348
|
+
* Function to be called when a button is clicked
|
|
349
|
+
*/
|
|
338
350
|
onClick?: MouseEventHandler<HTMLAnchorElement>;
|
|
339
|
-
/**
|
|
351
|
+
/**
|
|
352
|
+
* Name of the icon to be used in the button
|
|
353
|
+
*/
|
|
340
354
|
iconName?: IconNameType;
|
|
341
|
-
/**
|
|
355
|
+
/**
|
|
356
|
+
* Direction of the icon used in the button
|
|
357
|
+
*/
|
|
342
358
|
iconDirection?: DirectionType;
|
|
343
|
-
/**
|
|
359
|
+
/**
|
|
360
|
+
* Color of text and icon
|
|
361
|
+
*/
|
|
344
362
|
color?: ThemeColor;
|
|
345
|
-
/**
|
|
363
|
+
/**
|
|
364
|
+
* Color of text and icon on hover
|
|
365
|
+
*/
|
|
346
366
|
hoverColor?: ThemeColor;
|
|
347
|
-
/**
|
|
367
|
+
/**
|
|
368
|
+
* Set if tab is selected or not
|
|
369
|
+
*/
|
|
348
370
|
selected?: boolean;
|
|
349
|
-
/** Custom CSS classes */
|
|
350
|
-
className?: string;
|
|
351
371
|
}
|
|
352
372
|
export interface IStickyBarProps {
|
|
353
373
|
children: ReactNode;
|
|
354
|
-
/**
|
|
374
|
+
/**
|
|
375
|
+
* Set columnstart in Desktop
|
|
376
|
+
*/
|
|
355
377
|
columnStartDesktop?: number;
|
|
356
|
-
/**
|
|
378
|
+
/**
|
|
379
|
+
* Set columnSpan in Desktop
|
|
380
|
+
*/
|
|
357
381
|
columnSpanDesktop?: number;
|
|
358
|
-
/**
|
|
382
|
+
/**
|
|
383
|
+
* Set columnstart in Device
|
|
384
|
+
*/
|
|
359
385
|
columnStartDevice?: number;
|
|
360
|
-
/**
|
|
386
|
+
/**
|
|
387
|
+
* Set columnSpam in Device
|
|
388
|
+
*/
|
|
361
389
|
columnSpanDevice?: number;
|
|
362
|
-
/**
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
390
|
+
/**
|
|
391
|
+
* Hide bottom border line
|
|
392
|
+
*/
|
|
393
|
+
hideBottomBorder?: boolean;
|
|
366
394
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
|
-
import { EditorialLink, PromoLinks
|
|
2
|
+
import { EditorialLink, PromoLinks } from './editorial';
|
|
3
3
|
import { IntegratedTimerProps } from './timer';
|
|
4
4
|
import { Image } from './types';
|
|
5
5
|
export interface IPromoWithTagsProps {
|
|
@@ -15,10 +15,6 @@ export interface IPromoWithTagsProps {
|
|
|
15
15
|
* Title size
|
|
16
16
|
*/
|
|
17
17
|
titleSize?: 'small' | 'large';
|
|
18
|
-
/**
|
|
19
|
-
* Semantic level of the promo title header - h2 or h3.
|
|
20
|
-
*/
|
|
21
|
-
titleHierarchy: PromoTitleHierarchy;
|
|
22
18
|
/**
|
|
23
19
|
* Subtitle placed in the editorial component
|
|
24
20
|
*/
|
|
@@ -86,8 +82,4 @@ export interface IPromoWithTagsStyledProps {
|
|
|
86
82
|
* Sets margin for the tags container
|
|
87
83
|
*/
|
|
88
84
|
marginBottom?: number;
|
|
89
|
-
/**
|
|
90
|
-
* Sets mobile margin for the tags container
|
|
91
|
-
*/
|
|
92
|
-
mobileMarginBottom?: number;
|
|
93
85
|
}
|
package/dist/types/types.d.ts
CHANGED
|
@@ -53,8 +53,14 @@ export declare enum ThemeType {
|
|
|
53
53
|
Cinema = "cinema",
|
|
54
54
|
Schools = "schools"
|
|
55
55
|
}
|
|
56
|
+
export declare type ThemeChildProps = {
|
|
57
|
+
className?: string;
|
|
58
|
+
theme?: ThemeType;
|
|
59
|
+
};
|
|
56
60
|
export interface IThemeProviderProps {
|
|
57
|
-
/**
|
|
61
|
+
/**
|
|
62
|
+
* The theme to use for the child elements
|
|
63
|
+
*/
|
|
58
64
|
theme: ThemeType;
|
|
59
65
|
children: ReactNode;
|
|
60
66
|
}
|
|
@@ -148,10 +154,6 @@ export interface ITabProps {
|
|
|
148
154
|
* Additional CSS class names to apply to the navigation component.
|
|
149
155
|
*/
|
|
150
156
|
className?: string;
|
|
151
|
-
/**
|
|
152
|
-
* The unique ID to assign to the link element.
|
|
153
|
-
*/
|
|
154
|
-
tabLinkId?: string;
|
|
155
157
|
/**
|
|
156
158
|
* Defines the ARIA role of the element for accessibility purposes.
|
|
157
159
|
*/
|
|
@@ -219,11 +221,7 @@ export interface IDropdownProps {
|
|
|
219
221
|
*/
|
|
220
222
|
ariaLabel?: string;
|
|
221
223
|
/**
|
|
222
|
-
*
|
|
223
|
-
*/
|
|
224
|
-
tabLinkId?: string;
|
|
225
|
-
/**
|
|
226
|
-
* Defines if it is needed to trim the text of the Tab and add 3 dots in the end
|
|
224
|
+
* Defines if it is needed to trim the text of the Tab and add 3 dots in the end
|
|
227
225
|
*/
|
|
228
226
|
trimTabText?: boolean;
|
|
229
227
|
}
|
|
@@ -460,10 +458,10 @@ export interface ITextLinkProps extends AnchorHTMLAttributes<HTMLAnchorElement>
|
|
|
460
458
|
textColor?: ThemeColor;
|
|
461
459
|
}
|
|
462
460
|
export interface ISectionSplitterProps {
|
|
463
|
-
/**
|
|
461
|
+
/**
|
|
462
|
+
* Set the width of the Section to full
|
|
463
|
+
*/
|
|
464
464
|
fullWidth?: boolean;
|
|
465
|
-
/** Custom CSS classes */
|
|
466
|
-
className?: string;
|
|
467
465
|
}
|
|
468
466
|
export interface ITypeTagsProps {
|
|
469
467
|
/**
|
|
@@ -471,30 +469,46 @@ export interface ITypeTagsProps {
|
|
|
471
469
|
*/
|
|
472
470
|
list: string[];
|
|
473
471
|
}
|
|
474
|
-
export interface
|
|
475
|
-
/**
|
|
472
|
+
export interface ITextOnlyProps {
|
|
473
|
+
/**
|
|
474
|
+
* Text placed in the TextOnly component
|
|
475
|
+
*/
|
|
476
476
|
text: string;
|
|
477
|
-
/**
|
|
477
|
+
/**
|
|
478
|
+
* Set columnstart in Desktop
|
|
479
|
+
*/
|
|
478
480
|
columnStartDesktop?: number;
|
|
479
|
-
/**
|
|
481
|
+
/**
|
|
482
|
+
* Set columnSpan in Desktop
|
|
483
|
+
*/
|
|
480
484
|
columnSpanDesktop?: number;
|
|
481
|
-
/**
|
|
485
|
+
/**
|
|
486
|
+
* Set columnstart in Device
|
|
487
|
+
*/
|
|
482
488
|
columnStartDevice?: number;
|
|
483
|
-
/**
|
|
489
|
+
/**
|
|
490
|
+
* Set columnSpam in Device
|
|
491
|
+
*/
|
|
484
492
|
columnSpanDevice?: number;
|
|
485
|
-
/** Custom CSS classes */
|
|
486
|
-
className?: string;
|
|
487
493
|
}
|
|
488
494
|
export declare type SectionTitleSize = 'small' | 'large';
|
|
489
495
|
export interface ISectionTitleProps {
|
|
490
|
-
/**
|
|
496
|
+
/**
|
|
497
|
+
* Title to display.
|
|
498
|
+
*/
|
|
491
499
|
title: string;
|
|
492
|
-
/**
|
|
500
|
+
/**
|
|
501
|
+
* Size of title to display - by default small, which renders as an H2 (and large is an H1).
|
|
502
|
+
*/
|
|
493
503
|
size?: SectionTitleSize;
|
|
494
|
-
/**
|
|
504
|
+
/**
|
|
505
|
+
* Optional description that can be rendered below the title.
|
|
506
|
+
*/
|
|
495
507
|
description?: string;
|
|
496
|
-
/**
|
|
497
|
-
|
|
508
|
+
/**
|
|
509
|
+
* Semantic level of the title.
|
|
510
|
+
*/
|
|
511
|
+
semanticLevel?: TypographyLevel;
|
|
498
512
|
}
|
|
499
513
|
export interface ILogosProps {
|
|
500
514
|
/**
|
|
@@ -25,10 +25,6 @@ export interface IGenericTypographyProps<T extends HTMLElement = HTMLParagraphEl
|
|
|
25
25
|
export interface IHarmonicHeaderProps extends IGenericTypographyProps {
|
|
26
26
|
hierarchy: HeaderHierarchy;
|
|
27
27
|
}
|
|
28
|
-
export interface ITaggedTypographyProps extends IGenericTypographyProps {
|
|
29
|
-
/** Specifies the HTML tag for rendering typography. The default is 'p'. */
|
|
30
|
-
tag?: React.ElementType;
|
|
31
|
-
}
|
|
32
28
|
export declare type TypographyLevel = 1 | 2 | 3 | 4 | 5 | 6;
|
|
33
29
|
export declare type AltHeaderLevel = 3 | 4 | 5 | 6;
|
|
34
30
|
export declare type BodyLevel = 1 | 2 | 3;
|
package/package.json
CHANGED
|
File without changes
|