@royaloperahouse/harmonic 1.0.7-b → 1.0.8-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 +12 -0
- package/dist/components/molecules/CustomStrategyTabsFilter/CustomStrategyTabsFilter.d.ts +4 -2
- package/dist/harmonic.cjs.development.js +16 -3
- 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 +16 -3
- package/dist/harmonic.esm.js.map +1 -1
- package/dist/types/types.d.ts +6 -3
- package/package.json +1 -1
package/dist/types/types.d.ts
CHANGED
|
@@ -427,7 +427,7 @@ export interface ISponsorLogoProps extends ExternalLink {
|
|
|
427
427
|
*/
|
|
428
428
|
className?: string;
|
|
429
429
|
}
|
|
430
|
-
export declare type IHotFilterItem = Pick<AnchorHTMLAttributes<HTMLAnchorElement>, 'aria-label' | 'role'
|
|
430
|
+
export declare type IHotFilterItem = Partial<Pick<AnchorHTMLAttributes<HTMLAnchorElement>, 'aria-label' | 'role'>> & {
|
|
431
431
|
text: string;
|
|
432
432
|
onClick?: () => void;
|
|
433
433
|
};
|
|
@@ -462,6 +462,10 @@ export declare type TCustomStrategyTabsFilterItem = Omit<IHotFilterItem, 'onClic
|
|
|
462
462
|
* Props for the {@link CustomStrategyTabsFilter} component.
|
|
463
463
|
*/
|
|
464
464
|
export declare type TCustomStrategyTabsFilterProps = Omit<IHotFilterProps, 'items' | 'selectedIndex' | 'onSelect'> & {
|
|
465
|
+
/**
|
|
466
|
+
* Accessible name for the group of filter buttons.
|
|
467
|
+
*/
|
|
468
|
+
ariaLabel: string;
|
|
465
469
|
/**
|
|
466
470
|
* Collection of tabs to display.
|
|
467
471
|
*/
|
|
@@ -470,9 +474,8 @@ export declare type TCustomStrategyTabsFilterProps = Omit<IHotFilterProps, 'item
|
|
|
470
474
|
* Callback invoked when a tab is clicked.
|
|
471
475
|
*
|
|
472
476
|
* @param item The selected tab item.
|
|
473
|
-
* @returns Any value required by the consuming implementation.
|
|
474
477
|
*/
|
|
475
|
-
onClick:
|
|
478
|
+
onClick: (item: TCustomStrategyTabsFilterItem) => void;
|
|
476
479
|
customViewConfig?: Partial<{
|
|
477
480
|
selectIcon: IconNameType;
|
|
478
481
|
backgroundColor: {
|