@royaloperahouse/chord 0.7.24 → 0.7.27

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,4 +1,4 @@
1
1
  import { FunctionComponent } from 'react';
2
- import { IContactCardProps } from '../../../types/types';
2
+ import { IContactCardProps } from '../../../types/contactCard';
3
3
  declare const ContactCard: FunctionComponent<IContactCardProps>;
4
4
  export default ContactCard;
@@ -1,5 +1,6 @@
1
+ import { IContactCardWrapperProps } from '../../../types/contactCard';
1
2
  export declare const ContentWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
2
- export declare const Wrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
3
+ export declare const Wrapper: import("styled-components").StyledComponent<"div", any, IContactCardWrapperProps, never>;
3
4
  export declare const AddressWrapperDesktop: import("styled-components").StyledComponent<"div", any, {}, never>;
4
5
  export declare const AddressWrapperMobile: import("styled-components").StyledComponent<"div", any, {}, never>;
5
6
  export declare const DetailsWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -1,3 +1,6 @@
1
1
  export declare const PeopleListingGrid: import("styled-components").StyledComponent<"div", any, {}, never>;
2
+ export declare const PersonWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
3
+ export declare const HeadshotWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
2
4
  export declare const RoleWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
5
+ export declare const TextWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
3
6
  export declare const PersonLink: import("styled-components").StyledComponent<"a", any, {}, never>;
@@ -0,0 +1,45 @@
1
+ import { StyledProps } from 'styled-components';
2
+ export interface IContactCardProps {
3
+ /**
4
+ * Name
5
+ */
6
+ name: string;
7
+ /**
8
+ * Description
9
+ */
10
+ description?: string;
11
+ /**
12
+ * Email
13
+ */
14
+ email?: string;
15
+ /**
16
+ * Phone number
17
+ */
18
+ phone?: string;
19
+ /**
20
+ * Website
21
+ */
22
+ website?: string;
23
+ /**
24
+ * Address string
25
+ */
26
+ address?: string;
27
+ /**
28
+ * Set visibility of the top border
29
+ */
30
+ hideTopBorder?: boolean;
31
+ /**
32
+ * Set visibility of the top border
33
+ */
34
+ hideBottomBorder?: boolean;
35
+ }
36
+ export interface IContactCardWrapperProps extends StyledProps<any> {
37
+ /**
38
+ * Set visibility of the top border
39
+ */
40
+ hideTopBorder: boolean;
41
+ /**
42
+ * Set visibility of the bottom border
43
+ */
44
+ hideBottomBorder: boolean;
45
+ }
@@ -249,7 +249,15 @@ export declare type ListingPerson = {
249
249
  /**
250
250
  * String separator
251
251
  */
252
+ headshot?: string;
253
+ /**
254
+ * Headshot image url
255
+ */
252
256
  separator?: string;
257
+ /**
258
+ * Use headshot or not
259
+ */
260
+ useHeadshot: boolean;
253
261
  };
254
262
  export declare type ListingRole = {
255
263
  /**
@@ -447,29 +455,3 @@ export interface IAnnouncementBannerProps {
447
455
  */
448
456
  icon: 'Info' | 'Clock' | 'Location' | 'Reminder' | 'Star';
449
457
  }
450
- export interface IContactCardProps {
451
- /**
452
- * Name
453
- */
454
- name: string;
455
- /**
456
- * Description
457
- */
458
- description?: string;
459
- /**
460
- * Email
461
- */
462
- email?: string;
463
- /**
464
- * Phone number
465
- */
466
- phone?: string;
467
- /**
468
- * Website
469
- */
470
- website?: string;
471
- /**
472
- * Address string
473
- */
474
- address?: string;
475
- }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@royaloperahouse/chord",
3
- "version": "0.7.24",
3
+ "version": "0.7.27",
4
4
  "author": "Royal Opera House",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
@@ -22,6 +22,7 @@
22
22
  "analyze": "size-limit --why",
23
23
  "storybook": "start-storybook -s ./external -p 6006",
24
24
  "build-storybook": "rm -rf ./storybook-static; build-storybook -s ./src -o ./storybook-static; cp -r ./external/ ./storybook-static/",
25
+ "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",
25
26
  "test-storybook": "tsdx test --json --passWithNoTests --outputFile=./test/jest-test-results.json",
26
27
  "publish-release": "make prepare-release-candidate; make publish-release",
27
28
  "publish-snapshot": "make prepare-release-candidate; make publish-npm-snapshot"
@@ -79,6 +80,7 @@
79
80
  "@storybook/addon-links": "^6.3.12",
80
81
  "@storybook/addons": "^6.3.12",
81
82
  "@storybook/react": "^6.3.12",
83
+ "@storybook/storybook-deployer": "^2.8.11",
82
84
  "@testing-library/jest-dom": "^5.15.0",
83
85
  "@testing-library/react": "^12.1.2",
84
86
  "@testing-library/user-event": "^13.5.0",