@royaloperahouse/chord 0.5.7 → 0.5.11
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 +16 -0
- package/README.md +2 -2
- package/dist/chord.cjs.development.js +386 -244
- package/dist/chord.cjs.development.js.map +1 -1
- package/dist/chord.cjs.production.min.js +1 -1
- package/dist/chord.cjs.production.min.js.map +1 -1
- package/dist/chord.esm.js +389 -246
- package/dist/chord.esm.js.map +1 -1
- package/dist/components/atoms/Tickbox/Tickbox.d.ts +4 -0
- package/dist/components/atoms/Tickbox/Tickbox.style.d.ts +4 -0
- package/dist/components/atoms/Tickbox/index.d.ts +2 -0
- package/dist/components/atoms/index.d.ts +2 -1
- package/dist/components/index.d.ts +2 -2
- package/dist/components/molecules/ImageWithCaption/ImageWithCaption.style.d.ts +2 -1
- package/dist/components/organisms/Navigation/Navigation.style.d.ts +1 -0
- package/dist/index.d.ts +3 -3
- package/dist/types/image.d.ts +23 -0
- package/dist/types/index.d.ts +2 -1
- package/dist/types/tickbox.d.ts +40 -0
- package/package.json +1 -1
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { TickboxLabelProps, TickboxInputProps, TickboxCheckmarkProps } from '../../../types/tickbox';
|
|
2
|
+
export declare const TickboxLabel: import("styled-components").StyledComponent<"label", any, TickboxLabelProps, never>;
|
|
3
|
+
export declare const TickboxCheckmark: import("styled-components").StyledComponent<"span", any, TickboxCheckmarkProps, never>;
|
|
4
|
+
export declare const TickboxInput: import("styled-components").StyledComponent<"input", any, TickboxInputProps, never>;
|
|
@@ -9,7 +9,8 @@ import SectionSplitter from './SectionSplitter';
|
|
|
9
9
|
import ImageAspectRatioWrapper from './ImageAspectRatioWrapper';
|
|
10
10
|
import Tab from './Tab';
|
|
11
11
|
import TabLink from './TabLink';
|
|
12
|
+
import Tickbox from './Tickbox';
|
|
12
13
|
import TypeTags from './TypeTags';
|
|
13
14
|
import RotatorButtons from './RotatorButtons';
|
|
14
15
|
import { AltHeader, BodyText, Header, Overline, Subtitle } from './Typography';
|
|
15
|
-
export { AltHeader, BodyText, CinemaBadge, Grid, GridItem, Header, Icon, ImageAspectRatioWrapper, Overline, PrimaryButton, RotatorButtons, SecondaryButton, SecondaryLogo, SectionSplitter, SponsorLogo, Sponsorship, StreamBadge, Subtitle, Tab, TabLink, TertiaryButton, TypeTags, };
|
|
16
|
+
export { AltHeader, BodyText, CinemaBadge, Grid, GridItem, Header, Icon, ImageAspectRatioWrapper, Overline, PrimaryButton, RotatorButtons, SecondaryButton, SecondaryLogo, SectionSplitter, SponsorLogo, Sponsorship, StreamBadge, Subtitle, Tab, TabLink, TertiaryButton, Tickbox, TypeTags, };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { AltHeader, BodyText, CinemaBadge, Grid, GridItem, Header, Icon, ImageAspectRatioWrapper, Overline, PrimaryButton, RotatorButtons, SecondaryButton, SecondaryLogo, TertiaryButton, SectionSplitter, Sponsorship, StreamBadge, Subtitle, TabLink, TypeTags } from './atoms';
|
|
1
|
+
import { AltHeader, BodyText, CinemaBadge, Grid, GridItem, Header, Icon, ImageAspectRatioWrapper, Overline, PrimaryButton, RotatorButtons, SecondaryButton, SecondaryLogo, TertiaryButton, SectionSplitter, Sponsorship, StreamBadge, Subtitle, TabLink, Tickbox, TypeTags } from './atoms';
|
|
2
2
|
import { AnchorTapBar, HighlightsCarousel, HighlightsCarouselCinema, HighlightsCarouselCore, HighlightsCarouselStream, Carousel, Footer, Navigation } from './organisms';
|
|
3
3
|
import { Accordion, Accordions, Card, Cards, Editorial, ImageWithCaption, PageHeadingCinema, PageHeadingCore, PageHeadingImpact, PageHeadingStream, PeopleListing, PromoWithTitle, SectionTitle, Tabs, TextOnly } from './molecules';
|
|
4
4
|
import ThemeProvider from '../styles/ThemeProvider';
|
|
5
5
|
import GlobalStyles from '../styles/GlobalStyles';
|
|
6
|
-
export { Accordion, Accordions, AltHeader, AnchorTapBar, BodyText, Card, Cards, Carousel, CinemaBadge, Editorial, Footer, GlobalStyles, Grid, GridItem, Header, HighlightsCarousel, HighlightsCarouselCinema, HighlightsCarouselCore, HighlightsCarouselStream, Icon, ImageAspectRatioWrapper, ImageWithCaption, Navigation, Overline, PageHeadingCinema, PageHeadingCore, PageHeadingImpact, PageHeadingStream, PeopleListing, PrimaryButton, PromoWithTitle, RotatorButtons, SecondaryButton, SecondaryLogo, SectionTitle, Sponsorship, StreamBadge, Subtitle, TertiaryButton, TextOnly, ThemeProvider, SectionSplitter, TabLink, Tabs, TypeTags, };
|
|
6
|
+
export { Accordion, Accordions, AltHeader, AnchorTapBar, BodyText, Card, Cards, Carousel, CinemaBadge, Editorial, Footer, GlobalStyles, Grid, GridItem, Header, HighlightsCarousel, HighlightsCarouselCinema, HighlightsCarouselCore, HighlightsCarouselStream, Icon, ImageAspectRatioWrapper, ImageWithCaption, Navigation, Overline, PageHeadingCinema, PageHeadingCore, PageHeadingImpact, PageHeadingStream, PeopleListing, PrimaryButton, PromoWithTitle, RotatorButtons, SecondaryButton, SecondaryLogo, SectionTitle, Sponsorship, StreamBadge, Subtitle, TertiaryButton, TextOnly, ThemeProvider, SectionSplitter, TabLink, Tabs, Tickbox, TypeTags, };
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
import { IImageWithCaptionWrapperProps } from '../../../types/image';
|
|
2
|
+
export declare const Wrapper: import("styled-components").StyledComponent<"div", any, IImageWithCaptionWrapperProps, never>;
|
|
2
3
|
export declare const CaptionWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -6,4 +6,5 @@ export declare const NavigationGridMobile: import("styled-components").StyledCom
|
|
|
6
6
|
export declare const LogoContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
7
7
|
export declare const MenuContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
8
8
|
export declare const NavContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
9
|
+
export declare const NavContainerGridItem: import("styled-components").StyledComponent<"div", any, import("../../../types/types").IGridItemProps, never>;
|
|
9
10
|
export declare const NavTopContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Accordion, Accordions, AltHeader, AnchorTapBar, BodyText, Card, Cards, Carousel, CinemaBadge, Editorial, Footer, GlobalStyles, Grid, GridItem, Header, HighlightsCarousel, HighlightsCarouselCinema, HighlightsCarouselCore, HighlightsCarouselStream, Icon, ImageAspectRatioWrapper, ImageWithCaption, Navigation, Overline, PageHeadingCinema, PageHeadingCore, PageHeadingImpact, PageHeadingStream, PeopleListing, PrimaryButton, PromoWithTitle, RotatorButtons, SecondaryButton, SecondaryLogo, SectionSplitter, SectionTitle, Sponsorship, StreamBadge, Subtitle, TertiaryButton, TextOnly, ThemeProvider, TabLink, Tabs, TypeTags } from './components';
|
|
1
|
+
import { Accordion, Accordions, AltHeader, AnchorTapBar, BodyText, Card, Cards, Carousel, CinemaBadge, Editorial, Footer, GlobalStyles, Grid, GridItem, Header, HighlightsCarousel, HighlightsCarouselCinema, HighlightsCarouselCore, HighlightsCarouselStream, Icon, ImageAspectRatioWrapper, ImageWithCaption, Navigation, Overline, PageHeadingCinema, PageHeadingCore, PageHeadingImpact, PageHeadingStream, PeopleListing, PrimaryButton, PromoWithTitle, RotatorButtons, SecondaryButton, SecondaryLogo, SectionSplitter, SectionTitle, Sponsorship, StreamBadge, Subtitle, TertiaryButton, TextOnly, ThemeProvider, TabLink, Tabs, Tickbox, TypeTags } from './components';
|
|
2
2
|
import { devices } from './styles/viewports';
|
|
3
|
-
import { AspectRatio, CarouselType, Colors, IconNameType, ThemeType } from './types';
|
|
4
|
-
export { Accordion, Accordions, AltHeader, AnchorTapBar, AspectRatio, BodyText, Card, Cards, Carousel, CarouselType, CinemaBadge, Colors, devices, Editorial, Footer, GlobalStyles, Grid, GridItem, Header, HighlightsCarousel, HighlightsCarouselCinema, HighlightsCarouselCore, HighlightsCarouselStream, Icon, IconNameType, ImageAspectRatioWrapper, ImageWithCaption, Navigation, Overline, PageHeadingCinema, PageHeadingCore, PageHeadingImpact, PageHeadingStream, PeopleListing, PrimaryButton, PromoWithTitle, RotatorButtons, SecondaryButton, SecondaryLogo, SectionSplitter, SectionTitle, Sponsorship, StreamBadge, Subtitle, TabLink, Tabs, TertiaryButton, TextOnly, ThemeProvider, ThemeType, TypeTags, };
|
|
3
|
+
import { AspectRatio, CarouselType, Colors, IconNameType, TickboxMode, ThemeType } from './types';
|
|
4
|
+
export { Accordion, Accordions, AltHeader, AnchorTapBar, AspectRatio, BodyText, Card, Cards, Carousel, CarouselType, CinemaBadge, Colors, devices, Editorial, Footer, GlobalStyles, Grid, GridItem, Header, HighlightsCarousel, HighlightsCarouselCinema, HighlightsCarouselCore, HighlightsCarouselStream, Icon, IconNameType, ImageAspectRatioWrapper, ImageWithCaption, Navigation, Overline, PageHeadingCinema, PageHeadingCore, PageHeadingImpact, PageHeadingStream, PeopleListing, PrimaryButton, PromoWithTitle, RotatorButtons, SecondaryButton, SecondaryLogo, SectionSplitter, SectionTitle, Sponsorship, StreamBadge, Subtitle, TabLink, Tabs, TertiaryButton, TextOnly, ThemeProvider, ThemeType, Tickbox, TickboxMode, TypeTags, };
|
package/dist/types/image.d.ts
CHANGED
|
@@ -1,10 +1,23 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
|
+
import { StyledProps } from 'styled-components';
|
|
2
3
|
export declare enum AspectRatio {
|
|
3
4
|
'1:1' = "1 / 1",
|
|
4
5
|
'3:4' = "3 / 4",
|
|
5
6
|
'4:3' = "4 / 3",
|
|
6
7
|
'16:9' = "16 / 9"
|
|
7
8
|
}
|
|
9
|
+
export declare enum AspectRatioLegacy {
|
|
10
|
+
'1 / 1' = "100",
|
|
11
|
+
'3 / 4' = "133",
|
|
12
|
+
'4 / 3' = "75",
|
|
13
|
+
'16 / 9' = "56.25"
|
|
14
|
+
}
|
|
15
|
+
export declare enum AspectRatioWidth {
|
|
16
|
+
'1 / 1' = "1",
|
|
17
|
+
'3 / 4' = "0.75",
|
|
18
|
+
'4 / 3' = "1.33",
|
|
19
|
+
'16 / 9' = "1.78"
|
|
20
|
+
}
|
|
8
21
|
export interface IImageAspectRatioWrapperProps {
|
|
9
22
|
/**
|
|
10
23
|
* Aspect ratio of the contained image
|
|
@@ -25,3 +38,13 @@ export interface IImageWithCaptionProps {
|
|
|
25
38
|
*/
|
|
26
39
|
children: ReactElement<HTMLImageElement>;
|
|
27
40
|
}
|
|
41
|
+
export interface IImageWithCaptionWrapperProps extends StyledProps<any> {
|
|
42
|
+
/**
|
|
43
|
+
* Aspect ratio of the contained image
|
|
44
|
+
*/
|
|
45
|
+
aspectRatio?: AspectRatio;
|
|
46
|
+
/**
|
|
47
|
+
* Height of the wrapper
|
|
48
|
+
*/
|
|
49
|
+
height: number;
|
|
50
|
+
}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -4,4 +4,5 @@ import { INavigationProps, INavTopProps } from './navigation';
|
|
|
4
4
|
import { CarouselType } from './carousel';
|
|
5
5
|
import { IconNameType } from './iconTypes';
|
|
6
6
|
import { AspectRatio } from './image';
|
|
7
|
-
|
|
7
|
+
import { TickboxMode } from './tickbox';
|
|
8
|
+
export { AspectRatio, CarouselType, Colors, FooterData, IconNameType, INavigationProps, INavTopProps, TickboxMode, ThemeType, };
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
export declare enum TickboxMode {
|
|
2
|
+
Dark = "dark",
|
|
3
|
+
Light = "light"
|
|
4
|
+
}
|
|
5
|
+
export interface ITickboxProps {
|
|
6
|
+
/**
|
|
7
|
+
* The text of tickbox
|
|
8
|
+
*/
|
|
9
|
+
children: string;
|
|
10
|
+
/**
|
|
11
|
+
* Tickbox is checked or not initially
|
|
12
|
+
*/
|
|
13
|
+
checked?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Mode to determine colors of text and checkmark
|
|
16
|
+
*/
|
|
17
|
+
mode?: TickboxMode;
|
|
18
|
+
/**
|
|
19
|
+
* Callback called when tickbox change
|
|
20
|
+
*/
|
|
21
|
+
onChange?: (checked: boolean) => void;
|
|
22
|
+
}
|
|
23
|
+
export interface TickboxLabelProps {
|
|
24
|
+
/**
|
|
25
|
+
* Dark mode or not
|
|
26
|
+
*/
|
|
27
|
+
dark: boolean;
|
|
28
|
+
}
|
|
29
|
+
export interface TickboxInputProps {
|
|
30
|
+
/**
|
|
31
|
+
* Dark mode or not
|
|
32
|
+
*/
|
|
33
|
+
dark: boolean;
|
|
34
|
+
}
|
|
35
|
+
export interface TickboxCheckmarkProps {
|
|
36
|
+
/**
|
|
37
|
+
* Dark mode or not
|
|
38
|
+
*/
|
|
39
|
+
dark: boolean;
|
|
40
|
+
}
|