@royaloperahouse/chord 0.6.0 → 0.7.0

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 { IPeopleListing } from '../../../types/types';
2
- declare const PeopleListing: ({ people }: IPeopleListing) => JSX.Element;
2
+ declare const PeopleListing: ({ roles }: IPeopleListing) => JSX.Element;
3
3
  export default PeopleListing;
@@ -1,2 +1,4 @@
1
- declare const PeopleListingGrid: import("styled-components").StyledComponent<"div", any, {}, never>;
2
- export default PeopleListingGrid;
1
+ export declare const PeopleListingGrid: import("styled-components").StyledComponent<"div", any, {}, never>;
2
+ export declare const RoleWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
3
+ export declare const PersonLink: import("styled-components").StyledComponent<"a", any, {}, never>;
4
+ export declare const PersonText: import("styled-components").StyledComponent<"span", any, {}, never>;
@@ -237,14 +237,35 @@ export interface IControlledDropdownHeaderProps extends StyledProps<any> {
237
237
  */
238
238
  active: boolean;
239
239
  }
240
- export interface IIndividualListing {
241
- role: string;
240
+ export declare type ListingPerson = {
241
+ /**
242
+ * Person name
243
+ */
242
244
  name: string;
245
+ /**
246
+ * Link to person profile
247
+ */
243
248
  link?: string;
249
+ };
250
+ export declare type ListingRole = {
251
+ /**
252
+ * Role name
253
+ */
254
+ name: string;
255
+ /**
256
+ * List of people in the role
257
+ */
258
+ people: ListingPerson[];
259
+ /**
260
+ * Data roh param
261
+ */
244
262
  dataROH?: string;
245
- }
263
+ };
246
264
  export interface IPeopleListing {
247
- people: IIndividualListing[];
265
+ /**
266
+ * List of roles to be displayed
267
+ */
268
+ roles: ListingRole[];
248
269
  }
249
270
  export interface INodeProps {
250
271
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@royaloperahouse/chord",
3
- "version": "0.6.0",
3
+ "version": "0.7.0",
4
4
  "author": "Royal Opera House",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
@@ -1,3 +0,0 @@
1
- import { IIndividualListing } from '../../../types/types';
2
- declare const IndividualListing: ({ role, name, link, dataROH }: IIndividualListing) => JSX.Element;
3
- export default IndividualListing;
@@ -1,2 +0,0 @@
1
- export declare const RoleWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
2
- export declare const NameWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -1,2 +0,0 @@
1
- import IndividualListing from './IndividualListing';
2
- export default IndividualListing;