@royaloperahouse/chord 0.5.9 → 0.7.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/CHANGELOG.md +17 -0
- package/README.md +2 -2
- package/dist/chord.cjs.development.js +430 -353
- 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 +431 -355
- 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 +3 -3
- package/dist/components/molecules/PeopleListing/PeopleListing.d.ts +1 -1
- package/dist/components/molecules/PeopleListing/PeopleListing.style.d.ts +4 -2
- package/dist/components/organisms/AnchorTapBar/AnchorTapBar.style.d.ts +0 -6
- package/dist/components/organisms/Navigation/Navigation.style.d.ts +1 -0
- package/dist/components/organisms/TitleWithCTA/TitleWithCTA.d.ts +4 -0
- package/dist/components/organisms/TitleWithCTA/TitleWithCTA.style.d.ts +8 -0
- package/dist/components/organisms/TitleWithCTA/index.d.ts +2 -0
- package/dist/components/organisms/index.d.ts +2 -1
- package/dist/index.d.ts +3 -3
- package/dist/types/index.d.ts +2 -1
- package/dist/types/navigation.d.ts +16 -10
- package/dist/types/tickbox.d.ts +40 -0
- package/dist/types/types.d.ts +25 -4
- package/package.json +1 -1
- package/dist/components/atoms/IndividualListing/IndividualListing.d.ts +0 -3
- package/dist/components/atoms/IndividualListing/IndividualListing.style.d.ts +0 -2
- package/dist/components/atoms/IndividualListing/index.d.ts +0 -2
|
@@ -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';
|
|
2
|
-
import { AnchorTapBar, HighlightsCarousel, HighlightsCarouselCinema, HighlightsCarouselCore, HighlightsCarouselStream, Carousel, Footer, Navigation } from './organisms';
|
|
1
|
+
import { AltHeader, BodyText, CinemaBadge, Grid, GridItem, Header, Icon, ImageAspectRatioWrapper, Overline, PrimaryButton, RotatorButtons, SecondaryButton, SecondaryLogo, TertiaryButton, SectionSplitter, Sponsorship, StreamBadge, Subtitle, Tab, TabLink, Tickbox, TypeTags } from './atoms';
|
|
2
|
+
import { AnchorTapBar, HighlightsCarousel, HighlightsCarouselCinema, HighlightsCarouselCore, HighlightsCarouselStream, Carousel, Footer, Navigation, TitleWithCTA } 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, TitleWithCTA, SectionSplitter, Tab, TabLink, Tabs, Tickbox, TypeTags, };
|
|
@@ -1,2 +1,4 @@
|
|
|
1
|
-
declare const PeopleListingGrid: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
2
|
-
export
|
|
1
|
+
export declare const PeopleListingGrid: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
2
|
+
export declare const RoleWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
3
|
+
export declare const PersonLink: import("styled-components").StyledComponent<"a", any, {}, never>;
|
|
4
|
+
export declare const PersonText: import("styled-components").StyledComponent<"span", any, {}, never>;
|
|
@@ -1,13 +1,7 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { IAnchorTabsListProps } from '../../../types/navigation';
|
|
3
2
|
export declare const AnchorTapbarWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
4
|
-
export declare const TitleCTAGrid: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
5
|
-
export declare const AnchorTitle: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
6
|
-
export declare const ButtonsDesktopGridItem: import("styled-components").StyledComponent<"div", any, import("../../../types/types").IGridItemProps, never>;
|
|
7
3
|
export declare const TabsGrid: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
8
4
|
export declare const TabsWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
9
5
|
export declare const TabsList: import("styled-components").StyledComponent<"ul", any, IAnchorTabsListProps, never>;
|
|
10
6
|
export declare const ArrowsContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
11
7
|
export declare const ArrowWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
12
|
-
export declare const ButtonsMobileWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
13
|
-
export declare const PrimaryButtonReverse: import("styled-components").StyledComponent<import("react").FunctionComponent<import("../../../types/buttonTypes").IPrimaryButtonProps>, 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>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ITitleCTAProps } from '../../../types/navigation';
|
|
3
|
+
export declare const TitleCTAGridWrapper: import("styled-components").StyledComponent<"div", any, ITitleCTAProps, never>;
|
|
4
|
+
export declare const CTAGridWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
5
|
+
export declare const AnchorTitle: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
6
|
+
export declare const ButtonsDesktopGridItem: import("styled-components").StyledComponent<"div", any, import("../../../types/types").IGridItemProps, never>;
|
|
7
|
+
export declare const ButtonsMobileWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
8
|
+
export declare const PrimaryButtonReverse: import("styled-components").StyledComponent<import("react").FunctionComponent<import("../../../types/buttonTypes").IPrimaryButtonProps>, any, {}, never>;
|
|
@@ -3,4 +3,5 @@ import Footer from './Footer';
|
|
|
3
3
|
import AnchorTapBar from './AnchorTapBar';
|
|
4
4
|
import Carousel from './Carousel';
|
|
5
5
|
import { HighlightsCarousel, HighlightsCarouselCinema, HighlightsCarouselCore, HighlightsCarouselStream } from './HighlightsCarousel';
|
|
6
|
-
|
|
6
|
+
import TitleWithCTA from './TitleWithCTA';
|
|
7
|
+
export { AnchorTapBar, Carousel, HighlightsCarousel, HighlightsCarouselCinema, HighlightsCarouselCore, HighlightsCarouselStream, Navigation, Footer, TitleWithCTA, };
|
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, TitleWithCTA, Tab, 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, Tab, TabLink, Tabs, TertiaryButton, TextOnly, ThemeProvider, ThemeType, TitleWithCTA, Tickbox, TickboxMode, TypeTags, };
|
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, };
|
|
@@ -167,7 +167,7 @@ export interface ISearchBarProps {
|
|
|
167
167
|
*/
|
|
168
168
|
onClose: () => void;
|
|
169
169
|
}
|
|
170
|
-
export declare type
|
|
170
|
+
export declare type TitleCTALink = AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
171
171
|
/**
|
|
172
172
|
* Text inside the link
|
|
173
173
|
*/
|
|
@@ -189,7 +189,7 @@ export declare type AnchorBarLink = AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
|
189
189
|
*/
|
|
190
190
|
color?: Colors;
|
|
191
191
|
};
|
|
192
|
-
export declare type
|
|
192
|
+
export declare type TitleCTALinks = [TitleCTALink, TitleCTALink?];
|
|
193
193
|
export declare type AnchorBarTab = AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
194
194
|
/**
|
|
195
195
|
* Visible text in a tab
|
|
@@ -205,18 +205,10 @@ export declare type AnchorBarTab = AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
|
205
205
|
color?: Colors;
|
|
206
206
|
};
|
|
207
207
|
export interface IAnchorBarProps {
|
|
208
|
-
/**
|
|
209
|
-
* Text placed in the anchor bar component
|
|
210
|
-
*/
|
|
211
|
-
title?: string;
|
|
212
208
|
/**
|
|
213
209
|
* Tabs displayed in the anchor bar
|
|
214
210
|
*/
|
|
215
211
|
tabs: AnchorBarTab[];
|
|
216
|
-
/**
|
|
217
|
-
* Array of buttons props. First one should have PrimaryButton attributes, second one Tertiary button attributes
|
|
218
|
-
*/
|
|
219
|
-
links?: AnchorBarLinks;
|
|
220
212
|
/**
|
|
221
213
|
* Function to be called when a tab is clicked
|
|
222
214
|
*/
|
|
@@ -226,6 +218,20 @@ export interface IAnchorBarProps {
|
|
|
226
218
|
*/
|
|
227
219
|
activeTab?: string;
|
|
228
220
|
}
|
|
221
|
+
export interface ITitleCTAProps {
|
|
222
|
+
/**
|
|
223
|
+
* Array of buttons props. First one should have PrimaryButton attributes, second one Tertiary button attributes
|
|
224
|
+
*/
|
|
225
|
+
links?: TitleCTALinks;
|
|
226
|
+
/**
|
|
227
|
+
* Text placed in the anchor bar component
|
|
228
|
+
*/
|
|
229
|
+
title?: string;
|
|
230
|
+
/**
|
|
231
|
+
* Boolean to determine if is sticky
|
|
232
|
+
*/
|
|
233
|
+
sticky?: boolean;
|
|
234
|
+
}
|
|
229
235
|
export interface IAnchorTabsListProps {
|
|
230
236
|
/**
|
|
231
237
|
* Boolean to determine that the list tab is overflowed
|
|
@@ -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
|
+
}
|
package/dist/types/types.d.ts
CHANGED
|
@@ -237,14 +237,35 @@ export interface IControlledDropdownHeaderProps extends StyledProps<any> {
|
|
|
237
237
|
*/
|
|
238
238
|
active: boolean;
|
|
239
239
|
}
|
|
240
|
-
export
|
|
241
|
-
|
|
240
|
+
export declare type ListingPerson = {
|
|
241
|
+
/**
|
|
242
|
+
* Person name
|
|
243
|
+
*/
|
|
242
244
|
name: string;
|
|
245
|
+
/**
|
|
246
|
+
* Link to person profile
|
|
247
|
+
*/
|
|
243
248
|
link?: string;
|
|
249
|
+
};
|
|
250
|
+
export declare type ListingRole = {
|
|
251
|
+
/**
|
|
252
|
+
* Role name
|
|
253
|
+
*/
|
|
254
|
+
name: string;
|
|
255
|
+
/**
|
|
256
|
+
* List of people in the role
|
|
257
|
+
*/
|
|
258
|
+
people: ListingPerson[];
|
|
259
|
+
/**
|
|
260
|
+
* Data roh param
|
|
261
|
+
*/
|
|
244
262
|
dataROH?: string;
|
|
245
|
-
}
|
|
263
|
+
};
|
|
246
264
|
export interface IPeopleListing {
|
|
247
|
-
|
|
265
|
+
/**
|
|
266
|
+
* List of roles to be displayed
|
|
267
|
+
*/
|
|
268
|
+
roles: ListingRole[];
|
|
248
269
|
}
|
|
249
270
|
export interface INodeProps {
|
|
250
271
|
/**
|
package/package.json
CHANGED