@royaloperahouse/chord 2.2.9 → 2.2.10-b-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.
Files changed (34) hide show
  1. package/CHANGELOG.md +214 -9
  2. package/README.md +250 -40
  3. package/dist/chord.cjs.development.js +531 -208
  4. package/dist/chord.cjs.development.js.map +1 -1
  5. package/dist/chord.cjs.production.min.js +1 -1
  6. package/dist/chord.cjs.production.min.js.map +1 -1
  7. package/dist/chord.esm.js +529 -209
  8. package/dist/chord.esm.js.map +1 -1
  9. package/dist/components/atoms/Buttons/Auxiliary/AuxiliaryButton.d.ts +4 -0
  10. package/dist/components/atoms/Buttons/Auxiliary/AuxiliaryButton.style.d.ts +4 -0
  11. package/dist/components/atoms/Icons/SvgIcons/12px/Expand.svg.d.ts +4 -0
  12. package/dist/components/atoms/Icons/SvgIcons/Utility/Remove.svg.d.ts +4 -0
  13. package/dist/components/atoms/Icons/SvgIcons/index.d.ts +2 -0
  14. package/dist/components/index.d.ts +2 -2
  15. package/dist/components/molecules/Card/Card.style.d.ts +2 -0
  16. package/dist/components/molecules/PageHeading/index.d.ts +1 -1
  17. package/dist/components/molecules/PeopleListing/CreditListing/CreditListing.style.d.ts +1 -0
  18. package/dist/components/molecules/Select2/Select2.d.ts +7 -1
  19. package/dist/components/molecules/Select2Async/Select2Async.d.ts +18 -0
  20. package/dist/components/molecules/Select2Async/index.d.ts +2 -0
  21. package/dist/components/molecules/Table/Table.d.ts +4 -0
  22. package/dist/components/molecules/Table/Table.style.d.ts +16 -0
  23. package/dist/components/molecules/Table/index.d.ts +2 -0
  24. package/dist/components/molecules/index.d.ts +4 -2
  25. package/dist/index.d.ts +4 -2
  26. package/dist/styles/themes.d.ts +20 -12
  27. package/dist/types/buttonTypes.d.ts +14 -0
  28. package/dist/types/card.d.ts +9 -1
  29. package/dist/types/formTypes.d.ts +19 -12
  30. package/dist/types/index.d.ts +2 -2
  31. package/dist/types/passwordStrength.d.ts +6 -6
  32. package/dist/types/tableTypes.d.ts +42 -0
  33. package/package.json +1 -1
  34. package/README.GIT +0 -277
@@ -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>)>;
@@ -1,6 +1,6 @@
1
1
  import { AltHeader, BodyText, CinemaBadge, ControlledDropdown, Grid, GridItem, Header, Icon, ImageAspectRatioWrapper, Overline, PrimaryButton, Progress, Radio, Radio2, RotatorButtons, SecondaryButton, SecondaryLogo, TertiaryButton, SectionSplitter, Sponsorship, Stepper, StreamBadge, Subtitle, Tab, TabLink, TextLogo, TextArea, TextField, TextLink, Tickbox, Tickbox2, Timer, TypeTags, VideoControls } from './atoms';
2
2
  import { AnchorTabBar, Footer, LiveChat, Navigation, StickyBar, TitleWithCTA, UpsellSection } from './organisms';
3
- import { Accordion, Accordions, AnnouncementBanner, AuxiliaryNav, Card, Cards, ContactCard, ContentSummary, CreditListing, Editorial, ImageWithCaption, Information, PageHeadingCinema, PageHeadingCompact, PageHeadingCore, PageHeadingImpact, PageHeadingPanel, PageHeadingStream, PasswordStrength, Pagination, PeopleListing, PromoWithTags, PromoWithTitle, RadioGroup, RadioGroup2, ReadMore, StatusBanner, SearchBar, SectionTitle, Select, Select2, Tabs, TextOnly, UpsellCard, Quote } from './molecules';
3
+ import { Accordion, Accordions, AnnouncementBanner, AuxiliaryNav, Card, Cards, ContactCard, ContentSummary, CreditListing, Editorial, ImageWithCaption, Information, PageHeadingCinema, PageHeadingCompact, PageHeadingCore, PageHeadingImpact, PageHeadingPanel, PageHeadingStream, PasswordStrength, Pagination, PeopleListing, PromoWithTags, PromoWithTitle, RadioGroup, RadioGroup2, ReadMore, StatusBanner, SearchBar, SectionTitle, Select, Select2, Select2Async, Table, Tabs, TextOnly, UpsellCard, Quote } from './molecules';
4
4
  import ThemeProvider from '../styles/ThemeProvider';
5
5
  import GlobalStyles from '../styles/GlobalStyles';
6
- export { Accordion, Accordions, AnnouncementBanner, AltHeader, AnchorTabBar, AuxiliaryNav, BodyText, Card, Cards, ContactCard, ContentSummary, CinemaBadge, ControlledDropdown, CreditListing, Editorial, Footer, GlobalStyles, Grid, GridItem, Header, Icon, ImageAspectRatioWrapper, ImageWithCaption, Information, Navigation, Overline, PageHeadingCinema, PageHeadingCompact, PageHeadingCore, PageHeadingImpact, PageHeadingPanel, PageHeadingStream, Pagination, PasswordStrength, PeopleListing, PrimaryButton, Progress, PromoWithTags, PromoWithTitle, Radio, Radio2, RadioGroup, RadioGroup2, ReadMore, RotatorButtons, SecondaryButton, SecondaryLogo, StatusBanner, SearchBar, SectionTitle, Select, Select2, Sponsorship, Stepper, StickyBar, StreamBadge, Subtitle, TertiaryButton, TextOnly, ThemeProvider, TitleWithCTA, SectionSplitter, Tab, TabLink, Tabs, TextArea, TextField, TextLink, TextLogo, Tickbox, Tickbox2, Timer, TypeTags, UpsellCard, UpsellSection, Quote, LiveChat, VideoControls, };
6
+ export { Accordion, Accordions, AnnouncementBanner, AltHeader, AnchorTabBar, AuxiliaryNav, BodyText, Card, Cards, ContactCard, ContentSummary, CinemaBadge, ControlledDropdown, CreditListing, Editorial, Footer, GlobalStyles, Grid, GridItem, Header, Icon, ImageAspectRatioWrapper, ImageWithCaption, Information, Navigation, Overline, PageHeadingCinema, PageHeadingCompact, PageHeadingCore, PageHeadingImpact, PageHeadingPanel, PageHeadingStream, Pagination, PasswordStrength, PeopleListing, PrimaryButton, Progress, PromoWithTags, PromoWithTitle, Radio, Radio2, RadioGroup, RadioGroup2, ReadMore, RotatorButtons, SecondaryButton, SecondaryLogo, StatusBanner, SearchBar, SectionTitle, Select, Select2, Select2Async, Sponsorship, Stepper, StickyBar, StreamBadge, Subtitle, TertiaryButton, TextOnly, ThemeProvider, TitleWithCTA, SectionSplitter, Tab, TabLink, Table, Tabs, TextArea, TextField, TextLink, TextLogo, Tickbox, Tickbox2, Timer, TypeTags, UpsellCard, UpsellSection, Quote, LiveChat, VideoControls, };
@@ -12,11 +12,13 @@ export declare const ContentContainer: import("styled-components").StyledCompone
12
12
  export declare const TitleContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
13
13
  export declare const TitleContainerMobile: import("styled-components").StyledComponent<"div", any, {}, never>;
14
14
  export declare const TextContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
15
+ export declare const HighlightTextContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
15
16
  export declare const SubtitleContainer: import("styled-components").StyledComponent<"span", any, {}, never>;
16
17
  export declare const LabelContainer: import("styled-components").StyledComponent<"div", any, {
17
18
  isVisible: boolean;
18
19
  isGridCard: boolean;
19
20
  }, never>;
21
+ export declare const ExtraActionsContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
20
22
  export declare const LabelElements: import("styled-components").StyledComponent<"div", any, {
21
23
  bgColor?: Colors | undefined;
22
24
  }, never>;
@@ -4,4 +4,4 @@ import PageHeadingImpact from './Impact';
4
4
  import PageHeadingPanel from './Panel';
5
5
  import PageHeadingStream from './Stream';
6
6
  import PageHeadingCompact from './Compact/Compact';
7
- export { PageHeadingCinema, PageHeadingCore, PageHeadingImpact, PageHeadingStream, PageHeadingCompact, PageHeadingPanel, };
7
+ export { PageHeadingCinema, PageHeadingCore, PageHeadingImpact, PageHeadingPanel, PageHeadingStream, PageHeadingCompact, };
@@ -3,3 +3,4 @@ export declare const CreditListingWrapper: import("styled-components").StyledCom
3
3
  export declare const DescriptionWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
4
4
  export declare const RoleWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
5
5
  export declare const CreditWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
6
+ export declare const CreditBodyWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -1,5 +1,11 @@
1
- import { FunctionComponent } from 'react';
1
+ import React, { FunctionComponent } from 'react';
2
+ import { DropdownIndicatorProps } from 'react-select';
2
3
  import { ISelect2Props } from '../../../types/formTypes';
4
+ export declare const DropdownIndicator: (props: DropdownIndicatorProps) => JSX.Element;
5
+ interface IWrapperProps extends Pick<ISelect2Props, 'label' | 'error' | 'width' | 'darkMode'> {
6
+ children: React.ReactNode;
7
+ }
8
+ export declare const WrapperComponent: FunctionComponent<IWrapperProps>;
3
9
  /**
4
10
  * A Select2 component wraps react-select with Chord styling and additional elements like
5
11
  * text and error labels. This should be used just as usual react-select component.
@@ -0,0 +1,18 @@
1
+ import { FunctionComponent } from 'react';
2
+ import { ISelect2AsyncProps } from '../../../types/formTypes';
3
+ /**
4
+ * The Select2Async component is similar to Select 2, but uses react-select async
5
+ * component for select instead of regular react-select component. This can be used
6
+ * for selects with dynamically loaded options, live search components etc.
7
+ *
8
+ * # Error state
9
+ * An error label will be shown below the select if the `error` prop exists.
10
+ * Also select will be rendered with a red border. An empty string can be passed to
11
+ * render only error state without error message.
12
+ *
13
+ * # Light / Dark mode
14
+ * The component can also adapt its styles for light / dark mode. If you want this component
15
+ * to be rendered on a dark / coloured background, you can use the `darkMode` prop.
16
+ */
17
+ declare const SelectComponent: FunctionComponent<ISelect2AsyncProps>;
18
+ export default SelectComponent;
@@ -0,0 +1,2 @@
1
+ import Select2Async from './Select2Async';
2
+ export default Select2Async;
@@ -0,0 +1,4 @@
1
+ import { FunctionComponent } from 'react';
2
+ import { ITableProps } from '../../../types/tableTypes';
3
+ declare const Table: FunctionComponent<ITableProps>;
4
+ export default Table;
@@ -0,0 +1,16 @@
1
+ import { ThemeType } from '../../../types/types';
2
+ export declare const TableHeader: import("styled-components").StyledComponent<"th", any, {}, never>;
3
+ export declare const TableCell: import("styled-components").StyledComponent<"td", any, {
4
+ columns: number;
5
+ }, never>;
6
+ export declare const LineContainer: import("styled-components").StyledComponent<"div", any, {
7
+ lineColor: ThemeType;
8
+ }, never>;
9
+ export declare const Pagination: import("styled-components").StyledComponent<"div", any, {}, never>;
10
+ export declare const PageNumber: import("styled-components").StyledComponent<"button", any, {
11
+ active?: string | undefined;
12
+ }, never>;
13
+ export declare const Next: import("styled-components").StyledComponent<"span", any, {}, never>;
14
+ export declare const ScrollButtons: import("styled-components").StyledComponent<"div", any, {}, never>;
15
+ export declare const TableContainer: import("styled-components").StyledComponent<"table", any, {}, never>;
16
+ export declare const Container: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -0,0 +1,2 @@
1
+ import Table from './Table';
2
+ export default Table;
@@ -19,6 +19,7 @@ import SearchBar from './SearchBar';
19
19
  import SectionTitle from './SectionTitle';
20
20
  import Select from './Select';
21
21
  import Select2 from './Select2';
22
+ import Select2Async from './Select2Async';
22
23
  import Tabs from './Tabs';
23
24
  import TextOnly from './TextOnly';
24
25
  import UpsellCard from './UpsellCard';
@@ -26,6 +27,7 @@ import ImageWithCaption from './ImageWithCaption';
26
27
  import Quote from './Quote';
27
28
  import MiniCard from './MiniCard';
28
29
  import ReadMore from './ReadMore';
29
- import AuxiliaryNav from './AuxiliaryNav';
30
30
  import PasswordStrength from './PasswordStrength';
31
- export { Accordion, Accordions, AnnouncementBanner, AuxiliaryNav, Card, Cards, ContactCard, ContentSummary, CreditListing, Editorial, ImageWithCaption, Information, MiniCard, PageHeadingCinema, PageHeadingCompact, PageHeadingCore, PageHeadingImpact, PageHeadingPanel, PageHeadingStream, PasswordStrength, Pagination, PeopleListing, PromoWithTags, PromoWithTitle, RadioGroup, RadioGroup2, ReadMore, Quote, StatusBanner, SectionTitle, SearchBar, Select, Select2, Tabs, TextOnly, UpsellCard, };
31
+ import AuxiliaryNav from './AuxiliaryNav';
32
+ import Table from './Table';
33
+ export { Accordion, Accordions, AnnouncementBanner, AuxiliaryNav, Card, Cards, ContactCard, ContentSummary, CreditListing, Editorial, ImageWithCaption, Information, MiniCard, PageHeadingCinema, PageHeadingCompact, PageHeadingCore, PageHeadingImpact, PageHeadingPanel, PageHeadingStream, PasswordStrength, Pagination, PeopleListing, PromoWithTags, PromoWithTitle, RadioGroup, RadioGroup2, ReadMore, Quote, StatusBanner, SectionTitle, SearchBar, Select, Select2, Select2Async, Tabs, Table, TextOnly, UpsellCard, };
package/dist/index.d.ts CHANGED
@@ -1,7 +1,9 @@
1
- import { Accordion, Accordions, AnnouncementBanner, AltHeader, AnchorTabBar, AuxiliaryNav, BodyText, Card, Cards, CinemaBadge, ContactCard, ContentSummary, ControlledDropdown, CreditListing, Editorial, Footer, GlobalStyles, Grid, GridItem, Header, Icon, ImageAspectRatioWrapper, ImageWithCaption, Information, LiveChat, 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, Select2, Sponsorship, StickyBar, Stepper, StreamBadge, Subtitle, TertiaryButton, TextOnly, ThemeProvider, TitleWithCTA, Tab, TabLink, Tabs, TextArea, TextField, TextLink, Tickbox, Tickbox2, Timer, TypeTags, UpsellCard, UpsellSection, Quote } from './components';
1
+ import { Accordion, Accordions, AnnouncementBanner, AltHeader, AnchorTabBar, AuxiliaryNav, BodyText, Card, Cards, CinemaBadge, ContactCard, ContentSummary, ControlledDropdown, CreditListing, Editorial, Footer, GlobalStyles, Grid, GridItem, Header, Icon, ImageAspectRatioWrapper, ImageWithCaption, Information, LiveChat, 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, Select2, Select2Async, Sponsorship, Stepper, StickyBar, StreamBadge, Subtitle, TertiaryButton, TextOnly, ThemeProvider, TitleWithCTA, Tab, Table, TabLink, Tabs, TextArea, TextField, TextLink, Tickbox, Tickbox2, Timer, TypeTags, UpsellCard, UpsellSection, Quote } 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, ThemeType, EditorialLink } from './types';
5
5
  import { MiniCard } from './components/molecules';
6
+ import { BrandingStyle } from './types/impactHeader';
6
7
  import { ModalWindow } from './components/organisms';
7
- export { Accordion, Accordions, AnnouncementBanner, AltHeader, AnchorTabBar, AuxiliaryNav, AspectRatio, BodyText, 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, Select2, Sponsorship, StickyBar, Stepper, 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, Select2, Select2Async, Sponsorship, Stepper, StickyBar, StreamBadge, Subtitle, Tab, Table, 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 {
@@ -33,6 +33,10 @@ export interface ICardProps {
33
33
  * Text placed in the Card component
34
34
  */
35
35
  text?: string;
36
+ /**
37
+ * Highlighted small text
38
+ */
39
+ highlightText?: string;
36
40
  /**
37
41
  * List of Type Tags to display.
38
42
  */
@@ -89,6 +93,10 @@ export interface ICardProps {
89
93
  * Defines if it is Card in the Grid or in the Carousel
90
94
  */
91
95
  isGridCard?: boolean;
96
+ /**
97
+ * Renders an auxiliary button when passed
98
+ */
99
+ auxiliaryCTA?: EditorialLink;
92
100
  }
93
101
  export interface ICardContentContainerProps extends StyledProps<any> {
94
102
  /**
@@ -1,6 +1,7 @@
1
1
  import { InputHTMLAttributes } from 'react';
2
2
  import { IGridItemProps } from './types';
3
- import { Props as SelectProps } from 'react-select';
3
+ import Select from 'react-select';
4
+ import SelectAsync from 'react-select/async';
4
5
  export interface ITextAreaProps extends Partial<IGridItemProps>, InputHTMLAttributes<HTMLTextAreaElement> {
5
6
  /**
6
7
  * A text label to be shown above the text area input box.
@@ -54,7 +55,7 @@ export interface ITextFieldProps extends InputHTMLAttributes<HTMLInputElement> {
54
55
  * `password` type adds `Show/Hide` button over the input element.
55
56
  * Any other types don't change the view of the element, just change
56
57
  * accessibility stuff
57
- */
58
+ */
58
59
  type?: ITextFieldType;
59
60
  /**
60
61
  * A style prop that allows us to change what colours to
@@ -219,7 +220,7 @@ export interface ISelectProps<T = unknown> {
219
220
  */
220
221
  resetWhenOptionsUpdate?: boolean;
221
222
  }
222
- export interface ISelect2Props extends SelectProps {
223
+ interface ISelect2MainProps {
223
224
  /**
224
225
  * A text label to be shown above the text input field.
225
226
  */
@@ -245,6 +246,8 @@ export interface ISelect2Props extends SelectProps {
245
246
  */
246
247
  darkMode?: boolean;
247
248
  }
249
+ export declare type ISelect2Props = ISelect2MainProps & React.ComponentProps<typeof Select>;
250
+ export declare type ISelect2AsyncProps = ISelect2MainProps & React.ComponentProps<typeof SelectAsync>;
248
251
  export interface IStepperProps {
249
252
  /** The initial value to display in the center of the element */
250
253
  initialValue?: number;
@@ -262,17 +265,8 @@ export interface IStepperProps {
262
265
  step?: number;
263
266
  /** An error message to be shown below the stepper.
264
267
  *
265
- * Default: `undefined`
266
268
  */
267
269
  error?: string;
268
- /**
269
- * A style prop that allows us to change what colours to
270
- * use for light or dark mode (e.g. text color, border color, etc...)
271
- * based on the background color.
272
- *
273
- * Defaults to `false`.
274
- */
275
- darkMode?: boolean;
276
270
  /**
277
271
  * Set disapled state
278
272
  */
@@ -281,6 +275,18 @@ export interface IStepperProps {
281
275
  * Minimum value allowed in the stepper
282
276
  */
283
277
  min?: number;
278
+ /**
279
+ * A style prop that allows us to change what colours to
280
+ * use for light or dark mode (e.g. text color, border color, etc...)
281
+ * based on the background color.
282
+ *
283
+ * Defaults to `false`.
284
+ * Specify whether or not the containing element has a dark background.
285
+ * This property affects the border colours for focused and error states.
286
+ *
287
+ * Default: `false`
288
+ */
289
+ darkMode?: boolean;
284
290
  /**
285
291
  * Maximum value allowed in the stepper
286
292
  */
@@ -319,3 +325,4 @@ export interface IRadioGroupProps extends Partial<IGridItemProps> {
319
325
  */
320
326
  onChange?: (checkedRadio: IRadioProps | undefined) => void;
321
327
  }
328
+ export {};
@@ -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, };
@@ -19,10 +19,10 @@ export interface IPasswordStrengthProps {
19
19
  */
20
20
  sectionsColor?: Colors;
21
21
  /**
22
- * Color of active sections
23
- *
24
- * Default: Colors.Black
25
- */
22
+ * Color of active sections
23
+ *
24
+ * Default: Colors.Black
25
+ */
26
26
  activeSectionsColor?: Colors;
27
27
  /**
28
28
  * Text
@@ -40,12 +40,12 @@ export interface IPasswordStrengthProps {
40
40
  * Strength label text
41
41
  *
42
42
  * Default: ""
43
- */
43
+ */
44
44
  strengthLabel?: string;
45
45
  /**
46
46
  * Strength label text
47
47
  *
48
48
  * Default: Colors.Black
49
- */
49
+ */
50
50
  strengthLabelColor?: Colors;
51
51
  }
@@ -0,0 +1,42 @@
1
+ import { ReactNode } from 'react';
2
+ import { ThemeType } from './types';
3
+ export interface ContentProps {
4
+ content: string | ReactNode;
5
+ }
6
+ export interface CellProps {
7
+ cell: ReactNode;
8
+ cellIndex: number;
9
+ columns: number;
10
+ }
11
+ export interface RowProps {
12
+ row: any[];
13
+ rowIndex: number;
14
+ columns: number;
15
+ lineColor: ThemeType;
16
+ }
17
+ export interface ITableProps {
18
+ /**
19
+ * Number of columns in table
20
+ */
21
+ columns: number;
22
+ /**
23
+ * Headings array
24
+ */
25
+ headings?: string[];
26
+ /**
27
+ * Table content
28
+ */
29
+ children: ReactNode;
30
+ /**
31
+ * Line divider color
32
+ */
33
+ lineColors?: ThemeType;
34
+ /**
35
+ * Rows in table per page for pagination
36
+ */
37
+ rowsPerPage: number;
38
+ /**
39
+ * Pagination
40
+ */
41
+ pagination?: boolean;
42
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@royaloperahouse/chord",
3
- "version": "2.2.9",
3
+ "version": "2.2.10-b-chord-development",
4
4
  "author": "Royal Opera House",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",