@royaloperahouse/chord 2.2.7-b-chord-development → 2.2.8-a-chord-development

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.
@@ -0,0 +1,4 @@
1
+ import { FunctionComponent } from 'react';
2
+ import { IAuxiliaryButtonProps } from '../../../../types';
3
+ declare const AuxiliaryButton: FunctionComponent<IAuxiliaryButtonProps>;
4
+ export default AuxiliaryButton;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { IAuxiliaryButtonProps } from '../../../../types';
3
+ declare const AuxiliaryButtonWrapper: import("styled-components").StyledComponent<import("react").FunctionComponent<import("../../../../types/buttonTypes").IButtonProps>, any, IAuxiliaryButtonProps, never>;
4
+ export default AuxiliaryButtonWrapper;
@@ -0,0 +1,4 @@
1
+ import * as React from 'react';
2
+ import { IconSVGProps } from '../../../../../types/iconTypes';
3
+ declare const _default: ({ color }: IconSVGProps) => React.ReactElement;
4
+ export default _default;
@@ -0,0 +1,4 @@
1
+ import * as React from 'react';
2
+ import { IconSVGProps } from '../../../../../types/iconTypes';
3
+ declare const _default: ({ color }: IconSVGProps) => React.ReactElement;
4
+ export default _default;
@@ -22,6 +22,7 @@ export declare const IconLibrary: {
22
22
  EditMyList: ({ color }: import("../../../../types/iconTypes").IconSVGProps) => import("react").ReactElement<any, string | ((props: any) => import("react").ReactElement<any, any> | null) | (new (props: any) => import("react").Component<any, any, any>)>;
23
23
  Email: ({ color }: import("../../../../types/iconTypes").IconSVGProps) => import("react").ReactElement<any, string | ((props: any) => import("react").ReactElement<any, any> | null) | (new (props: any) => import("react").Component<any, any, any>)>;
24
24
  Expand: ({ color }: import("../../../../types/iconTypes").IconSVGProps) => import("react").ReactElement<any, string | ((props: any) => import("react").ReactElement<any, any> | null) | (new (props: any) => import("react").Component<any, any, any>)>;
25
+ Expand12px: ({ color }: import("../../../../types/iconTypes").IconSVGProps) => import("react").ReactElement<any, string | ((props: any) => import("react").ReactElement<any, any> | null) | (new (props: any) => import("react").Component<any, any, any>)>;
25
26
  ExternalLink: ({ color }: import("../../../../types/iconTypes").IconSVGProps) => import("react").ReactElement<any, string | ((props: any) => import("react").ReactElement<any, any> | null) | (new (props: any) => import("react").Component<any, any, any>)>;
26
27
  Facebook: ({ color }: import("../../../../types/iconTypes").IconSVGProps) => import("react").ReactElement<any, string | ((props: any) => import("react").ReactElement<any, any> | null) | (new (props: any) => import("react").Component<any, any, any>)>;
27
28
  Favourite: ({ color }: import("../../../../types/iconTypes").IconSVGProps) => import("react").ReactElement<any, string | ((props: any) => import("react").ReactElement<any, any> | null) | (new (props: any) => import("react").Component<any, any, any>)>;
@@ -51,6 +52,7 @@ export declare const IconLibrary: {
51
52
  Refresh: ({ color }: import("../../../../types/iconTypes").IconSVGProps) => import("react").ReactElement<any, string | ((props: any) => import("react").ReactElement<any, any> | null) | (new (props: any) => import("react").Component<any, any, any>)>;
52
53
  Reminder: ({ color }: import("../../../../types/iconTypes").IconSVGProps) => import("react").ReactElement<any, string | ((props: any) => import("react").ReactElement<any, any> | null) | (new (props: any) => import("react").Component<any, any, any>)>;
53
54
  Remove: ({ color }: import("../../../../types/iconTypes").IconSVGProps) => import("react").ReactElement<any, string | ((props: any) => import("react").ReactElement<any, any> | null) | (new (props: any) => import("react").Component<any, any, any>)>;
55
+ Remove12px: ({ color }: import("../../../../types/iconTypes").IconSVGProps) => import("react").ReactElement<any, string | ((props: any) => import("react").ReactElement<any, any> | null) | (new (props: any) => import("react").Component<any, any, any>)>;
54
56
  Restart: ({ color }: import("../../../../types/iconTypes").IconSVGProps) => import("react").ReactElement<any, string | ((props: any) => import("react").ReactElement<any, any> | null) | (new (props: any) => import("react").Component<any, any, any>)>;
55
57
  Search: ({ color }: import("../../../../types/iconTypes").IconSVGProps) => import("react").ReactElement<any, string | ((props: any) => import("react").ReactElement<any, any> | null) | (new (props: any) => import("react").Component<any, any, any>)>;
56
58
  Seat: ({ color }: import("../../../../types/iconTypes").IconSVGProps) => import("react").ReactElement<any, string | ((props: any) => import("react").ReactElement<any, any> | null) | (new (props: any) => import("react").Component<any, any, any>)>;
@@ -18,6 +18,7 @@ export declare const LabelContainer: import("styled-components").StyledComponent
18
18
  isVisible: boolean;
19
19
  isGridCard: boolean;
20
20
  }, never>;
21
+ export declare const ExtraActionsContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
21
22
  export declare const LabelElements: import("styled-components").StyledComponent<"div", any, {
22
23
  bgColor?: Colors | undefined;
23
24
  }, never>;
package/dist/index.d.ts CHANGED
@@ -5,4 +5,5 @@ import { AspectRatio, ButtonType, CarouselType, Colors, IconNameType, Integrated
5
5
  import { MiniCard } from './components/molecules';
6
6
  import { BrandingStyle } from './types/impactHeader';
7
7
  import { ModalWindow } from './components/organisms';
8
- export { Accordion, Accordions, AnnouncementBanner, AltHeader, AnchorTabBar, AuxiliaryNav, AspectRatio, BodyText, BrandingStyle, breakpoints, ButtonType, Card, Cards, CarouselType, CinemaBadge, Colors, ContactCard, ContentSummary, ControlledDropdown, CreditListing, devices, Editorial, EditorialLink, Footer, GlobalStyles, Grid, GridItem, Header, Icon, IconNameType, ImageAspectRatioWrapper, ImageWithCaption, Information, ITimerProps, IntegratedTimerProps, LiveChat, MiniCard, ModalWindow, Navigation, Overline, PageHeadingCinema, PageHeadingCompact, PageHeadingCore, PageHeadingImpact, PageHeadingPanel, PageHeadingStream, Pagination, PasswordStrength, PeopleListing, PrimaryButton, Progress, PromoWithTags, PromoWithTitle, Radio, Radio2, RadioGroup, RadioGroup2, ReadMore, RotatorButtons, StatusBanner, SearchBar, SecondaryButton, SecondaryLogo, SectionSplitter, SectionTitle, Select, Sponsorship, Stepper, StickyBar, StreamBadge, Subtitle, Tab, TabLink, Tabs, TertiaryButton, TextArea, TextField, TextLink, TextOnly, ThemeProvider, ThemeType, TitleWithCTA, Tickbox, Tickbox2, TickboxMode, Timer, TypeTags, UpsellCard, UpsellSection, Quote, zIndexes, };
8
+ import AuxiliaryButton from './components/atoms/Buttons/Auxiliary/AuxiliaryButton';
9
+ export { Accordion, Accordions, AnnouncementBanner, AltHeader, AnchorTabBar, AuxiliaryButton, AuxiliaryNav, AspectRatio, BodyText, BrandingStyle, breakpoints, ButtonType, Card, Cards, CarouselType, CinemaBadge, Colors, ContactCard, ContentSummary, ControlledDropdown, CreditListing, devices, Editorial, EditorialLink, Footer, GlobalStyles, Grid, GridItem, Header, Icon, IconNameType, ImageAspectRatioWrapper, ImageWithCaption, Information, ITimerProps, IntegratedTimerProps, LiveChat, MiniCard, ModalWindow, Navigation, Overline, PageHeadingCinema, PageHeadingCompact, PageHeadingCore, PageHeadingImpact, PageHeadingPanel, PageHeadingStream, Pagination, PasswordStrength, PeopleListing, PrimaryButton, Progress, PromoWithTags, PromoWithTitle, Radio, Radio2, RadioGroup, RadioGroup2, ReadMore, RotatorButtons, StatusBanner, SearchBar, SecondaryButton, SecondaryLogo, SectionSplitter, SectionTitle, Select, Sponsorship, Stepper, StickyBar, StreamBadge, Subtitle, Tab, TabLink, Tabs, TertiaryButton, TextArea, TextField, TextLink, TextOnly, ThemeProvider, ThemeType, TitleWithCTA, Tickbox, Tickbox2, TickboxMode, Timer, TypeTags, UpsellCard, UpsellSection, Quote, zIndexes, };
@@ -13,6 +13,7 @@ export declare const core: {
13
13
  primaryButton: string;
14
14
  secondaryButton: string;
15
15
  tertiaryButton: string;
16
+ auxiliaryButton: string;
16
17
  primaryButtonReverseBg: string;
17
18
  primaryButtonReverse: string;
18
19
  core: string;
@@ -477,10 +478,11 @@ export declare const stream: {
477
478
  colors: {
478
479
  primary: string;
479
480
  primaryButton: string;
480
- secondaryButton: string;
481
- tertiaryButton: string;
482
481
  primaryButtonReverseBg: string;
483
482
  primaryButtonReverse: string;
483
+ secondaryButton: string;
484
+ tertiaryButton: string;
485
+ auxiliaryButton: string;
484
486
  core: string;
485
487
  stream: string;
486
488
  cinema: string;
@@ -943,10 +945,11 @@ export declare const cinema: {
943
945
  colors: {
944
946
  primary: string;
945
947
  primaryButton: string;
946
- secondaryButton: string;
947
- tertiaryButton: string;
948
948
  primaryButtonReverseBg: string;
949
949
  primaryButtonReverse: string;
950
+ secondaryButton: string;
951
+ tertiaryButton: string;
952
+ auxiliaryButton: string;
950
953
  core: string;
951
954
  stream: string;
952
955
  cinema: string;
@@ -1409,10 +1412,11 @@ export declare const schools: {
1409
1412
  colors: {
1410
1413
  primary: string;
1411
1414
  primaryButton: string;
1412
- secondaryButton: string;
1413
- tertiaryButton: string;
1414
1415
  primaryButtonReverseBg: string;
1415
1416
  primaryButtonReverse: string;
1417
+ secondaryButton: string;
1418
+ tertiaryButton: string;
1419
+ auxiliaryButton: string;
1416
1420
  core: string;
1417
1421
  stream: string;
1418
1422
  cinema: string;
@@ -1878,6 +1882,7 @@ export declare const themes: {
1878
1882
  primaryButton: string;
1879
1883
  secondaryButton: string;
1880
1884
  tertiaryButton: string;
1885
+ auxiliaryButton: string;
1881
1886
  primaryButtonReverseBg: string;
1882
1887
  primaryButtonReverse: string;
1883
1888
  core: string;
@@ -2342,10 +2347,11 @@ export declare const themes: {
2342
2347
  colors: {
2343
2348
  primary: string;
2344
2349
  primaryButton: string;
2345
- secondaryButton: string;
2346
- tertiaryButton: string;
2347
2350
  primaryButtonReverseBg: string;
2348
2351
  primaryButtonReverse: string;
2352
+ secondaryButton: string;
2353
+ tertiaryButton: string;
2354
+ auxiliaryButton: string;
2349
2355
  core: string;
2350
2356
  stream: string;
2351
2357
  cinema: string;
@@ -2808,10 +2814,11 @@ export declare const themes: {
2808
2814
  colors: {
2809
2815
  primary: string;
2810
2816
  primaryButton: string;
2811
- secondaryButton: string;
2812
- tertiaryButton: string;
2813
2817
  primaryButtonReverseBg: string;
2814
2818
  primaryButtonReverse: string;
2819
+ secondaryButton: string;
2820
+ tertiaryButton: string;
2821
+ auxiliaryButton: string;
2815
2822
  core: string;
2816
2823
  stream: string;
2817
2824
  cinema: string;
@@ -3283,10 +3290,11 @@ export declare const themes: {
3283
3290
  colors: {
3284
3291
  primary: string;
3285
3292
  primaryButton: string;
3286
- secondaryButton: string;
3287
- tertiaryButton: string;
3288
3293
  primaryButtonReverseBg: string;
3289
3294
  primaryButtonReverse: string;
3295
+ secondaryButton: string;
3296
+ tertiaryButton: string;
3297
+ auxiliaryButton: string;
3290
3298
  core: string;
3291
3299
  stream: string;
3292
3300
  cinema: string;
@@ -20,6 +20,10 @@ export interface IButtonProps extends AnchorHTMLAttributes<HTMLAnchorElement> {
20
20
  * Direction of the icon used in the button
21
21
  */
22
22
  iconDirection?: DirectionType;
23
+ /**
24
+ * ClassName for the icon to be used in the button
25
+ */
26
+ iconClassName?: string;
23
27
  /**
24
28
  * Color of text and icon
25
29
  */
@@ -31,6 +35,16 @@ export interface IPrimaryButtonProps extends IButtonProps {
31
35
  */
32
36
  bgColor?: Colors;
33
37
  }
38
+ export interface IAuxiliaryButtonProps extends IButtonProps {
39
+ /**
40
+ * Button background color
41
+ */
42
+ bgColor?: Colors;
43
+ /**
44
+ * Function to be called when a button is clicked
45
+ */
46
+ onClick?: MouseEventHandler<HTMLAnchorElement>;
47
+ }
34
48
  export interface ITertiaryButtonProps extends AnchorHTMLAttributes<HTMLAnchorElement> {
35
49
  /**
36
50
  * Color of text and icon
@@ -1,5 +1,5 @@
1
1
  import { StyledProps } from 'styled-components';
2
- import { Colors, IconNameType } from '.';
2
+ import { Colors, EditorialLink, IconNameType } from '.';
3
3
  import { PromoLinks } from './editorial';
4
4
  import { DirectionType } from './iconTypes';
5
5
  export interface CardLabelProps {
@@ -93,6 +93,10 @@ export interface ICardProps {
93
93
  * Defines if it is Card in the Grid or in the Carousel
94
94
  */
95
95
  isGridCard?: boolean;
96
+ /**
97
+ * Renders an auxiliary button when passed
98
+ */
99
+ auxiliaryCTA?: EditorialLink;
96
100
  }
97
101
  export interface ICardContentContainerProps extends StyledProps<any> {
98
102
  /**
@@ -5,10 +5,10 @@ import { CarouselType } from './carousel';
5
5
  import { IconNameType } from './iconTypes';
6
6
  import { AspectRatio } from './image';
7
7
  import { TickboxMode } from './tickbox';
8
- import { ButtonType } from './buttonTypes';
8
+ import { ButtonType, IAuxiliaryButtonProps } from './buttonTypes';
9
9
  import { EditorialLink } from './editorial';
10
10
  import { IPageHeadingCompactProps } from './impactHeader';
11
11
  import { IntegratedTimerProps, ITimerProps } from './timer';
12
12
  import { ICreditListing } from './creditListing';
13
13
  import { ModalWindowProps } from './modalWindow';
14
- export { AspectRatio, ButtonType, CarouselType, Colors, ICreditListing, EditorialLink, FooterData, IconNameType, IPageHeadingCompactProps, INavigationProps, INavTopProps, IntegratedTimerProps, ITimerProps, ModalWindowProps, TickboxMode, ThemeType, };
14
+ export { AspectRatio, ButtonType, CarouselType, Colors, EditorialLink, FooterData, IconNameType, IAuxiliaryButtonProps, ICreditListing, IPageHeadingCompactProps, INavigationProps, INavTopProps, IntegratedTimerProps, ITimerProps, ModalWindowProps, TickboxMode, ThemeType, };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@royaloperahouse/chord",
3
- "version": "2.2.7-b-chord-development",
3
+ "version": "2.2.8-a-chord-development",
4
4
  "author": "Royal Opera House",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",