@royaloperahouse/chord 0.7.25 → 0.7.28
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 +14 -0
- package/README.GIT +23 -0
- package/dist/chord.cjs.development.js +48 -21
- 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 +48 -21
- package/dist/chord.esm.js.map +1 -1
- package/dist/components/molecules/ContactCard/ContactCard.d.ts +1 -1
- package/dist/components/molecules/ContactCard/ContactCard.style.d.ts +2 -1
- package/dist/types/contactCard.d.ts +45 -0
- package/dist/types/types.d.ts +2 -28
- package/package.json +3 -1
|
@@ -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,
|
|
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>;
|
|
@@ -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
|
+
}
|
package/dist/types/types.d.ts
CHANGED
|
@@ -255,8 +255,8 @@ export declare type ListingPerson = {
|
|
|
255
255
|
*/
|
|
256
256
|
separator?: string;
|
|
257
257
|
/**
|
|
258
|
-
|
|
259
|
-
|
|
258
|
+
* Use headshot or not
|
|
259
|
+
*/
|
|
260
260
|
useHeadshot: boolean;
|
|
261
261
|
};
|
|
262
262
|
export declare type ListingRole = {
|
|
@@ -455,29 +455,3 @@ export interface IAnnouncementBannerProps {
|
|
|
455
455
|
*/
|
|
456
456
|
icon: 'Info' | 'Clock' | 'Location' | 'Reminder' | 'Star';
|
|
457
457
|
}
|
|
458
|
-
export interface IContactCardProps {
|
|
459
|
-
/**
|
|
460
|
-
* Name
|
|
461
|
-
*/
|
|
462
|
-
name: string;
|
|
463
|
-
/**
|
|
464
|
-
* Description
|
|
465
|
-
*/
|
|
466
|
-
description?: string;
|
|
467
|
-
/**
|
|
468
|
-
* Email
|
|
469
|
-
*/
|
|
470
|
-
email?: string;
|
|
471
|
-
/**
|
|
472
|
-
* Phone number
|
|
473
|
-
*/
|
|
474
|
-
phone?: string;
|
|
475
|
-
/**
|
|
476
|
-
* Website
|
|
477
|
-
*/
|
|
478
|
-
website?: string;
|
|
479
|
-
/**
|
|
480
|
-
* Address string
|
|
481
|
-
*/
|
|
482
|
-
address?: string;
|
|
483
|
-
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@royaloperahouse/chord",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.28",
|
|
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",
|