@royaloperahouse/harmonic 0.4.1 → 0.5.1
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/atoms/SponsorLogo/SponsorLogo.d.ts +1 -1
- package/dist/components/atoms/Sponsorship/Sponsorship.d.ts +2 -2
- package/dist/components/atoms/Sponsorship/Sponsorship.style.d.ts +4 -2
- package/dist/components/atoms/Sponsorship/constants.d.ts +3 -0
- package/dist/components/index.d.ts +2 -2
- package/dist/components/organisms/Carousels/HighlightsCarousel/HighlightsCarousel.d.ts +0 -1
- package/dist/components/organisms/Carousels/HighlightsCarousel/constants.d.ts +1 -0
- package/dist/components/organisms/Carousels/HighlightsCarousel/helper.d.ts +1 -1
- package/dist/components/organisms/Footer/Footer.style.d.ts +1 -0
- package/dist/harmonic.cjs.development.js +844 -1056
- 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 +844 -1056
- package/dist/harmonic.esm.js.map +1 -1
- package/dist/helpers/devices.d.ts +1 -0
- package/dist/types/footer.d.ts +2 -17
- package/dist/types/links.d.ts +17 -0
- package/dist/types/types.d.ts +12 -15
- package/package.json +1 -1
package/dist/types/footer.d.ts
CHANGED
|
@@ -1,20 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare type CommonLink = {
|
|
3
|
-
href: string;
|
|
4
|
-
title: string;
|
|
5
|
-
dataRoh: string;
|
|
6
|
-
};
|
|
7
|
-
export declare type PolicyLink = CommonLink & {
|
|
8
|
-
name: string;
|
|
9
|
-
};
|
|
10
|
-
export declare type SocialMediaLink = {
|
|
11
|
-
dataRoh: string;
|
|
12
|
-
name: IconNameType;
|
|
13
|
-
href: string;
|
|
14
|
-
};
|
|
15
|
-
export declare type ExternalLink = CommonLink & {
|
|
16
|
-
target?: string;
|
|
17
|
-
};
|
|
1
|
+
import { CommonLink, ExternalLink, PolicyLink, SocialMediaLink } from './links';
|
|
18
2
|
export declare type Newsletter = {
|
|
19
3
|
text: string;
|
|
20
4
|
link: CommonLink;
|
|
@@ -26,6 +10,7 @@ export declare type FooterData = {
|
|
|
26
10
|
contact: CommonLink;
|
|
27
11
|
artsLogo: ExternalLink;
|
|
28
12
|
additionalInfo: string;
|
|
13
|
+
sponsorImageSource?: string;
|
|
29
14
|
};
|
|
30
15
|
export interface IFooterProps {
|
|
31
16
|
data: FooterData;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { IconNameType } from './iconTypes';
|
|
2
|
+
export declare type CommonLink = {
|
|
3
|
+
href: string;
|
|
4
|
+
title: string;
|
|
5
|
+
dataRoh: string;
|
|
6
|
+
};
|
|
7
|
+
export declare type PolicyLink = CommonLink & {
|
|
8
|
+
name: string;
|
|
9
|
+
};
|
|
10
|
+
export declare type SocialMediaLink = {
|
|
11
|
+
dataRoh: string;
|
|
12
|
+
name: IconNameType;
|
|
13
|
+
href: string;
|
|
14
|
+
};
|
|
15
|
+
export declare type ExternalLink = CommonLink & {
|
|
16
|
+
target?: string;
|
|
17
|
+
};
|
package/dist/types/types.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { ReactNode, AnchorHTMLAttributes, MouseEventHandler, ReactElement } from
|
|
|
2
2
|
import { StyledProps } from 'styled-components';
|
|
3
3
|
import { IconNameType, DirectionType } from './iconTypes';
|
|
4
4
|
import { TypographyLevel, TypographyType } from './typography';
|
|
5
|
+
import type { ExternalLink } from './links';
|
|
5
6
|
export declare enum Colors {
|
|
6
7
|
White = "white",
|
|
7
8
|
Black = "black",
|
|
@@ -375,29 +376,29 @@ export interface IGridItemProps extends StyledProps<any> {
|
|
|
375
376
|
*/
|
|
376
377
|
columnSpanSmallDevice?: number;
|
|
377
378
|
}
|
|
378
|
-
export interface ISponsorLogoProps {
|
|
379
|
+
export interface ISponsorLogoProps extends ExternalLink {
|
|
379
380
|
/**
|
|
380
|
-
*
|
|
381
|
+
* S3 Image source
|
|
381
382
|
*/
|
|
382
|
-
|
|
383
|
-
/**
|
|
384
|
-
* Color for the background of the logo
|
|
385
|
-
*/
|
|
386
|
-
colorBackground?: string;
|
|
383
|
+
imageSource?: string;
|
|
387
384
|
/**
|
|
388
385
|
* Alternative text for the logo (used for accessibility)
|
|
389
386
|
*/
|
|
390
387
|
alt?: string;
|
|
388
|
+
/**
|
|
389
|
+
* Content to be displayed within the component.
|
|
390
|
+
*/
|
|
391
|
+
children?: ReactNode;
|
|
392
|
+
/**
|
|
393
|
+
* Additional CSS class names to apply to the navigation component.
|
|
394
|
+
*/
|
|
395
|
+
className?: string;
|
|
391
396
|
}
|
|
392
397
|
export interface ISponsorshipProps {
|
|
393
398
|
/**
|
|
394
399
|
* Source URL for Sponsorship IFRAME.
|
|
395
400
|
*/
|
|
396
401
|
src?: string;
|
|
397
|
-
/**
|
|
398
|
-
* Alt Text for image.
|
|
399
|
-
*/
|
|
400
|
-
altText?: string;
|
|
401
402
|
/**
|
|
402
403
|
* Used for Analytics.
|
|
403
404
|
*/
|
|
@@ -406,10 +407,6 @@ export interface ISponsorshipProps {
|
|
|
406
407
|
* Used for Accessibility.
|
|
407
408
|
*/
|
|
408
409
|
title?: string;
|
|
409
|
-
/**
|
|
410
|
-
* Used to determine that there is custom data for Sponsorship
|
|
411
|
-
*/
|
|
412
|
-
isCustomImage?: boolean;
|
|
413
410
|
}
|
|
414
411
|
export interface ITextLinkProps extends AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
415
412
|
children: ReactNode;
|