@royaloperahouse/harmonic 0.12.0-b → 0.12.0-d
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/dist/components/Typography/Typography.d.ts +2 -2
- package/dist/components/atoms/TextField/TextField.style.d.ts +1 -1
- package/dist/components/molecules/Accordion/Accordion.style.d.ts +5 -3
- package/dist/components/molecules/BodyContent/BodyContent.style.d.ts +1 -1
- package/dist/components/molecules/Card/Card.style.d.ts +1 -1
- package/dist/components/molecules/ContentSummary/ContentSummary.style.d.ts +1 -1
- package/dist/components/molecules/Editorial/Editorial.style.d.ts +2 -2
- package/dist/components/molecules/Information/Information.style.d.ts +1 -1
- package/dist/components/molecules/Pagination/Pagination.style.d.ts +1 -1
- package/dist/components/molecules/PromoWithTags/PromoWithTags.style.d.ts +2 -2
- package/dist/components/molecules/PromoWithTitle/PromoWithTitle.style.d.ts +2 -2
- package/dist/harmonic.cjs.development.js +92 -109
- package/dist/harmonic.cjs.development.js.map +1 -1
- package/dist/harmonic.cjs.production.min.js +1 -1
- package/dist/harmonic.cjs.production.min.js.map +1 -1
- package/dist/harmonic.esm.js +92 -109
- package/dist/harmonic.esm.js.map +1 -1
- package/dist/types/editorial.d.ts +6 -20
- package/dist/types/types.d.ts +9 -32
- package/package.json +1 -1
|
@@ -5,22 +5,16 @@ import { DirectionType, IconNameType } from './iconTypes';
|
|
|
5
5
|
import { IVideoWithControlsSettings, ThemeColor, ThemeType } from './types';
|
|
6
6
|
import { HarmonicSize, HeaderHierarchy } from './typography';
|
|
7
7
|
export interface IEditorialProps {
|
|
8
|
-
/**
|
|
9
|
-
* Text placed in the editorial component
|
|
10
|
-
*/
|
|
8
|
+
/** Text placed in the editorial component */
|
|
11
9
|
text: string;
|
|
12
|
-
/**
|
|
13
|
-
* Subtitle placed in the editorial component
|
|
14
|
-
*/
|
|
10
|
+
/** Subtitle placed in the editorial component */
|
|
15
11
|
subtitle?: string;
|
|
16
|
-
/**
|
|
17
|
-
* Position of the image in the editorial component
|
|
18
|
-
*/
|
|
12
|
+
/** Position of the image in the editorial component */
|
|
19
13
|
imagePosition?: 'left' | 'right';
|
|
20
|
-
/**
|
|
21
|
-
* Image tag or component to be displayed in the editorial component with aspect ratio 1:1
|
|
22
|
-
*/
|
|
14
|
+
/** Image tag or component to be displayed in the editorial component with aspect ratio 1:1 */
|
|
23
15
|
children: ReactElement<HTMLImageElement>;
|
|
16
|
+
/** Custom CSS classes */
|
|
17
|
+
className?: string;
|
|
24
18
|
}
|
|
25
19
|
export interface IEditorialGridProps {
|
|
26
20
|
/**
|
|
@@ -156,14 +150,6 @@ export interface IThemePageHeadingProps {
|
|
|
156
150
|
* Header Hierarchy for the title. Default is h1.
|
|
157
151
|
*/
|
|
158
152
|
hierarchy: HeaderHierarchy;
|
|
159
|
-
/**
|
|
160
|
-
* Character limit for the text
|
|
161
|
-
*/
|
|
162
|
-
copyCharLimit?: number;
|
|
163
|
-
/**
|
|
164
|
-
* Character limit for the title
|
|
165
|
-
*/
|
|
166
|
-
titleCharLimit?: number;
|
|
167
153
|
/**
|
|
168
154
|
* Class name for theme styling
|
|
169
155
|
*/
|
package/dist/types/types.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { ReactNode, AnchorHTMLAttributes, MouseEventHandler, ReactElement } from 'react';
|
|
2
2
|
import { StyledProps } from 'styled-components';
|
|
3
3
|
import { IconNameType, DirectionType } from './iconTypes';
|
|
4
|
-
import { TypographyLevel, TypographyType } from './typography';
|
|
5
4
|
import type { ExternalLink } from './links';
|
|
6
5
|
export declare enum Colors {
|
|
7
6
|
White = "white",
|
|
@@ -573,44 +572,22 @@ export interface ILogosStyledProps extends StyledProps<any> {
|
|
|
573
572
|
fillColor?: Colors.White | Colors.Black;
|
|
574
573
|
}
|
|
575
574
|
export interface IAccordionProps {
|
|
576
|
-
/**
|
|
577
|
-
* Title to display.
|
|
578
|
-
*/
|
|
575
|
+
/** Title to display. */
|
|
579
576
|
title?: string;
|
|
580
|
-
/**
|
|
581
|
-
* The component to be wrapped into the accordion
|
|
582
|
-
*/
|
|
577
|
+
/** The component to be wrapped into the accordion */
|
|
583
578
|
children?: ReactNode;
|
|
584
|
-
/**
|
|
585
|
-
* Components wrapped into the accordion that are always visible
|
|
586
|
-
*/
|
|
587
|
-
visibleStandfirst?: ReactNode;
|
|
588
|
-
/**
|
|
589
|
-
* Set if accordions are stacked
|
|
590
|
-
*/
|
|
579
|
+
/** Set if accordions are stacked */
|
|
591
580
|
showLine?: boolean;
|
|
592
|
-
/**
|
|
593
|
-
* Set init open
|
|
594
|
-
*/
|
|
581
|
+
/** Set init open */
|
|
595
582
|
initOpen?: boolean;
|
|
596
|
-
/**
|
|
597
|
-
|
|
598
|
-
*/
|
|
599
|
-
contentType?: TypographyType;
|
|
600
|
-
/**
|
|
601
|
-
* Set display level - aesthetic
|
|
602
|
-
*/
|
|
603
|
-
displayLevel?: TypographyLevel;
|
|
604
|
-
/**
|
|
605
|
-
* Set semantic level - not to be used for aesthetic
|
|
606
|
-
*/
|
|
607
|
-
semanticLevel?: TypographyLevel;
|
|
583
|
+
/** Custom CSS classes */
|
|
584
|
+
className?: string;
|
|
608
585
|
}
|
|
609
586
|
export interface IAccordionsProps {
|
|
610
|
-
/**
|
|
611
|
-
* Array of Accordion component
|
|
612
|
-
*/
|
|
587
|
+
/** Array of Accordion component */
|
|
613
588
|
items: IAccordionProps[];
|
|
589
|
+
/** Custom CSS classes */
|
|
590
|
+
className?: string;
|
|
614
591
|
}
|
|
615
592
|
export declare const BannerVariants: {
|
|
616
593
|
readonly 'service-persistent': "service-persistent";
|