@royaloperahouse/harmonic 0.14.0-b → 0.15.0-a
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/CHANGELOG.md +7 -3
- package/README.md +18 -2
- package/dist/components/molecules/CastFilter/CastFilters.style.d.ts +4 -2
- package/dist/harmonic.cjs.development.js +10 -7
- 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 +10 -7
- package/dist/harmonic.esm.js.map +1 -1
- package/dist/types/anchorBar.d.ts +3 -0
- package/dist/types/types.d.ts +10 -5
- package/package.json +1 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { EditorialLink } from './editorial';
|
|
3
|
+
import { IGridItemProps } from './types';
|
|
3
4
|
export interface IAnchorBarProps {
|
|
4
5
|
/** CTA for anchor bar */
|
|
5
6
|
cta: EditorialLink;
|
|
@@ -13,4 +14,6 @@ export interface IAnchorBarProps {
|
|
|
13
14
|
className?: string;
|
|
14
15
|
/** Flag indicating whether the anchor bar should have a shadow */
|
|
15
16
|
withShadow?: boolean;
|
|
17
|
+
/** Optional grid item props to allow for different page alignments */
|
|
18
|
+
grid?: IGridItemProps;
|
|
16
19
|
}
|
package/dist/types/types.d.ts
CHANGED
|
@@ -445,15 +445,11 @@ export declare type ICastFilterItem = Pick<AnchorHTMLAttributes<HTMLAnchorElemen
|
|
|
445
445
|
onClick?: () => void;
|
|
446
446
|
};
|
|
447
447
|
export declare type ICastFiltersProps = {
|
|
448
|
+
className?: string;
|
|
448
449
|
/**
|
|
449
450
|
* Array of cast to filter by.
|
|
450
451
|
*/
|
|
451
452
|
cast: ICastFilterItem[];
|
|
452
|
-
/**
|
|
453
|
-
* A classname is required for the HarmonicThemeProvider to provide styles properly.
|
|
454
|
-
* If it is not provided here it will default to 'cast-filters'.
|
|
455
|
-
*/
|
|
456
|
-
className?: string;
|
|
457
453
|
/**
|
|
458
454
|
* Indices of currently selected cast in the `cast` array.
|
|
459
455
|
*/
|
|
@@ -471,11 +467,20 @@ export declare type ICastFiltersProps = {
|
|
|
471
467
|
* Override the text of the text link. Default is 'Clear'.
|
|
472
468
|
*/
|
|
473
469
|
textLinkText?: string;
|
|
470
|
+
/**
|
|
471
|
+
* Text to show if no selection is made.
|
|
472
|
+
*/
|
|
473
|
+
emptySelectionText?: string;
|
|
474
474
|
/**
|
|
475
475
|
* Default image to show in cases where a cast member image prop is missing.
|
|
476
476
|
* If this is undefined then a light grey background will be displayed instead.
|
|
477
477
|
*/
|
|
478
478
|
placeholderImage?: string;
|
|
479
|
+
/**
|
|
480
|
+
* Description to be used as aria-roledescription of the cast filter listbox.
|
|
481
|
+
* Read out by screen readers to describe the contents of the list.
|
|
482
|
+
*/
|
|
483
|
+
listRoleDescription?: string;
|
|
479
484
|
/**
|
|
480
485
|
* Handle selecting individual cast filters.
|
|
481
486
|
*/
|