@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.
@@ -2,6 +2,7 @@ export declare const useIOS: () => boolean;
2
2
  export declare const isMobile: () => boolean;
3
3
  export declare const useMobile: () => boolean;
4
4
  export declare const useViewport: () => {
5
+ hydrated: boolean;
5
6
  width: number;
6
7
  isMobile: boolean;
7
8
  isTablet: boolean;
@@ -1,20 +1,4 @@
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
- };
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
+ };
@@ -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
- * Color for the logo
381
+ * S3 Image source
381
382
  */
382
- colorLogo?: string;
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@royaloperahouse/harmonic",
3
- "version": "0.4.1",
3
+ "version": "0.5.1",
4
4
  "author": "Royal Opera House",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",