@royaloperahouse/chord 2.2.7 → 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.
Files changed (40) hide show
  1. package/CHANGELOG.md +213 -7
  2. package/README.md +250 -40
  3. package/dist/chord.cjs.development.js +855 -449
  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 +852 -450
  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/atoms/Radio/Radio.d.ts +3 -0
  15. package/dist/components/atoms/Radio2/Radio2.d.ts +23 -0
  16. package/dist/components/atoms/Radio2/Radio2.style.d.ts +7 -0
  17. package/dist/components/atoms/Radio2/index.d.ts +2 -0
  18. package/dist/components/atoms/Tickbox/Tickbox.d.ts +3 -0
  19. package/dist/components/atoms/Tickbox2/Tickbox2.d.ts +23 -0
  20. package/dist/components/atoms/Tickbox2/Tickbox2.style.d.ts +7 -0
  21. package/dist/components/atoms/Tickbox2/index.d.ts +2 -0
  22. package/dist/components/atoms/index.d.ts +3 -1
  23. package/dist/components/index.d.ts +3 -3
  24. package/dist/components/molecules/Card/Card.style.d.ts +2 -0
  25. package/dist/components/molecules/PageHeading/index.d.ts +1 -1
  26. package/dist/components/molecules/PeopleListing/CreditListing/CreditListing.style.d.ts +1 -0
  27. package/dist/components/molecules/RadioGroup/RadioGroup.d.ts +3 -0
  28. package/dist/components/molecules/RadioGroup2/RadioGroup2.d.ts +38 -0
  29. package/dist/components/molecules/RadioGroup2/RadioGroup2.style.d.ts +4 -0
  30. package/dist/components/molecules/RadioGroup2/index.d.ts +2 -0
  31. package/dist/components/molecules/index.d.ts +3 -2
  32. package/dist/index.d.ts +4 -2
  33. package/dist/styles/themes.d.ts +20 -12
  34. package/dist/types/buttonTypes.d.ts +14 -0
  35. package/dist/types/card.d.ts +9 -1
  36. package/dist/types/formTypes.d.ts +125 -10
  37. package/dist/types/index.d.ts +2 -2
  38. package/dist/types/passwordStrength.d.ts +6 -6
  39. package/package.json +2 -2
  40. 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,3 +1,6 @@
1
1
  import { IRadioProps } from '../../../types/formTypes';
2
+ /**
3
+ * DEPRECATED. Use Radio2 instead
4
+ */
2
5
  declare const Radio: ({ checked, error, label, onChange }: IRadioProps) => JSX.Element;
3
6
  export default Radio;
@@ -0,0 +1,23 @@
1
+ import React from 'react';
2
+ import { IRadio2Props } from '../../../types/formTypes';
3
+ /**
4
+ * A Radio component, that wraps around the native `<input type="radio"/>` element
5
+ * and adds some extra styling, states and information around it (i.e. an error label,
6
+ * error state).
7
+ *
8
+ * # Error state
9
+ * An error label will be shown below the radio if the `error` prop exists.
10
+ * Also radio 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
+ * # Black box mode
18
+ * If `blackBox` prop is true checked state will be styled as black box with white tick icon.
19
+ * This style was used before as a default. Not preferred in new components.
20
+ * This will be ignored if `darkMode` is true.
21
+ */
22
+ declare const Radio2: React.ForwardRefExoticComponent<IRadio2Props & React.RefAttributes<HTMLInputElement>>;
23
+ export default Radio2;
@@ -0,0 +1,7 @@
1
+ import { IRadio2Props } from '../../../types/formTypes';
2
+ export declare const Container: import("styled-components").StyledComponent<"div", any, {}, never>;
3
+ export declare const Radio: import("styled-components").StyledComponent<"div", any, Pick<IRadio2Props, "error" | "darkMode" | "disabled" | "blackBox">, never>;
4
+ export declare const TickboxLabel: import("styled-components").StyledComponent<"label", any, Pick<IRadio2Props, "darkMode" | "blackBox">, never>;
5
+ export declare const RadioIcon: import("styled-components").StyledComponent<"div", any, {}, never>;
6
+ export declare const TextLabel: import("styled-components").StyledComponent<"div", any, Pick<IRadio2Props, "darkMode" | "disabled">, never>;
7
+ export declare const ErrorLabel: import("styled-components").StyledComponent<"div", any, Pick<IRadio2Props, "darkMode">, never>;
@@ -0,0 +1,2 @@
1
+ import Radio2 from './Radio2';
2
+ export default Radio2;
@@ -1,4 +1,7 @@
1
1
  import { FunctionComponent } from 'react';
2
2
  import { ITickboxProps } from '../../../types/tickbox';
3
+ /**
4
+ * DEPRECATED. Use Tickbox2 instead
5
+ */
3
6
  declare const Tickbox: FunctionComponent<ITickboxProps>;
4
7
  export default Tickbox;
@@ -0,0 +1,23 @@
1
+ import React from 'react';
2
+ import { ITickbox2Props } from '../../../types/formTypes';
3
+ /**
4
+ * A Tickbox component, that wraps around the native `<input type="checkbox"/>` element
5
+ * and adds some extra styling, states and information around it (i.e. an error label,
6
+ * error state).
7
+ *
8
+ * # Error state
9
+ * An error label will be shown below the tickbox if the `error` prop exists.
10
+ * Also tickbox 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
+ * # Black box mode
18
+ * If `blackBox` prop is true checked state will be styled as black box with white tick icon.
19
+ * This style was used before as a default. Not preferred in new components.
20
+ * This will be ignored if `darkMode` is true.
21
+ */
22
+ declare const Tickbox2: React.ForwardRefExoticComponent<ITickbox2Props & React.RefAttributes<HTMLInputElement>>;
23
+ export default Tickbox2;
@@ -0,0 +1,7 @@
1
+ import { ITickbox2Props } from '../../../types/formTypes';
2
+ export declare const Container: import("styled-components").StyledComponent<"div", any, {}, never>;
3
+ export declare const Tickbox: import("styled-components").StyledComponent<"div", any, Pick<ITickbox2Props, "error" | "darkMode" | "disabled" | "blackBox">, never>;
4
+ export declare const TickboxLabel: import("styled-components").StyledComponent<"label", any, Pick<ITickbox2Props, "darkMode" | "blackBox">, never>;
5
+ export declare const TickboxIcon: import("styled-components").StyledComponent<"div", any, {}, never>;
6
+ export declare const TextLabel: import("styled-components").StyledComponent<"div", any, Pick<ITickbox2Props, "darkMode" | "disabled">, never>;
7
+ export declare const ErrorLabel: import("styled-components").StyledComponent<"div", any, Pick<ITickbox2Props, "darkMode">, never>;
@@ -0,0 +1,2 @@
1
+ import Tickbox2 from './Tickbox2';
2
+ export default Tickbox2;
@@ -6,6 +6,7 @@ import { Icon } from './Icons';
6
6
  import ImageAspectRatioWrapper from './ImageAspectRatioWrapper';
7
7
  import Progress from './Progress';
8
8
  import Radio from './Radio';
9
+ import Radio2 from './Radio2';
9
10
  import RotatorButtons from './RotatorButtons';
10
11
  import SecondaryLogo from './SecondaryLogo';
11
12
  import SectionSplitter from './SectionSplitter';
@@ -18,9 +19,10 @@ import TextField from './TextField';
18
19
  import TextLink from './TextLink';
19
20
  import TextLogo from './TextLogo';
20
21
  import Tickbox from './Tickbox';
22
+ import Tickbox2 from './Tickbox2';
21
23
  import Timer from './Timer';
22
24
  import TypeTags from './TypeTags';
23
25
  import { AltHeader, BodyText, Header, Overline, Subtitle } from './Typography';
24
26
  import VideoControls from './VideoControls';
25
27
  import { Stepper } from './Stepper';
26
- export { AltHeader, BodyText, CinemaBadge, ControlledDropdown, Grid, GridItem, Header, Icon, ImageAspectRatioWrapper, Overline, Progress, PrimaryButton, Radio, RotatorButtons, SecondaryButton, SecondaryLogo, SectionSplitter, SponsorLogo, Sponsorship, Stepper, StreamBadge, Subtitle, Tab, TabLink, TertiaryButton, TextArea, TextField, TextLink, TextLogo, Tickbox, Timer, TypeTags, VideoControls, };
28
+ export { AltHeader, BodyText, CinemaBadge, ControlledDropdown, Grid, GridItem, Header, Icon, ImageAspectRatioWrapper, Overline, Progress, PrimaryButton, Radio, Radio2, RotatorButtons, SecondaryButton, SecondaryLogo, SectionSplitter, SponsorLogo, Sponsorship, Stepper, StreamBadge, Subtitle, Tab, TabLink, TertiaryButton, TextArea, TextField, TextLink, TextLogo, Tickbox, Tickbox2, Timer, TypeTags, VideoControls, };
@@ -1,6 +1,6 @@
1
- import { AltHeader, BodyText, CinemaBadge, ControlledDropdown, Grid, GridItem, Header, Icon, ImageAspectRatioWrapper, Overline, PrimaryButton, Progress, Radio, RotatorButtons, SecondaryButton, SecondaryLogo, TertiaryButton, SectionSplitter, Sponsorship, Stepper, StreamBadge, Subtitle, Tab, TabLink, TextLogo, TextArea, TextField, TextLink, Tickbox, Timer, TypeTags, VideoControls } from './atoms';
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, ReadMore, StatusBanner, SearchBar, SectionTitle, Select, 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, 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, RadioGroup, ReadMore, RotatorButtons, SecondaryButton, SecondaryLogo, StatusBanner, SearchBar, SectionTitle, Select, Sponsorship, Stepper, StickyBar, StreamBadge, Subtitle, TertiaryButton, TextOnly, ThemeProvider, TitleWithCTA, SectionSplitter, Tab, TabLink, Tabs, TextArea, TextField, TextLink, TextLogo, Tickbox, 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, 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, };
@@ -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,3 +1,6 @@
1
1
  import { IRadioGroupProps } from '../../../types/formTypes';
2
+ /**
3
+ * DEPRECATED. Use RadioGroup2 instead
4
+ */
2
5
  declare const RadioGroup: ({ radios, columnStartDesktop, columnStartDevice, columnSpanDesktop, columnSpanDevice, columnStartSmallDevice, columnSpanSmallDevice, onChange, }: IRadioGroupProps) => JSX.Element;
3
6
  export default RadioGroup;
@@ -0,0 +1,38 @@
1
+ import { FunctionComponent } from 'react';
2
+ import { IRadioGroup2Props } from '../../../types/formTypes';
3
+ /**
4
+ * A RadioGroup component, that renders set of Radio2 components inside.
5
+ * `name` prop should be specified and will be passed as a `name` to each
6
+ * radio to combine them in one group.
7
+ *
8
+ * # Radios
9
+ * `radios` prop is an array of radios that should be renderet. This is an
10
+ * array of objects `{content: ReactNode, value: string | number}`.
11
+ *
12
+ * # Default value
13
+ * `defaultValue` prop can be specified to make one of radios checked inittially.
14
+ * This should be equal to `value` of one of `radios`.
15
+ *
16
+ * # Error state
17
+ * An error label will be shown below the radios if the `error` prop exists.
18
+ * Also radios will be rendered with a red border. An empty string can be passed to
19
+ * render only error state without error message.
20
+ *
21
+ * # Horizontal mode
22
+ * If `horizontalMode` prop is true radios will be placed in a row instead of column.
23
+ *
24
+ * # Distance between radios
25
+ * `gap` prop allow to control distance between radios in pixels. This works in default and
26
+ * horizontal modes.
27
+ *
28
+ * # Light / Dark mode
29
+ * The component can also adapt its styles for light / dark mode. If you want this component
30
+ * to be rendered on a dark / coloured background, you can use the `darkMode` prop.
31
+ *
32
+ * # Black box mode
33
+ * If `blackBox` prop is true checked state will be styled as black box with white tick icon.
34
+ * This style was used before as a default. Not preferred in new components.
35
+ * This will be ignored if `darkMode` is true.
36
+ */
37
+ declare const RadioGroup2: FunctionComponent<IRadioGroup2Props>;
38
+ export default RadioGroup2;
@@ -0,0 +1,4 @@
1
+ import { IRadioGroup2Props } from '../../../types/formTypes';
2
+ export declare const Container: import("styled-components").StyledComponent<"div", any, {}, never>;
3
+ export declare const RadioGroup: import("styled-components").StyledComponent<"div", any, Pick<IRadioGroup2Props, "horizontalMode" | "gap">, never>;
4
+ export declare const ErrorLabel: import("styled-components").StyledComponent<"div", any, Pick<IRadioGroup2Props, "darkMode">, never>;
@@ -0,0 +1,2 @@
1
+ import RadioGroup2 from './RadioGroup2';
2
+ export default RadioGroup2;
@@ -13,6 +13,7 @@ import { PeopleListing, CreditListing } from './PeopleListing';
13
13
  import PromoWithTags from './PromoWithTags';
14
14
  import PromoWithTitle from './PromoWithTitle';
15
15
  import RadioGroup from './RadioGroup';
16
+ import RadioGroup2 from './RadioGroup2';
16
17
  import StatusBanner from './StatusBanner';
17
18
  import SearchBar from './SearchBar';
18
19
  import SectionTitle from './SectionTitle';
@@ -24,6 +25,6 @@ import ImageWithCaption from './ImageWithCaption';
24
25
  import Quote from './Quote';
25
26
  import MiniCard from './MiniCard';
26
27
  import ReadMore from './ReadMore';
27
- import AuxiliaryNav from './AuxiliaryNav';
28
28
  import PasswordStrength from './PasswordStrength';
29
- 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, ReadMore, Quote, StatusBanner, SectionTitle, SearchBar, Select, Tabs, TextOnly, UpsellCard, };
29
+ import AuxiliaryNav from './AuxiliaryNav';
30
+ 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, Tabs, 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, RadioGroup, ReadMore, RotatorButtons, StatusBanner, SearchBar, SecondaryButton, SecondaryLogo, SectionSplitter, SectionTitle, Select, Sponsorship, StickyBar, Stepper, StreamBadge, Subtitle, TertiaryButton, TextOnly, ThemeProvider, TitleWithCTA, Tab, TabLink, Tabs, TextArea, TextField, TextLink, Tickbox, 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, Sponsorship, Stepper, StickyBar, StreamBadge, Subtitle, TertiaryButton, TextOnly, ThemeProvider, TitleWithCTA, Tab, 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, RadioGroup, ReadMore, RotatorButtons, StatusBanner, SearchBar, SecondaryButton, SecondaryLogo, SectionSplitter, SectionTitle, Select, Sponsorship, StickyBar, Stepper, StreamBadge, Subtitle, Tab, TabLink, Tabs, TertiaryButton, TextArea, TextField, TextLink, TextOnly, ThemeProvider, ThemeType, TitleWithCTA, Tickbox, 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 {
@@ -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
  /**
@@ -53,7 +53,7 @@ export interface ITextFieldProps extends InputHTMLAttributes<HTMLInputElement> {
53
53
  * `password` type adds `Show/Hide` button over the input element.
54
54
  * Any other types don't change the view of the element, just change
55
55
  * accessibility stuff
56
- */
56
+ */
57
57
  type?: ITextFieldType;
58
58
  /**
59
59
  * A style prop that allows us to change what colours to
@@ -70,6 +70,118 @@ export interface ITextFieldProps extends InputHTMLAttributes<HTMLInputElement> {
70
70
  */
71
71
  width?: number;
72
72
  }
73
+ export interface ITickbox2Props extends InputHTMLAttributes<HTMLInputElement> {
74
+ /**
75
+ * The content of tickbox
76
+ */
77
+ children: React.ReactNode;
78
+ /**
79
+ * An error label to be shown below the tickbox.
80
+ * Tickbox will be rendered with a red border if this prop exist.
81
+ * Empty string can be passed to render only error state without
82
+ * error message.
83
+ */
84
+ error?: string;
85
+ /**
86
+ * A style prop that allows us to change what colours to
87
+ * use for light or dark mode (e.g. text color, border color, etc...)
88
+ * based on the background color.
89
+ *
90
+ * Defaults to `false`.
91
+ */
92
+ darkMode?: boolean;
93
+ /**
94
+ * Use a black background and white checkmark for the tickbox.
95
+ * This style was used before as a default. Not preferred in new components.
96
+ *
97
+ * Defaults to `false`.
98
+ */
99
+ blackBox?: boolean;
100
+ }
101
+ export interface IRadio2Props extends InputHTMLAttributes<HTMLInputElement> {
102
+ /**
103
+ * The content of radio
104
+ */
105
+ children: React.ReactNode;
106
+ /**
107
+ * An error label to be shown below the radio.
108
+ * Radio will be rendered with a red border if this prop exist.
109
+ * Empty string can be passed to render only error state without
110
+ * error message.
111
+ */
112
+ error?: string;
113
+ /**
114
+ * A style prop that allows us to change what colours to
115
+ * use for light or dark mode (e.g. text color, border color, etc...)
116
+ * based on the background color.
117
+ *
118
+ * Defaults to `false`.
119
+ */
120
+ darkMode?: boolean;
121
+ /**
122
+ * Use a black background and white checkmark for the radio.
123
+ * This style was used before as a default. Not preferred in new components.
124
+ *
125
+ * Defaults to `false`.
126
+ */
127
+ blackBox?: boolean;
128
+ }
129
+ export interface IRadioGroup2Radio {
130
+ content: React.ReactNode;
131
+ value: string | number;
132
+ }
133
+ export interface IRadioGroup2Props {
134
+ /**
135
+ * Array of radios
136
+ */
137
+ radios: IRadioGroup2Radio[];
138
+ /**
139
+ * Name property for radios.
140
+ */
141
+ name: string;
142
+ /**
143
+ * Render radios horizontally.
144
+ *
145
+ * Defaults to `false`.
146
+ */
147
+ horizontalMode?: boolean;
148
+ /**
149
+ * Callback on change of radio.
150
+ */
151
+ onChange?: (value: string) => void;
152
+ /**
153
+ * Value of default checked radio.
154
+ */
155
+ defaultValue?: string | number;
156
+ /**
157
+ * Distance between radio elements in px.
158
+ *
159
+ * Defaults to `30`.
160
+ */
161
+ gap?: number;
162
+ /**
163
+ * An error label to be shown below the radiogroup.
164
+ * Radios will be rendered with a red border if this prop exist.
165
+ * Empty string can be passed to render only error state without
166
+ * error message.
167
+ */
168
+ error?: string;
169
+ /**
170
+ * A style prop that allows us to change what colours to
171
+ * use for light or dark mode (e.g. text color, border color, etc...)
172
+ * based on the background color.
173
+ *
174
+ * Defaults to `false`.
175
+ */
176
+ darkMode?: boolean;
177
+ /**
178
+ * Use a black background and white checkmark for the radio.
179
+ * This style was used before as a default. Not preferred in new components.
180
+ *
181
+ * Defaults to `false`.
182
+ */
183
+ blackBox?: boolean;
184
+ }
73
185
  export interface IOption<T> {
74
186
  text: string;
75
187
  readonly value: T;
@@ -123,17 +235,8 @@ export interface IStepperProps {
123
235
  step?: number;
124
236
  /** An error message to be shown below the stepper.
125
237
  *
126
- * Default: `undefined`
127
238
  */
128
239
  error?: string;
129
- /**
130
- * A style prop that allows us to change what colours to
131
- * use for light or dark mode (e.g. text color, border color, etc...)
132
- * based on the background color.
133
- *
134
- * Defaults to `false`.
135
- */
136
- darkMode?: boolean;
137
240
  /**
138
241
  * Set disapled state
139
242
  */
@@ -142,6 +245,18 @@ export interface IStepperProps {
142
245
  * Minimum value allowed in the stepper
143
246
  */
144
247
  min?: number;
248
+ /**
249
+ * A style prop that allows us to change what colours to
250
+ * use for light or dark mode (e.g. text color, border color, etc...)
251
+ * based on the background color.
252
+ *
253
+ * Defaults to `false`.
254
+ * Specify whether or not the containing element has a dark background.
255
+ * This property affects the border colours for focused and error states.
256
+ *
257
+ * Default: `false`
258
+ */
259
+ darkMode?: boolean;
145
260
  /**
146
261
  * Maximum value allowed in the stepper
147
262
  */
@@ -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, };