@royaloperahouse/chord 2.8.0-a-development → 2.8.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.
- package/dist/chord.cjs.development.js +64 -30
- package/dist/chord.cjs.development.js.map +1 -1
- package/dist/chord.cjs.production.min.js +1 -1
- package/dist/chord.cjs.production.min.js.map +1 -1
- package/dist/chord.esm.js +64 -30
- package/dist/chord.esm.js.map +1 -1
- package/dist/components/atoms/Dropdown/Dropdown.d.ts +1 -1
- package/dist/components/molecules/SignUpForm/SignUpForm.style.d.ts +2 -0
- package/dist/types/signUpForm.d.ts +22 -0
- package/dist/types/types.d.ts +4 -0
- package/package.json +2 -2
|
@@ -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;
|
|
@@ -16,3 +16,5 @@ export declare const DropdownAreaWrapper: import("styled-components").StyledComp
|
|
|
16
16
|
export declare const DropdownWrapper: import("styled-components").StyledComponent<"div", any, {
|
|
17
17
|
isOpen?: boolean | undefined;
|
|
18
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 {};
|
package/dist/types/types.d.ts
CHANGED
|
@@ -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.0-c-development",
|
|
4
4
|
"author": "Royal Opera House",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"storybook": "start-storybook -s ./external -p 6006",
|
|
24
24
|
"build-storybook-dev": "build-storybook",
|
|
25
25
|
"build-storybook": "rm -rf ./storybook-static; build-storybook -s ./src -o ./storybook-static; cp -r ./external/ ./storybook-static/",
|
|
26
|
-
"deploy-storybook-dev": "chromatic --build-script-name build-storybook-dev",
|
|
26
|
+
"deploy-storybook-dev": "CHROMATIC_PROJECT_TOKEN=2b8c0fada9f2 chromatic --build-script-name build-storybook-dev",
|
|
27
27
|
"deploy-storybook": "storybook-to-aws-s3 --bucket-path=chord.roh.org.uk --aws-profile=parent --existing-output-dir=storybook-static --s3-sync-options=--acl=public-read",
|
|
28
28
|
"test-storybook": "tsdx test --json --passWithNoTests --outputFile=./test/jest-test-results.json",
|
|
29
29
|
"publish-release": "make prepare-release-candidate; make publish-release",
|