@royaloperahouse/harmonic 0.7.1 → 0.8.0

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 +1 @@
1
- export declare function useFocusTrap(containerRef: React.RefObject<HTMLElement>, onEscape?: () => void): void;
1
+ export declare function useFocusTrap(containerRef: React.RefObject<HTMLElement>, onEscape?: () => void, enabled?: boolean): void;
@@ -3,7 +3,7 @@ import { StyledProps } from 'styled-components';
3
3
  import { ButtonType } from './buttonTypes';
4
4
  import { DirectionType, IconNameType } from './iconTypes';
5
5
  import { IVideoWithControlsSettings, ThemeColor, ThemeType } from './types';
6
- import { HarmonicSize, HeaderHierarchy, TypographyLevel } from './typography';
6
+ import { HarmonicSize, HeaderHierarchy } from './typography';
7
7
  export interface IEditorialProps {
8
8
  /**
9
9
  * Text placed in the editorial component
@@ -263,9 +263,13 @@ export interface IContentSummaryProps {
263
263
  */
264
264
  fullyClickable?: boolean;
265
265
  /**
266
- * The base semantic header level for the component: 1 | 2 | 3 | 4 | 5 | 6
266
+ * The semantic header level for the component
267
267
  */
268
- baseSemanticLevel?: TypographyLevel;
268
+ headerSemanticLevel?: HeaderHierarchy;
269
+ /**
270
+ * The component's class name
271
+ */
272
+ className?: string;
269
273
  }
270
274
  export interface IPanelHeadingProps {
271
275
  /**
@@ -213,6 +213,11 @@ export interface ISearchBarProps {
213
213
  * Function to be called when is closed
214
214
  */
215
215
  onClose?: (e?: React.MouseEvent) => void;
216
+ /**
217
+ * If true, traps keyboard focus inside the search bar.
218
+ * Set to false when used inline on a page.
219
+ */
220
+ trapFocus?: boolean;
216
221
  /**
217
222
  * Reference to the input element for focusing
218
223
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@royaloperahouse/harmonic",
3
- "version": "0.7.1",
3
+ "version": "0.8.0",
4
4
  "author": "Royal Opera House",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",