@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.
@@ -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'> {
@@ -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
- allowedChoice?: string[];
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
- onClick: (item: TCustomStrategyTabsFilterItem) => void;
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
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@royaloperahouse/harmonic",
3
- "version": "1.0.5-c",
3
+ "version": "1.0.5-d",
4
4
  "author": "Royal Opera House",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",