@royaloperahouse/chord 2.7.0-b-development → 2.7.0-d-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/CHANGELOG.md +3 -0
- package/README.md +21 -20
- package/dist/chord.cjs.development.js +170 -45
- 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 +170 -45
- package/dist/chord.esm.js.map +1 -1
- package/dist/components/molecules/PeopleListing/CreditListing/CreditListing.d.ts +4 -3
- package/dist/components/molecules/SignUpForm/SignUpForm.style.d.ts +2 -2
- package/dist/helpers/arrays.d.ts +1 -1
- package/dist/helpers/forms.d.ts +5 -0
- package/dist/helpers/theme.d.ts +2 -0
- package/dist/types/creditListing.d.ts +3 -0
- package/dist/types/signUpForm.d.ts +2 -6
- package/package.json +1 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ICreditListing } from '../../../../types';
|
|
2
|
-
declare const
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
export declare const DEFAULT_COLUMN_COUNT = 4;
|
|
3
|
+
export declare const DEFAULT_LARGE_COLUMN_SPAN = 2;
|
|
4
|
+
export declare const DEFAULT_CHARACTER_THRESHOLD = 180;
|
|
5
|
+
declare const CreditListing: ({ roles, columnCount, expandLargeEntries, largeColumnSpan, characterThreshold, }: ICreditListing) => JSX.Element;
|
|
5
6
|
export default CreditListing;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Colors } from '../../../types';
|
|
2
2
|
export declare const Wrapper: import("styled-components").StyledComponent<"div", any, {
|
|
3
|
-
theme:
|
|
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>;
|
package/dist/helpers/arrays.d.ts
CHANGED
|
@@ -3,4 +3,4 @@ export declare const truncateArrayByPropLength: (array: {
|
|
|
3
3
|
}[], prop: string, maxChars: number, elipsis?: boolean) => {
|
|
4
4
|
[key: string]: string;
|
|
5
5
|
}[];
|
|
6
|
-
export declare const getConcatenatedPropLength: (array: any[], prop: string) =>
|
|
6
|
+
export declare const getConcatenatedPropLength: (array: any[], prop: string) => number;
|
package/dist/helpers/forms.d.ts
CHANGED
|
@@ -7,9 +7,14 @@ export declare const formValidationMessages: {
|
|
|
7
7
|
requiredFieldMessage: string;
|
|
8
8
|
firstName: {
|
|
9
9
|
invalid: string;
|
|
10
|
+
required: string;
|
|
11
|
+
};
|
|
12
|
+
lastName: {
|
|
13
|
+
required: string;
|
|
10
14
|
};
|
|
11
15
|
email: {
|
|
12
16
|
required: string;
|
|
13
17
|
invalid: string;
|
|
14
18
|
};
|
|
15
19
|
};
|
|
20
|
+
export declare const getFormErrorMessage: (field: string, value?: string | undefined) => string | undefined;
|
|
@@ -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:
|
|
43
|
+
theme: Exclude<ThemeType, ThemeType.Schools>;
|
|
48
44
|
/**
|
|
49
45
|
* Error message shown to users in case of a server error
|
|
50
46
|
*/
|