@royaloperahouse/harmonic 0.11.0-m → 0.11.0-o

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.
@@ -1,4 +1,4 @@
1
- import React, { AnchorHTMLAttributes, MouseEvent, MouseEventHandler, ReactNode } from 'react';
1
+ import React, { AnchorHTMLAttributes, MouseEventHandler, ReactNode } from 'react';
2
2
  import { DirectionType, IconNameType } from './iconTypes';
3
3
  import { Colors, IOptionItem, ThemeColor } from './types';
4
4
  export interface IAccountProps {
@@ -278,7 +278,7 @@ export interface IAnchorBarProps {
278
278
  /** Tabs displayed in the anchor bar */
279
279
  tabs: AnchorBarTab[];
280
280
  /** Function to be called when a tab is clicked */
281
- onTabClick?: (e: MouseEvent, id: string) => void;
281
+ onTabClick?: (e: React.MouseEvent<HTMLAnchorElement>, id: string) => void;
282
282
  /** Set the id of the active tab */
283
283
  activeTab?: string;
284
284
  /** Only for IOS devices that do not fully support sticky position, in case a keyboard is opened on the device */
@@ -349,24 +349,16 @@ export interface ITabLinkProps extends AnchorHTMLAttributes<HTMLAnchorElement> {
349
349
  }
350
350
  export interface IStickyBarProps {
351
351
  children: ReactNode;
352
- /**
353
- * Set columnstart in Desktop
354
- */
352
+ /** Set columnStart in Desktop */
355
353
  columnStartDesktop?: number;
356
- /**
357
- * Set columnSpan in Desktop
358
- */
354
+ /** Set columnSpan in Desktop */
359
355
  columnSpanDesktop?: number;
360
- /**
361
- * Set columnstart in Device
362
- */
356
+ /** Set columnStart in Device */
363
357
  columnStartDevice?: number;
364
- /**
365
- * Set columnSpam in Device
366
- */
358
+ /** Set columnSpan in Device */
367
359
  columnSpanDevice?: number;
368
- /**
369
- * Hide bottom border line
370
- */
371
- hideBottomBorder?: boolean;
360
+ /** Boolean to set bottom border */
361
+ bottomBorder?: boolean;
362
+ /** Custom CSS classes */
363
+ className?: string;
372
364
  }
@@ -25,8 +25,8 @@ export interface IGenericTypographyProps<T extends HTMLElement = HTMLParagraphEl
25
25
  export interface IHarmonicHeaderProps extends IGenericTypographyProps {
26
26
  hierarchy: HeaderHierarchy;
27
27
  }
28
- export interface IBodyCopyHarmonicProps extends IGenericTypographyProps {
29
- /** HTML tag to use to render BodyCopy, by default p. */
28
+ export interface ITaggedTypographyProps extends IGenericTypographyProps {
29
+ /** Specifies the HTML tag for rendering typography. The default is 'p'. */
30
30
  tag?: React.ElementType;
31
31
  }
32
32
  export declare type TypographyLevel = 1 | 2 | 3 | 4 | 5 | 6;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@royaloperahouse/harmonic",
3
- "version": "0.11.0-m",
3
+ "version": "0.11.0-o",
4
4
  "author": "Royal Opera House",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",