@royaloperahouse/chord 2.2.5 → 2.2.7-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 (36) hide show
  1. package/CHANGELOG.md +216 -7
  2. package/README.md +250 -40
  3. package/dist/chord.cjs.development.js +183 -107
  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 +183 -107
  8. package/dist/chord.esm.js.map +1 -1
  9. package/dist/components/atoms/Icons/SvgIcons/Descriptors/Seat.svg.d.ts +4 -0
  10. package/dist/components/atoms/Icons/SvgIcons/Descriptors/Standing.svg.d.ts +4 -0
  11. package/dist/components/atoms/Icons/SvgIcons/Descriptors/Wheelchair.svg.d.ts +4 -0
  12. package/dist/components/atoms/Icons/SvgIcons/index.d.ts +3 -0
  13. package/dist/components/atoms/Radio/Radio.d.ts +3 -0
  14. package/dist/components/atoms/Radio2/Radio2.d.ts +23 -0
  15. package/dist/components/atoms/Radio2/Radio2.style.d.ts +7 -0
  16. package/dist/components/atoms/Radio2/index.d.ts +2 -0
  17. package/dist/components/atoms/Tickbox/Tickbox.d.ts +3 -0
  18. package/dist/components/atoms/Tickbox2/Tickbox2.d.ts +23 -0
  19. package/dist/components/atoms/Tickbox2/Tickbox2.style.d.ts +7 -0
  20. package/dist/components/atoms/Tickbox2/index.d.ts +2 -0
  21. package/dist/components/atoms/index.d.ts +3 -1
  22. package/dist/components/index.d.ts +3 -3
  23. package/dist/components/molecules/Card/Card.style.d.ts +1 -0
  24. package/dist/components/molecules/PageHeading/index.d.ts +1 -1
  25. package/dist/components/molecules/PeopleListing/CreditListing/CreditListing.style.d.ts +1 -0
  26. package/dist/components/molecules/RadioGroup/RadioGroup.d.ts +3 -0
  27. package/dist/components/molecules/RadioGroup2/RadioGroup2.d.ts +38 -0
  28. package/dist/components/molecules/RadioGroup2/RadioGroup2.style.d.ts +4 -0
  29. package/dist/components/molecules/RadioGroup2/index.d.ts +2 -0
  30. package/dist/components/molecules/index.d.ts +3 -2
  31. package/dist/index.d.ts +3 -2
  32. package/dist/types/card.d.ts +4 -0
  33. package/dist/types/formTypes.d.ts +125 -10
  34. package/dist/types/passwordStrength.d.ts +6 -6
  35. package/package.json +1 -1
  36. package/README.GIT +0 -277
@@ -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;
@@ -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;
@@ -53,10 +53,12 @@ export declare const IconLibrary: {
53
53
  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>)>;
54
54
  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
55
  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
+ 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>)>;
56
57
  Secure: ({ 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>)>;
57
58
  Settings: ({ 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>)>;
58
59
  Shift: ({ 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>)>;
59
60
  Space: ({ 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>)>;
61
+ Standing: ({ 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>)>;
60
62
  Star: ({ 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>)>;
61
63
  Subscribe: ({ 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>)>;
62
64
  Subtitles: ({ 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>)>;
@@ -69,6 +71,7 @@ export declare const IconLibrary: {
69
71
  UserSignedIn: ({ 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>)>;
70
72
  Volume: ({ 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>)>;
71
73
  Watch: ({ 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>)>;
74
+ Wheelchair: ({ 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>)>;
72
75
  X: ({ 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>)>;
73
76
  Youtube: ({ 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>)>;
74
77
  };
@@ -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,6 +12,7 @@ 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;
@@ -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,8 @@
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, RadioGroup, 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, 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
+ 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, RadioGroup, 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, TickboxMode, Timer, TypeTags, UpsellCard, UpsellSection, Quote, zIndexes, };
@@ -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
  */
@@ -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
  */
@@ -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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@royaloperahouse/chord",
3
- "version": "2.2.5",
3
+ "version": "2.2.7-a-chord-development",
4
4
  "author": "Royal Opera House",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",