@royaloperahouse/chord 2.7.0-b-development → 2.7.0-c-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.
@@ -1,6 +1,6 @@
1
- import { ISignUpFormTheme } from '../../../types/signUpForm';
1
+ import { Colors } from '../../../types';
2
2
  export declare const Wrapper: import("styled-components").StyledComponent<"div", any, {
3
- theme: ISignUpFormTheme;
3
+ theme: Colors;
4
4
  }, never>;
5
5
  export declare const SignUpFormWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
6
6
  export declare const SignUpTitleWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -0,0 +1,2 @@
1
+ import { Colors, ThemeType } from '../types';
2
+ export declare const themeToColor: (theme: ThemeType) => Colors.Core | Colors.Stream | Colors.Cinema;
@@ -1,3 +1,4 @@
1
+ import { ThemeType } from './types';
1
2
  export interface ISignUpFormContextProps {
2
3
  /**
3
4
  * Form title to display
@@ -18,11 +19,6 @@ export interface ISignUpFormCTAProps {
18
19
  */
19
20
  link: string;
20
21
  }
21
- export declare enum ISignUpFormTheme {
22
- Cinema = "Cinema",
23
- Core = "Core",
24
- Stream = "Stream"
25
- }
26
22
  export declare type SignUpRequestBody = {
27
23
  firstName?: string;
28
24
  lastName?: string;
@@ -44,7 +40,7 @@ export interface ISignUpFormProps {
44
40
  /**
45
41
  * Theme to use for buttons. Choices are "Core" (red), "Stream" (blue), or "Cinema" (black)
46
42
  */
47
- theme: ISignUpFormTheme;
43
+ theme: Exclude<ThemeType, ThemeType.Schools>;
48
44
  /**
49
45
  * Error message shown to users in case of a server error
50
46
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@royaloperahouse/chord",
3
- "version": "2.7.0-b-development",
3
+ "version": "2.7.0-c-development",
4
4
  "author": "Royal Opera House",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",