@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.
- package/dist/components/Typography/Typography.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Arrows/ArrowPagination.svg.d.ts +4 -0
- package/dist/components/atoms/Icons/SvgIcons/Arrows/LastPageArrow.svg.d.ts +4 -0
- package/dist/components/atoms/Icons/SvgIcons/index.d.ts +2 -0
- package/dist/components/molecules/ContentSummary/ContentSummary.d.ts +1 -1
- package/dist/components/molecules/ContentSummary/ContentSummary.style.d.ts +1 -2
- package/dist/components/molecules/Pagination/Pagination.d.ts +2 -1
- package/dist/components/molecules/Pagination/Pagination.style.d.ts +6 -5
- package/dist/components/molecules/SearchBar/SearchBar.d.ts +1 -1
- package/dist/components/organisms/Carousels/HighlightsCarousel/helper.d.ts +1 -1
- package/dist/harmonic.cjs.development.js +159 -105
- 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 +159 -105
- package/dist/harmonic.esm.js.map +1 -1
- package/dist/helpers/accessibility.d.ts +1 -1
- package/dist/types/editorial.d.ts +7 -3
- package/dist/types/navigation.d.ts +5 -0
- package/package.json +1 -1
|
@@ -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
|
|
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
|
|
266
|
+
* The semantic header level for the component
|
|
267
267
|
*/
|
|
268
|
-
|
|
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
|
*/
|