@royaloperahouse/chord 2.7.0-c-development → 2.7.0-e-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,5 +1,6 @@
1
1
  import { ICreditListing } from '../../../../types';
2
- declare const CreditListing: ({ roles, columnCount }: ICreditListing & {
3
- columnCount?: number | undefined;
4
- }) => JSX.Element;
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;
@@ -11,3 +11,4 @@ export declare const ServerError: import("styled-components").StyledComponent<"d
11
11
  export declare const CTALinkWrapper: import("styled-components").StyledComponent<"a", any, {}, never>;
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
+ export declare const MessageWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -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) => any;
6
+ export declare const getConcatenatedPropLength: (array: any[], prop: string) => number;
@@ -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;
@@ -10,4 +10,7 @@ export interface ICreditListing {
10
10
  dataROH: string;
11
11
  }[];
12
12
  columnCount?: number;
13
+ expandLargeEntries?: boolean;
14
+ largeColumnSpan?: number;
15
+ characterThreshold?: number;
13
16
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@royaloperahouse/chord",
3
- "version": "2.7.0-c-development",
3
+ "version": "2.7.0-e-development",
4
4
  "author": "Royal Opera House",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",