@royaloperahouse/harmonic 1.0.5-e → 1.0.5
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 +3 -24
- package/README.GIT +293 -0
- package/README.md +43 -267
- package/dist/components/atoms/Dropdown/Dropdown.d.ts +1 -1
- package/dist/components/atoms/Tab/Tab.d.ts +1 -1
- package/dist/components/index.d.ts +2 -2
- package/dist/components/molecules/PageHeading/PageHeading.style.d.ts +2 -3
- package/dist/components/molecules/SkipToMain/SkipToMain.style.d.ts +1 -1
- package/dist/components/molecules/index.d.ts +1 -2
- package/dist/components/organisms/Carousels/Carousel/Carousel.d.ts +3 -1
- package/dist/components/organisms/Carousels/HighlightsCarousel/HighlightsCarousel.d.ts +3 -1
- package/dist/harmonic.cjs.development.css +0 -319
- package/dist/harmonic.cjs.development.js +266 -468
- 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 +275 -479
- package/dist/harmonic.esm.js.map +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/styles/HarmonicThemeProvider/HarmonicThemeProvider.d.ts +0 -1
- package/dist/types/carousel.d.ts +1 -24
- package/dist/types/index.d.ts +2 -2
- package/dist/types/modalWindow.d.ts +0 -4
- package/dist/types/types.d.ts +2 -93
- package/package.json +1 -1
- package/dist/components/molecules/CustomStrategyTabsFilter/CustomStrategyTabsFilter.d.ts +0 -70
- package/dist/components/molecules/CustomStrategyTabsFilter/index.d.ts +0 -2
- package/dist/components/molecules/CustomStrategyTabsFilter/styled.d.ts +0 -18
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Account, Accordion, Accordions, AnchorBar, AnnouncementBanner, AltHeader, AnchorTabBar, AuxiliaryNav, Basket, BodyText, Card, Cards, Carousel, CastFilter, CinemaBadge, ContactCard, ContactNewsletter, ContentSummary, ControlledDropdown, Dropdown, CreditListing, Editorial, Footer, GlobalStyles, Grid, GridItem, Header, HighlightsCarousel, HighlightsCarouselCinema, HighlightsCarouselCore, HighlightsCarouselStream, HotFilters, Icon, ImageAspectRatioWrapper, ImageWithCaption, Information, Logo, Navigation, NavTop, MinimalCarousel,
|
|
1
|
+
import { Account, Accordion, Accordions, AnchorBar, AnnouncementBanner, AltHeader, AnchorTabBar, AuxiliaryNav, Basket, BodyText, Card, Cards, Carousel, CastFilter, CinemaBadge, ContactCard, ContactNewsletter, ContentSummary, ControlledDropdown, Dropdown, CreditListing, Editorial, Footer, GlobalStyles, Grid, GridItem, Header, HighlightsCarousel, HighlightsCarouselCinema, HighlightsCarouselCore, HighlightsCarouselStream, HotFilters, Icon, ImageAspectRatioWrapper, ImageWithCaption, Information, Logo, Navigation, NavTop, MinimalCarousel, Overline, PageHeading, PageHeadingCompact, PageHeadingImpact, PageHeadingPanel, PageHeadingHighlight, PageHeadingPromo, PageHeadingHighlightCarousel, Pagination, PasswordStrength, Person, Paywall, PersonDetails, PeopleListing, PolicyLinks, PrimaryButton, Progress, PromoWithTags, PromoWithTitle, Radio2, RadioGroup2, ReadMore, RotatorButtons, Search, StatusBanner, SearchBar, SecondaryButton, SecondaryLogo, SocialLinks, SectionSplitter, SectionTitle, Select2, Select2Async, SignUpForm, Swipe, SwipeRef, Sponsorship, StickyBar, Stepper, StreamBadge, Subtitle, TertiaryButton, ThemeProvider, TitleWithCTA, Tab, Table, TabLink, Tabs, TextArea, TextField, TextFieldLegacy, TextLink, Tickbox, Tickbox2, Timer, TypeTags, UpsellCard, UpsellCards, UpsellSection, VideoControls, VideoWithControls } from './components';
|
|
2
2
|
import BodyContent from './components/molecules/BodyContent';
|
|
3
3
|
import Quote from './components/molecules/Quote';
|
|
4
4
|
import { devices, breakpoints } from './styles/viewports';
|
|
5
5
|
import zIndexes from './styles/zIndexes';
|
|
6
|
-
import { AspectRatio, ButtonType, CarouselType, Colors, IconNameType, IntegratedTimerProps, ITimerProps, TickboxMode, ThemeColor, ThemeType, EditorialLink, IInformationTitleProps, IInformationCTAProps
|
|
6
|
+
import { AspectRatio, ButtonType, CarouselType, Colors, IconNameType, IntegratedTimerProps, ITimerProps, TickboxMode, ThemeColor, ThemeType, EditorialLink, IInformationTitleProps, IInformationCTAProps } from './types';
|
|
7
7
|
import { MiniCard } from './components/molecules';
|
|
8
8
|
import { ModalWindow } from './components/organisms';
|
|
9
9
|
import AuxiliaryButton from './components/atoms/Buttons/Auxiliary/AuxiliaryButton';
|
|
@@ -12,4 +12,4 @@ import HarmonicThemeProvider, { useHarmonicTheme } from './styles/HarmonicThemeP
|
|
|
12
12
|
import { HarmonicSize } from './types/typography';
|
|
13
13
|
import { HarmonicHeader, HarmonicSubtitle, BodyCopyHarmonic, HarmonicOverline, ButtonText, Caption, NavigationText } from './components/Typography';
|
|
14
14
|
export { useHarmonicTheme };
|
|
15
|
-
export { Account, Accordion, Accordions, AnchorBar, AnnouncementBanner, AltHeader, AnchorTabBar, AuxiliaryButton, AuxiliaryNav, AspectRatio, Basket, BodyContent, BodyText, breakpoints, ButtonType, Card, Cards, CarouselType, Carousel, CastFilter, CinemaBadge, Colors, ContactCard, ContactNewsletter, ContentSummary, ControlledDropdown, Dropdown, CreditListing, devices, Editorial, EditorialLink, Footer, GlobalStyles, Grid, GridItem, HarmonicSize, HarmonicThemeProvider, Header, HighlightsCarousel, HighlightsCarouselCinema, HighlightsCarouselCore, HighlightsCarouselStream, HotFilters, Icon, IconNameType, ImageAspectRatioWrapper, ImageWithCaption, Information, Logo, IInformationCTAProps, IInformationTitleProps, ITimerProps, IntegratedTimerProps, MinimalCarousel, MiniCard,
|
|
15
|
+
export { Account, Accordion, Accordions, AnchorBar, AnnouncementBanner, AltHeader, AnchorTabBar, AuxiliaryButton, AuxiliaryNav, AspectRatio, Basket, BodyContent, BodyText, breakpoints, ButtonType, Card, Cards, CarouselType, Carousel, CastFilter, CinemaBadge, Colors, ContactCard, ContactNewsletter, ContentSummary, ControlledDropdown, Dropdown, CreditListing, devices, Editorial, EditorialLink, Footer, GlobalStyles, Grid, GridItem, HarmonicSize, HarmonicThemeProvider, Header, HighlightsCarousel, HighlightsCarouselCinema, HighlightsCarouselCore, HighlightsCarouselStream, HotFilters, Icon, IconNameType, ImageAspectRatioWrapper, ImageWithCaption, Information, Logo, IInformationCTAProps, IInformationTitleProps, ITimerProps, IntegratedTimerProps, MinimalCarousel, MiniCard, ModalWindow, Navigation, NavTop, Overline, PageHeading, PageHeadingCompact, PageHeadingImpact, PageHeadingPanel, PageHeadingHighlight, PageHeadingPromo, PageHeadingHighlightCarousel, Pagination, PasswordStrength, Person, PersonCard, PersonDetails, Paywall, PeopleListing, PolicyLinks, PrimaryButton, Progress, PromoWithTags, PromoWithTitle, Radio2, RadioGroup2, ReadMore, RotatorButtons, Search, StatusBanner, SearchBar, SecondaryButton, SecondaryLogo, SocialLinks, SectionSplitter, SectionTitle, Select2, Select2Async, SignUpForm, Swipe, SwipeRef, Sponsorship, StickyBar, Stepper, StreamBadge, Subtitle, Tab, Table, TabLink, Tabs, TertiaryButton, TextArea, TextField, TextFieldLegacy, TextLink, ThemeColor, ThemeProvider, ThemeType, TitleWithCTA, Tickbox, Tickbox2, TickboxMode, Timer, TypeTags, UpsellCard, UpsellCards, UpsellSection, Quote, VideoControls, VideoWithControls, zIndexes, HarmonicHeader, HarmonicSubtitle, BodyCopyHarmonic, HarmonicOverline, ButtonText, Caption, NavigationText, };
|
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 {
|
|
7
|
+
import { TypographyLevel } from './typography';
|
|
8
8
|
export declare enum CarouselType {
|
|
9
9
|
Image = "image",
|
|
10
10
|
SmallCard = "SmallCard",
|
|
@@ -52,20 +52,6 @@ export interface ICarouselProps {
|
|
|
52
52
|
* CSS class name
|
|
53
53
|
*/
|
|
54
54
|
className?: string;
|
|
55
|
-
/**
|
|
56
|
-
* Enables infinite scroll once user interacts with buttons
|
|
57
|
-
*/
|
|
58
|
-
enableInfiniteOnInteraction?: boolean;
|
|
59
|
-
/**
|
|
60
|
-
* Custom Title grid position
|
|
61
|
-
*/
|
|
62
|
-
titleGrid?: {
|
|
63
|
-
columnStartDesktop: number;
|
|
64
|
-
columnSpanDesktop: number;
|
|
65
|
-
columnStartDevice: number;
|
|
66
|
-
columnSpanDevice: number;
|
|
67
|
-
};
|
|
68
|
-
titleFontFamily?: 'Victor' | 'Grey' | undefined;
|
|
69
55
|
}
|
|
70
56
|
export interface ICarouselWrapperProps {
|
|
71
57
|
/**
|
|
@@ -191,15 +177,6 @@ export interface IHighlightsCarouselProps {
|
|
|
191
177
|
* Additional CSS class names to apply to the navigation component.
|
|
192
178
|
*/
|
|
193
179
|
className?: string;
|
|
194
|
-
/**
|
|
195
|
-
* Title size to be applied no title.
|
|
196
|
-
*/
|
|
197
|
-
titleSize?: HarmonicSize;
|
|
198
|
-
/**
|
|
199
|
-
* Additional CSS class names to apply to the title component.
|
|
200
|
-
*/
|
|
201
|
-
titleClassName?: string;
|
|
202
|
-
titleFontFamily?: 'Victor' | 'Grey' | undefined;
|
|
203
180
|
}
|
|
204
181
|
export declare type IHighlightsCoreCarouselProps = Omit<IHighlightsCarouselProps, 'logo'>;
|
|
205
182
|
export interface IHighlightsCinemaCarouselProps extends Omit<IHighlightsCarouselProps, 'logo'> {
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { FooterData } from './footer';
|
|
2
|
-
import { Colors, ThemeType, ThemeColor
|
|
2
|
+
import { Colors, ThemeType, ThemeColor } from './types';
|
|
3
3
|
import { INavigationProps, INavTopProps } from './navigation';
|
|
4
4
|
import { CarouselType } from './carousel';
|
|
5
5
|
import { IconNameType } from './iconTypes';
|
|
@@ -12,5 +12,5 @@ import { IntegratedTimerProps, ITimerProps } from './timer';
|
|
|
12
12
|
import { ICreditListing } from './creditListing';
|
|
13
13
|
import { ModalWindowProps } from './modalWindow';
|
|
14
14
|
import { IInformationTitleProps, IInformationCTAProps } from './information';
|
|
15
|
-
export { AspectRatio, ButtonType, CarouselType, Colors, EditorialLink, IconNameType, ICreditListing, IPageHeadingCompactProps, INavigationProps, INavTopProps, IntegratedTimerProps, ITimerProps, ModalWindowProps, TickboxMode, ThemeColor, ThemeType, IInformationTitleProps, IInformationCTAProps,
|
|
15
|
+
export { AspectRatio, ButtonType, CarouselType, Colors, EditorialLink, IconNameType, ICreditListing, IPageHeadingCompactProps, INavigationProps, INavTopProps, IntegratedTimerProps, ITimerProps, ModalWindowProps, TickboxMode, ThemeColor, ThemeType, IInformationTitleProps, IInformationCTAProps, };
|
|
16
16
|
export type { FooterData };
|
package/dist/types/types.d.ts
CHANGED
|
@@ -147,10 +147,6 @@ export interface ITabProps {
|
|
|
147
147
|
* Additional CSS class names to apply to the navigation component.
|
|
148
148
|
*/
|
|
149
149
|
className?: string;
|
|
150
|
-
/**
|
|
151
|
-
* The unique ID to assign to the link element.
|
|
152
|
-
*/
|
|
153
|
-
tabLinkId?: string;
|
|
154
150
|
/**
|
|
155
151
|
* Defines the ARIA role of the element for accessibility purposes.
|
|
156
152
|
*/
|
|
@@ -226,11 +222,7 @@ export interface IDropdownProps {
|
|
|
226
222
|
*/
|
|
227
223
|
ariaLabel?: string;
|
|
228
224
|
/**
|
|
229
|
-
*
|
|
230
|
-
*/
|
|
231
|
-
tabLinkId?: string;
|
|
232
|
-
/**
|
|
233
|
-
* Defines if it is needed to trim the text of the Tab and add 3 dots in the end
|
|
225
|
+
* Defines if it is needed to trim the text of the Tab and add 3 dots in the end
|
|
234
226
|
*/
|
|
235
227
|
trimTabText?: boolean;
|
|
236
228
|
}
|
|
@@ -437,65 +429,7 @@ export declare type IHotFilterProps = {
|
|
|
437
429
|
selectedIndex?: number;
|
|
438
430
|
onSelect?: (index: number) => void;
|
|
439
431
|
};
|
|
440
|
-
|
|
441
|
-
* Represents a single tab item rendered by the
|
|
442
|
-
* {@link CustomStrategyTabsFilter} component.
|
|
443
|
-
*/
|
|
444
|
-
export declare type TCustomStrategyTabsFilterItem = Omit<IHotFilterItem, 'onClick'> & {
|
|
445
|
-
/**
|
|
446
|
-
* Indicates whether the tab is currently selected.
|
|
447
|
-
*/
|
|
448
|
-
isSelected: boolean;
|
|
449
|
-
/**
|
|
450
|
-
* Unique identifier for the tab.
|
|
451
|
-
*/
|
|
452
|
-
id: 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[];
|
|
460
|
-
};
|
|
461
|
-
/**
|
|
462
|
-
* Props for the {@link CustomStrategyTabsFilter} component.
|
|
463
|
-
*/
|
|
464
|
-
export declare type TCustomStrategyTabsFilterProps = Omit<IHotFilterProps, 'items' | 'selectedIndex' | 'onSelect'> & {
|
|
465
|
-
/**
|
|
466
|
-
* Collection of tabs to display.
|
|
467
|
-
*/
|
|
468
|
-
items: TCustomStrategyTabsFilterItem[];
|
|
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
|
-
}>;
|
|
489
|
-
};
|
|
490
|
-
export declare type ICastFilterItem = {
|
|
491
|
-
/**
|
|
492
|
-
* Stable identifier for selection mapping and rendering keys.
|
|
493
|
-
*/
|
|
494
|
-
id?: string | number;
|
|
495
|
-
/**
|
|
496
|
-
* Alternative stable identifier for selection mapping and rendering keys.
|
|
497
|
-
*/
|
|
498
|
-
slug?: string;
|
|
432
|
+
export declare type ICastFilterItem = Pick<AnchorHTMLAttributes<HTMLAnchorElement>, 'aria-label' | 'role'> & {
|
|
499
433
|
/**
|
|
500
434
|
* Name of the cast member shown below the image circle. Required.
|
|
501
435
|
*/
|
|
@@ -504,15 +438,6 @@ export declare type ICastFilterItem = {
|
|
|
504
438
|
* Image source for the image to be shown. Optional but if not included an unaesthetic placeholder will show.
|
|
505
439
|
*/
|
|
506
440
|
image?: string;
|
|
507
|
-
/**
|
|
508
|
-
* Optional accessible name for the option. If omitted, `name` is used.
|
|
509
|
-
*/
|
|
510
|
-
'aria-label'?: string;
|
|
511
|
-
/**
|
|
512
|
-
* Kept for backwards compatibility with existing integrations.
|
|
513
|
-
* CastFilter always renders option semantics and ignores this value at runtime.
|
|
514
|
-
*/
|
|
515
|
-
role?: string;
|
|
516
441
|
onClick?: () => void;
|
|
517
442
|
};
|
|
518
443
|
export declare type ICastFiltersProps = {
|
|
@@ -523,14 +448,8 @@ export declare type ICastFiltersProps = {
|
|
|
523
448
|
cast: ICastFilterItem[];
|
|
524
449
|
/**
|
|
525
450
|
* Indices of currently selected cast in the `cast` array.
|
|
526
|
-
* Legacy API kept for backwards compatibility.
|
|
527
451
|
*/
|
|
528
452
|
selectedIndices?: number[];
|
|
529
|
-
/**
|
|
530
|
-
* Stable IDs/slugs of currently selected cast items.
|
|
531
|
-
* Prefer this over `selectedIndices` for stable selection across reordering.
|
|
532
|
-
*/
|
|
533
|
-
selectedIds?: Array<string | number>;
|
|
534
453
|
/**
|
|
535
454
|
* Text shown at the top of the component, e.g. 'Filter by cast'. If this is not provided
|
|
536
455
|
* the component will render without any.
|
|
@@ -560,22 +479,12 @@ export declare type ICastFiltersProps = {
|
|
|
560
479
|
listRoleDescription?: string;
|
|
561
480
|
/**
|
|
562
481
|
* Handle selecting individual cast filters.
|
|
563
|
-
* Legacy API kept for backwards compatibility.
|
|
564
482
|
*/
|
|
565
483
|
onSelect?: (index: number) => void;
|
|
566
|
-
/**
|
|
567
|
-
* Handle selecting individual cast filters using stable item ID/slug.
|
|
568
|
-
*/
|
|
569
|
-
onSelectId?: (id: string) => void;
|
|
570
484
|
/**
|
|
571
485
|
* Handle clicking the primary CTA.
|
|
572
|
-
* Legacy API kept for backwards compatibility.
|
|
573
486
|
*/
|
|
574
487
|
onApply?: (indices: number[]) => void;
|
|
575
|
-
/**
|
|
576
|
-
* Handle clicking the primary CTA using stable selected IDs/slugs.
|
|
577
|
-
*/
|
|
578
|
-
onApplyIds?: (ids: string[]) => void;
|
|
579
488
|
/**
|
|
580
489
|
* Handle clicking the text link.
|
|
581
490
|
*/
|
package/package.json
CHANGED
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { TCustomStrategyTabsFilterProps } from '../../../types';
|
|
3
|
-
/**
|
|
4
|
-
* A horizontally scrollable tabs filter component used to display
|
|
5
|
-
* selectable strategy tabs with configurable styling and selection behavior.
|
|
6
|
-
*
|
|
7
|
-
* Features:
|
|
8
|
-
* - Supports both single-select and multi-select tab scenarios
|
|
9
|
-
* - Displays an optional icon on selected tabs
|
|
10
|
-
* - Allows customization of colors and selected icon through `customViewConfig`
|
|
11
|
-
* - Applies default styling when configuration values are omitted
|
|
12
|
-
* - Emits the clicked tab item through `onClick`
|
|
13
|
-
*
|
|
14
|
-
* @component
|
|
15
|
-
*
|
|
16
|
-
* @param {TCustomStrategyTabsFilterProps['items']} items
|
|
17
|
-
* Collection of tabs to render.
|
|
18
|
-
*
|
|
19
|
-
* @param {string} [className]
|
|
20
|
-
* Optional CSS class name applied to the root scroll container.
|
|
21
|
-
*
|
|
22
|
-
* @param {<T>(item: TCustomStrategyTabsFilterProps['items'][number]) => T} onClick
|
|
23
|
-
* Called when a tab is clicked. Receives the full clicked item (including
|
|
24
|
-
* `allowedSelectedWith`). The parent is responsible for computing the next
|
|
25
|
-
* `items` array and passing it back down with updated `isSelected` values.
|
|
26
|
-
* as long as no return statement `type` is inferred automatically as void
|
|
27
|
-
*
|
|
28
|
-
* @param [customViewConfig]
|
|
29
|
-
* Optional visual configuration used to customize:
|
|
30
|
-
* - selected tab icon
|
|
31
|
-
* - selected/unselected background colors
|
|
32
|
-
* - selected/unselected text colors
|
|
33
|
-
* - hover color
|
|
34
|
-
* - pressed color
|
|
35
|
-
*
|
|
36
|
-
* Any omitted configuration values will fall back to the component defaults.
|
|
37
|
-
*
|
|
38
|
-
* @returns { React.JSX.Element}
|
|
39
|
-
*
|
|
40
|
-
* @example
|
|
41
|
-
* ```tsx
|
|
42
|
-
* * @example Controlled selection with custom rules
|
|
43
|
-
* * The component does not manage selection itself. The parent owns `items` (including
|
|
44
|
-
* * `isSelected`) and updates that state in `onClick`. Use `allowedSelectedWith` on each
|
|
45
|
-
* * item to describe which other tab IDs may stay selected when that tab is chosen.
|
|
46
|
-
* *
|
|
47
|
-
* * ```tsx
|
|
48
|
-
* * const [items, setItems] = useState<TCustomStrategyTabsFilterItem[]>([
|
|
49
|
-
* * { id: 'all', text: 'All events', isSelected: true, allowedSelectedWith: [] },
|
|
50
|
-
* * { id: 'opera', text: 'Opera', isSelected: false, allowedSelectedWith: ['ballet'] },
|
|
51
|
-
* * { id: 'ballet', text: 'Ballet', isSelected: false, allowedSelectedWith: ['opera'] },
|
|
52
|
-
* * ]);
|
|
53
|
-
* *
|
|
54
|
-
* * const handleClick = (clickedItem: TCustomStrategyTabsFilterItem) => {
|
|
55
|
-
* * setItems((current) =>
|
|
56
|
-
* * current.map((item) => {
|
|
57
|
-
* * if (item.id === clickedItem.id) {
|
|
58
|
-
* * return { ...item, isSelected: !item.isSelected };
|
|
59
|
-
* * }
|
|
60
|
-
* *
|
|
61
|
-
* * const mayStaySelected = clickedItem.allowedSelectedWith?.includes(item.id);
|
|
62
|
-
* * return { ...item, isSelected: mayStaySelected ? !item.isSelected : false };
|
|
63
|
-
* * })
|
|
64
|
-
* * );
|
|
65
|
-
* * };
|
|
66
|
-
* *
|
|
67
|
-
* * return <CustomStrategyTabsFilter items={items} onClick={handleClick} />;
|
|
68
|
-
*/
|
|
69
|
-
declare const CustomStrategyTabsFilter: ({ items, className, onClick, customViewConfig, }: TCustomStrategyTabsFilterProps) => React.JSX.Element;
|
|
70
|
-
export default CustomStrategyTabsFilter;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
export declare const ScrollContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
2
|
-
export declare const TabsContainerWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
3
|
-
export declare const StyledTab: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<{
|
|
4
|
-
children: import("react").ReactNode;
|
|
5
|
-
onClick?: ((event: import("react").MouseEvent<HTMLAnchorElement, MouseEvent>) => void) | undefined;
|
|
6
|
-
className?: string | undefined;
|
|
7
|
-
} & {
|
|
8
|
-
iconName?: "AddToMyList" | "Arrow" | "ArrowPagination" | "AudioDescription" | "Back10" | "BalletAndDance" | "Basket" | "BasketFull" | "BritishSignLanguage" | "BookTickets" | "CarouselArrow" | "ChooseDates" | "Cinema" | "Clips" | "Clock" | "Close" | "Captioned" | "ClosedCaptions" | "Confirm" | "CreditCard" | "Delete" | "Detract" | "DropdownArrow" | "EditMyList" | "Email" | "Expand" | "Expand12px" | "ExternalLink" | "Facebook" | "FamilyFriendly" | "Favourite" | "FavouriteFull" | "Filter" | "FindAScreening" | "Forward10" | "FullScreen" | "GridView" | "Home" | "Info" | "Instagram" | "LastPageArrow" | "List" | "ListView" | "LiveStream" | "Location" | "Menu" | "Minimise" | "Muted" | "NavLogoMobile" | "NavLogoNoCrest" | "NavLogoWithCrest" | "OnMyList" | "OpenCaptions" | "OperaAndMusic" | "Pause" | "PDF" | "Phone" | "Play" | "Print" | "Refresh" | "RelaxedPerformance" | "Reminder" | "Remove" | "Remove12px" | "Restart" | "Search" | "Seat" | "Secure" | "Settings" | "Shift" | "Space" | "Standing" | "Star" | "Subscribe" | "Subtitles" | "Tick" | "Tickets" | "Tiktok" | "TouchTour" | "Trailer" | "Twitter" | "User" | "UserSignedIn" | "Volume" | "Watch" | "Wheelchair" | "X" | "Youtube" | undefined;
|
|
9
|
-
iconDirection?: "left" | "right" | "up" | "down" | "reverse" | undefined;
|
|
10
|
-
iconClassName?: string | undefined;
|
|
11
|
-
} & import("react").AnchorHTMLAttributes<HTMLAnchorElement> & Pick<{
|
|
12
|
-
textColor?: "primary" | "primary-red" | "primary-black" | "base-white" | "base-black" | "base-dark-grey" | "base-mid-grey" | "base-light-grey" | "base-transparent" | "state-error" | "state-medium" | "state-good" | "state-focused" | "state-disabled" | "rbo-red-hovered" | "rbo-red-pressed" | "rbo-black-hovered" | "rbo-black-pressed" | "black-hovered" | "black-pressed" | "white-hovered" | "white-pressed" | "secondary-yellow" | "secondary-pink" | "secondary-orange" | "secondary-blue" | undefined;
|
|
13
|
-
backgroundColor?: "primary" | "primary-red" | "primary-black" | "base-white" | "base-black" | "base-dark-grey" | "base-mid-grey" | "base-light-grey" | "base-transparent" | "state-error" | "state-medium" | "state-good" | "state-focused" | "state-disabled" | "rbo-red-hovered" | "rbo-red-pressed" | "rbo-black-hovered" | "rbo-black-pressed" | "black-hovered" | "black-pressed" | "white-hovered" | "white-pressed" | "secondary-yellow" | "secondary-pink" | "secondary-orange" | "secondary-blue" | undefined;
|
|
14
|
-
borderColor?: "primary" | "primary-red" | "primary-black" | "base-white" | "base-black" | "base-dark-grey" | "base-mid-grey" | "base-light-grey" | "base-transparent" | "state-error" | "state-medium" | "state-good" | "state-focused" | "state-disabled" | "rbo-red-hovered" | "rbo-red-pressed" | "rbo-black-hovered" | "rbo-black-pressed" | "black-hovered" | "black-pressed" | "white-hovered" | "white-pressed" | "secondary-yellow" | "secondary-pink" | "secondary-orange" | "secondary-blue" | undefined;
|
|
15
|
-
hoveredColor?: "primary" | "primary-red" | "primary-black" | "base-white" | "base-black" | "base-dark-grey" | "base-mid-grey" | "base-light-grey" | "base-transparent" | "state-error" | "state-medium" | "state-good" | "state-focused" | "state-disabled" | "rbo-red-hovered" | "rbo-red-pressed" | "rbo-black-hovered" | "rbo-black-pressed" | "black-hovered" | "black-pressed" | "white-hovered" | "white-pressed" | "secondary-yellow" | "secondary-pink" | "secondary-orange" | "secondary-blue" | undefined;
|
|
16
|
-
pressedColor?: "primary" | "primary-red" | "primary-black" | "base-white" | "base-black" | "base-dark-grey" | "base-mid-grey" | "base-light-grey" | "base-transparent" | "state-error" | "state-medium" | "state-good" | "state-focused" | "state-disabled" | "rbo-red-hovered" | "rbo-red-pressed" | "rbo-black-hovered" | "rbo-black-pressed" | "black-hovered" | "black-pressed" | "white-hovered" | "white-pressed" | "secondary-yellow" | "secondary-pink" | "secondary-orange" | "secondary-blue" | undefined;
|
|
17
|
-
disabled?: boolean | undefined;
|
|
18
|
-
}, "textColor" | "backgroundColor" | "hoveredColor" | "pressedColor" | "disabled"> & import("react").RefAttributes<HTMLAnchorElement>>, any, {}, never>;
|