@royaloperahouse/chord 2.8.0 → 2.8.1

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,3 +1,3 @@
1
1
  import { IDropdownProps } from '../../../types/types';
2
- declare const Dropdown: ({ title, titleLink, selected, options, onChange, iconName, isMobileBehaviour, withOptionsInMobile, withIcon, colorPrimary, }: IDropdownProps) => JSX.Element;
2
+ declare const Dropdown: ({ title, titleLink, selected, options, onChange, iconName, isMobileBehaviour, withOptionsInMobile, withIcon, colorPrimary, className, }: IDropdownProps) => JSX.Element;
3
3
  export default Dropdown;
@@ -1,4 +1,4 @@
1
1
  import { FunctionComponent } from 'react';
2
2
  import { ISignUpFormProps } from '../../../types/signUpForm';
3
- declare const SignUpForm: FunctionComponent<ISignUpFormProps>;
4
- export default SignUpForm;
3
+ declare const SignUpFormComponent: FunctionComponent<ISignUpFormProps>;
4
+ export default SignUpFormComponent;
@@ -12,3 +12,9 @@ export declare const CTALinkWrapper: import("styled-components").StyledComponent
12
12
  export declare const ButtonWrapper: import("styled-components").StyledComponent<"button", any, {}, never>;
13
13
  export declare const FieldsWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
14
14
  export declare const MessageWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
15
+ export declare const DropdownAreaWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
16
+ export declare const DropdownWrapper: import("styled-components").StyledComponent<"div", any, {
17
+ isOpen?: boolean | undefined;
18
+ }, never>;
19
+ export declare const HiddenInstructions: import("styled-components").StyledComponent<"div", any, {}, never>;
20
+ export declare const SignUpHeader: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -1,3 +1,4 @@
1
+ import { Dispatch, SetStateAction } from 'react';
1
2
  import { ThemeType } from './types';
2
3
  export interface ISignUpFormContextProps {
3
4
  /**
@@ -56,3 +57,24 @@ export interface ISignUpFormProps {
56
57
  success: boolean;
57
58
  }>;
58
59
  }
60
+ export declare type SignUpFormComponentTitleProps = {
61
+ title: string;
62
+ isMobile?: boolean;
63
+ };
64
+ export declare type SignUpFormComponentMessageProps = {
65
+ message: string;
66
+ withDropdown?: boolean;
67
+ };
68
+ declare type FormValues = {
69
+ firstName: string;
70
+ lastName: string;
71
+ email: string;
72
+ };
73
+ export declare type SignUpFormComponentFormProps = Pick<ISignUpFormProps, 'ctaPrivacy' | 'theme' | 'errorMessage' | 'isLoggedIn' | 'submitHandler'> & {
74
+ isMobile: boolean;
75
+ isSuccess: boolean;
76
+ setIsSuccess: Dispatch<SetStateAction<boolean>>;
77
+ formValues: FormValues;
78
+ setFormValues: Dispatch<SetStateAction<FormValues>>;
79
+ };
80
+ export {};
@@ -180,6 +180,10 @@ export interface IDropdownProps {
180
180
  * The primary color
181
181
  */
182
182
  colorPrimary?: string;
183
+ /**
184
+ * Additional CSS class names
185
+ */
186
+ className?: string;
183
187
  }
184
188
  export interface IDropdowItemProps extends StyledProps<AnchorHTMLAttributes<HTMLAnchorElement>> {
185
189
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@royaloperahouse/chord",
3
- "version": "2.8.0",
3
+ "version": "2.8.1",
4
4
  "author": "Royal Opera House",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",