@royaloperahouse/harmonic 1.0.5-c → 1.0.5-d
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/molecules/CustomStrategyTabsFilter/CustomStrategyTabsFilter.d.ts +75 -17
- package/dist/components/organisms/Carousels/HighlightsCarousel/HighlightsCarousel.d.ts +1 -11
- package/dist/harmonic.cjs.development.js +99 -31
- 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 +99 -31
- package/dist/harmonic.esm.js.map +1 -1
- package/dist/types/carousel.d.ts +9 -1
- package/dist/types/types.d.ts +43 -2
- package/package.json +1 -1
package/dist/types/carousel.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { IImageWithCaptionProps } from './image';
|
|
|
4
4
|
import { IntegratedTimerProps } from './timer';
|
|
5
5
|
import { ILogosProps } from './types';
|
|
6
6
|
import { EditorialLink } from './editorial';
|
|
7
|
-
import { TypographyLevel } from './typography';
|
|
7
|
+
import { HarmonicSize, TypographyLevel } from './typography';
|
|
8
8
|
export declare enum CarouselType {
|
|
9
9
|
Image = "image",
|
|
10
10
|
SmallCard = "SmallCard",
|
|
@@ -190,6 +190,14 @@ export interface IHighlightsCarouselProps {
|
|
|
190
190
|
* Additional CSS class names to apply to the navigation component.
|
|
191
191
|
*/
|
|
192
192
|
className?: string;
|
|
193
|
+
/**
|
|
194
|
+
* Title size to be applied no title.
|
|
195
|
+
*/
|
|
196
|
+
titleSize?: HarmonicSize;
|
|
197
|
+
/**
|
|
198
|
+
* Additional CSS class names to apply to the title component.
|
|
199
|
+
*/
|
|
200
|
+
titleClassName?: string;
|
|
193
201
|
}
|
|
194
202
|
export declare type IHighlightsCoreCarouselProps = Omit<IHighlightsCarouselProps, 'logo'>;
|
|
195
203
|
export interface IHighlightsCinemaCarouselProps extends Omit<IHighlightsCarouselProps, 'logo'> {
|
package/dist/types/types.d.ts
CHANGED
|
@@ -437,14 +437,55 @@ export declare type IHotFilterProps = {
|
|
|
437
437
|
selectedIndex?: number;
|
|
438
438
|
onSelect?: (index: number) => void;
|
|
439
439
|
};
|
|
440
|
+
/**
|
|
441
|
+
* Represents a single tab item rendered by the
|
|
442
|
+
* {@link CustomStrategyTabsFilter} component.
|
|
443
|
+
*/
|
|
440
444
|
export declare type TCustomStrategyTabsFilterItem = Omit<IHotFilterItem, 'onClick'> & {
|
|
445
|
+
/**
|
|
446
|
+
* Indicates whether the tab is currently selected.
|
|
447
|
+
*/
|
|
441
448
|
isSelected: boolean;
|
|
449
|
+
/**
|
|
450
|
+
* Unique identifier for the tab.
|
|
451
|
+
*/
|
|
442
452
|
id: string;
|
|
443
|
-
|
|
453
|
+
/**
|
|
454
|
+
* Optional list of tab IDs that are allowed to be selected
|
|
455
|
+
* simultaneously with this tab.
|
|
456
|
+
*
|
|
457
|
+
* Useful for implementing multi-select filter behavior.
|
|
458
|
+
*/
|
|
459
|
+
allowedSelectedWith?: string[];
|
|
444
460
|
};
|
|
461
|
+
/**
|
|
462
|
+
* Props for the {@link CustomStrategyTabsFilter} component.
|
|
463
|
+
*/
|
|
445
464
|
export declare type TCustomStrategyTabsFilterProps = Omit<IHotFilterProps, 'items' | 'selectedIndex' | 'onSelect'> & {
|
|
465
|
+
/**
|
|
466
|
+
* Collection of tabs to display.
|
|
467
|
+
*/
|
|
446
468
|
items: TCustomStrategyTabsFilterItem[];
|
|
447
|
-
|
|
469
|
+
/**
|
|
470
|
+
* Callback invoked when a tab is clicked.
|
|
471
|
+
*
|
|
472
|
+
* @param item The selected tab item.
|
|
473
|
+
* @returns Any value required by the consuming implementation.
|
|
474
|
+
*/
|
|
475
|
+
onClick: <T>(item: TCustomStrategyTabsFilterItem) => T;
|
|
476
|
+
customViewConfig?: Partial<{
|
|
477
|
+
selectIcon: IconNameType;
|
|
478
|
+
backgroundColor: {
|
|
479
|
+
select: ThemeColor;
|
|
480
|
+
unselect: ThemeColor;
|
|
481
|
+
};
|
|
482
|
+
textColor: {
|
|
483
|
+
select: ThemeColor;
|
|
484
|
+
unselect: ThemeColor;
|
|
485
|
+
};
|
|
486
|
+
hoveredColor: ThemeColor;
|
|
487
|
+
pressedColor: ThemeColor;
|
|
488
|
+
}>;
|
|
448
489
|
};
|
|
449
490
|
export declare type ICastFilterItem = {
|
|
450
491
|
/**
|