@royaloperahouse/chord 1.7.0-d-chord-development → 1.7.1-a-chord-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 CHANGED
@@ -1,10 +1,13 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## [1.7.1]
4
+ - Add imageAltText to Card component
5
+
3
6
  ## [1.7.0-b] DEVELOPMENT
4
7
  - SearchBar: Disable input and fix overflow
5
8
 
6
- ## [1.6.4]
7
- - Add imageAltText to Card component
9
+ ## [1.7.0]
10
+ - Add Content Summary Section and individual Content Summaries
8
11
 
9
12
  ## [1.6.3]
10
13
  - Add exports for zIndexes
@@ -0,0 +1,3 @@
1
+ import { IContentSummaryProps } from '../../../types/editorial';
2
+ declare const ContentSummary: ({ headline, date, bodyText, link }: IContentSummaryProps) => JSX.Element;
3
+ export default ContentSummary;
@@ -0,0 +1 @@
1
+ export declare const ContentSummaryWrapper: import("styled-components").StyledComponent<"article", any, {}, never>;
@@ -0,0 +1,2 @@
1
+ import ContentSummary from './ContentSummary';
2
+ export default ContentSummary;
@@ -0,0 +1,3 @@
1
+ import { IContentSummarySectionProps } from '../../../types/editorial';
2
+ declare const ContentSummarySection: ({ contentSummarySectionTitle, contentSummarySectionItems, }: IContentSummarySectionProps) => JSX.Element;
3
+ export default ContentSummarySection;
@@ -0,0 +1,3 @@
1
+ export declare const ContentSummarySectionGrid: import("styled-components").StyledComponent<"div", any, {}, never>;
2
+ export declare const ContentSummarySectionGridItem: import("styled-components").StyledComponent<"div", any, import("../../../types/types").IGridItemProps, never>;
3
+ export declare const ContentSummarySectionWrapper: import("styled-components").StyledComponent<"section", any, {}, never>;
@@ -0,0 +1,2 @@
1
+ import ContentSummarySection from './ContentSummarySection';
2
+ export default ContentSummarySection;
@@ -233,3 +233,34 @@ export interface IHighlightsHeaderProps {
233
233
  */
234
234
  images?: Array<ImgHTMLAttributes<HTMLImageElement>>;
235
235
  }
236
+ declare type IContentItemLink = Omit<EditorialLink, 'buttonType' | 'bgColor' | 'iconName' | 'iconDirection'>;
237
+ export interface IContentItem {
238
+ /**
239
+ * Title for content summary
240
+ */
241
+ headline?: string;
242
+ /**
243
+ * Date field sits between headline and bodyText
244
+ */
245
+ date?: string;
246
+ /**
247
+ * Main text area for content summary item
248
+ */
249
+ bodyText?: string;
250
+ /**
251
+ * link object with text for cta, can also have <a> tag attributes href, target etc...
252
+ */
253
+ link?: IContentItemLink;
254
+ }
255
+ export declare type IContentSummaryProps = IContentItem;
256
+ export interface IContentSummarySectionProps {
257
+ /**
258
+ * Title for the content summary section
259
+ */
260
+ contentSummarySectionTitle?: string;
261
+ /**
262
+ * Array of content summary items that sit beneath the title
263
+ */
264
+ contentSummarySectionItems?: Array<IContentItem>;
265
+ }
266
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@royaloperahouse/chord",
3
- "version": "1.7.0-d-chord-development",
3
+ "version": "1.7.1-a-chord-development",
4
4
  "author": "Royal Opera House",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",