@royaloperahouse/chord 1.2.0 → 1.2.1-a-chord-development
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 +504 -7
- package/README.md +250 -40
- package/dist/chord.cjs.development.js +9019 -3801
- package/dist/chord.cjs.development.js.map +1 -1
- package/dist/chord.cjs.production.min.js +1 -1
- package/dist/chord.cjs.production.min.js.map +1 -1
- package/dist/chord.esm.js +8986 -3797
- package/dist/chord.esm.js.map +1 -1
- package/dist/components/atoms/Buttons/Auxiliary/AuxiliaryButton.d.ts +4 -0
- package/dist/components/atoms/Buttons/Auxiliary/AuxiliaryButton.style.d.ts +4 -0
- package/dist/components/atoms/Buttons/Primary/PrimaryButtonWrapper.style.d.ts +1 -0
- package/dist/components/atoms/Grid/GridItemLegacy.d.ts +8 -0
- package/dist/components/atoms/Grid/index.d.ts +2 -1
- package/dist/components/atoms/Icons/Icons.d.ts +1 -1
- package/dist/components/atoms/Icons/StorybookSupport/Iconography.d.ts +1 -0
- package/dist/components/atoms/Icons/SvgIcons/12px/Expand.svg.d.ts +4 -0
- package/dist/components/atoms/Icons/SvgIcons/12px/Remove.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/12px/Tick.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Actions/AddToMyList.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Actions/BookTickets.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Actions/ChooseDates.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Actions/EditMyList.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Actions/Favourite.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Actions/FavouriteFull.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Actions/Filter.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Actions/FindAScreening.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Actions/OnMyList.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Actions/Reminder.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Actions/Subscribe.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Actions/Watch.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Arrows/Arrow.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Arrows/CarouselArrow.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Arrows/DropdownArrow.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Descriptors/Cinema.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Descriptors/Clock.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Descriptors/CreditCard.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Descriptors/Email.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Descriptors/Info.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Descriptors/List.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Descriptors/Location.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Descriptors/PDF.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Descriptors/Phone.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Descriptors/Print.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Descriptors/Seat.svg.d.ts +4 -0
- package/dist/components/atoms/Icons/SvgIcons/Descriptors/Secure.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Descriptors/Standing.svg.d.ts +4 -0
- package/dist/components/atoms/Icons/SvgIcons/Descriptors/Tickets.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Descriptors/Wheelchair.svg.d.ts +4 -0
- package/dist/components/atoms/Icons/SvgIcons/Logos/Social/Facebook.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Logos/Social/Instagram.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Logos/Social/Tiktok.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Logos/Social/Twitter.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Logos/Social/X.svg.d.ts +4 -0
- package/dist/components/atoms/Icons/SvgIcons/Logos/Social/Youtube.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Navigation/BalletAndDance.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Navigation/Basket.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Navigation/BasketFull.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Navigation/Home.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Navigation/LiveStream.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Navigation/Menu.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Navigation/OperaAndMusic.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Navigation/Search.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Navigation/Settings.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Navigation/User.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Navigation/UserSignedIn.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Text/Delete.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Text/Shift.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Text/Space.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Utility/Close.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Utility/Confirm.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Utility/Detract.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Utility/Expand.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Utility/ExternalLink.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Utility/GridView.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Utility/ListView.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Utility/Refresh.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Utility/Remove.svg.d.ts +4 -0
- package/dist/components/atoms/Icons/SvgIcons/Utility/Star.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Video/AudioDescription.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Video/Back10.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Video/Clips.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Video/Forward10.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Video/FullScreen.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Video/Minimise.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Video/Muted.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Video/Pause.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Video/Play.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Video/Restart.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Video/Subtitles.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Video/Trailer.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/Video/Volume.svg.d.ts +1 -1
- package/dist/components/atoms/Icons/SvgIcons/index.d.ts +76 -70
- package/dist/components/atoms/Logo/Logo.d.ts +1 -1
- package/dist/components/atoms/Progress/Progress.d.ts +1 -1
- package/dist/components/atoms/Progress/Progress.styles.d.ts +10 -3
- package/dist/components/atoms/Radio/Radio.d.ts +6 -0
- package/dist/components/atoms/Radio/Radio.style.d.ts +4 -0
- package/dist/components/atoms/Radio/index.d.ts +2 -0
- package/dist/components/atoms/Radio2/Radio2.d.ts +23 -0
- package/dist/components/atoms/Radio2/Radio2.style.d.ts +7 -0
- package/dist/components/atoms/Radio2/index.d.ts +2 -0
- package/dist/components/atoms/Sponsorship/Sponsorship.style.d.ts +2 -0
- package/dist/components/atoms/Stepper/Stepper.d.ts +58 -0
- package/dist/components/atoms/Stepper/Stepper.style.d.ts +6 -0
- package/dist/components/atoms/Stepper/index.d.ts +2 -0
- package/dist/components/atoms/TextArea/TextArea.d.ts +44 -0
- package/dist/components/atoms/TextArea/TextArea.style.d.ts +5 -0
- package/dist/components/atoms/TextArea/index.d.ts +2 -0
- package/dist/components/atoms/TextField/TextField.d.ts +42 -0
- package/dist/components/atoms/TextField/TextField.style.d.ts +9 -0
- package/dist/components/atoms/TextField/TextFieldLegacy.d.ts +10 -0
- package/dist/components/atoms/TextField/TextFieldLegacy.style.d.ts +5 -0
- package/dist/components/atoms/TextField/index.d.ts +3 -0
- package/dist/components/atoms/TextLogo/TextLogo.d.ts +13 -0
- package/dist/components/atoms/TextLogo/index.d.ts +2 -0
- package/dist/components/atoms/TextLogo/styled.d.ts +12 -0
- package/dist/components/atoms/Tickbox/Tickbox.d.ts +3 -0
- package/dist/components/atoms/Tickbox/Tickbox.style.d.ts +5 -0
- package/dist/components/atoms/Tickbox2/Tickbox2.d.ts +23 -0
- package/dist/components/atoms/Tickbox2/Tickbox2.style.d.ts +7 -0
- package/dist/components/atoms/Tickbox2/index.d.ts +2 -0
- package/dist/components/atoms/Timer/Timer.d.ts +4 -0
- package/dist/components/atoms/Timer/Timer.style.d.ts +9 -0
- package/dist/components/atoms/Timer/index.d.ts +2 -0
- package/dist/components/atoms/Typography/Typography.d.ts +2 -2
- package/dist/components/atoms/VideoControls/VideoControls.d.ts +4 -0
- package/dist/components/atoms/VideoControls/VideoControls.style.d.ts +13 -0
- package/dist/components/atoms/VideoControls/index.d.ts +2 -0
- package/dist/components/atoms/index.d.ts +17 -7
- package/dist/components/index.d.ts +4 -4
- package/dist/components/molecules/Accordion/Accordion.style.d.ts +7 -2
- package/dist/components/molecules/AuxiliaryNav/AuxiliaryNav.d.ts +21 -0
- package/dist/components/molecules/AuxiliaryNav/AuxiliaryNav.styles.d.ts +9 -0
- package/dist/components/molecules/AuxiliaryNav/index.d.ts +2 -0
- package/dist/components/molecules/Basket/Basket.d.ts +3 -0
- package/dist/components/molecules/Basket/helpers.d.ts +3 -0
- package/dist/components/molecules/Basket/hooks.d.ts +8 -0
- package/dist/components/molecules/Card/Card.style.d.ts +17 -1
- package/dist/components/molecules/ContentSummary/ContentSummary.d.ts +3 -0
- package/dist/components/molecules/ContentSummary/ContentSummary.style.d.ts +17 -0
- package/dist/components/molecules/ContentSummary/ContentSummaryData.d.ts +25 -0
- package/dist/components/molecules/ContentSummary/index.d.ts +2 -0
- package/dist/components/molecules/Information/InfoCta.d.ts +2 -2
- package/dist/components/molecules/Information/Information.style.d.ts +6 -3
- package/dist/components/molecules/MiniCard/MiniCard.d.ts +4 -0
- package/dist/components/molecules/MiniCard/MiniCard.style.d.ts +6 -0
- package/dist/components/molecules/MiniCard/index.d.ts +2 -0
- package/dist/components/molecules/NavTop/NavTop.d.ts +1 -1
- package/dist/components/molecules/PageHeading/Compact/Compact.d.ts +4 -0
- package/dist/components/molecules/PageHeading/Compact/Compact.style.d.ts +24 -0
- package/dist/components/molecules/PageHeading/Compact/components/CompactHeaderBranding.d.ts +10 -0
- package/dist/components/molecules/PageHeading/Compact/index.d.ts +2 -0
- package/dist/components/molecules/PageHeading/Impact/Impact.d.ts +1 -1
- package/dist/components/molecules/PageHeading/Impact/Impact.style.d.ts +1 -0
- package/dist/components/molecules/PageHeading/PageHeading.style.d.ts +6 -3
- package/dist/components/molecules/PageHeading/Panel/Panel.d.ts +4 -0
- package/dist/components/molecules/PageHeading/Panel/Panel.style.d.ts +9 -0
- package/dist/components/molecules/PageHeading/Panel/index.d.ts +2 -0
- package/dist/components/molecules/PageHeading/index.d.ts +3 -1
- package/dist/components/molecules/Pagination/Pagination.d.ts +9 -0
- package/dist/components/molecules/Pagination/Pagination.style.d.ts +8 -0
- package/dist/components/molecules/Pagination/index.d.ts +2 -0
- package/dist/components/molecules/PasswordStrength/PasswordStrength.d.ts +33 -0
- package/dist/components/molecules/PasswordStrength/PasswordStrength.styles.d.ts +13 -0
- package/dist/components/molecules/PasswordStrength/index.d.ts +2 -0
- package/dist/components/molecules/PeopleListing/CreditListing/CreditListing.d.ts +5 -0
- package/dist/components/molecules/PeopleListing/CreditListing/CreditListing.style.d.ts +8 -0
- package/dist/components/molecules/PeopleListing/CreditListing/index.d.ts +2 -0
- package/dist/components/molecules/PeopleListing/PeopleListing.style.d.ts +1 -0
- package/dist/components/molecules/PeopleListing/index.d.ts +2 -1
- package/dist/components/molecules/PromoWithTags/PromoWithTags.d.ts +1 -1
- package/dist/components/molecules/PromoWithTags/PromoWithTags.style.d.ts +11 -4
- package/dist/components/molecules/PromoWithTitle/PromoChild.d.ts +9 -0
- package/dist/components/molecules/RadioGroup/RadioGroup.d.ts +6 -0
- package/dist/components/molecules/RadioGroup/RadioGroup.style.d.ts +1 -0
- package/dist/components/molecules/RadioGroup/index.d.ts +2 -0
- package/dist/components/molecules/RadioGroup2/RadioGroup2.d.ts +38 -0
- package/dist/components/molecules/RadioGroup2/RadioGroup2.style.d.ts +4 -0
- package/dist/components/molecules/RadioGroup2/index.d.ts +2 -0
- package/dist/components/molecules/ReadMore/ReadMore.d.ts +4 -0
- package/dist/components/molecules/ReadMore/ReadMore.style.d.ts +9 -0
- package/dist/components/molecules/ReadMore/index.d.ts +2 -0
- package/dist/components/molecules/SearchBar/SearchBar.style.d.ts +1 -0
- package/dist/components/molecules/SectionTitle/SectionTitle.d.ts +1 -1
- package/dist/components/molecules/Select/Select.d.ts +100 -0
- package/dist/components/molecules/Select/Select.style.d.ts +14 -0
- package/dist/components/molecules/Select/index.d.ts +2 -0
- package/dist/components/molecules/Select2/Select2.d.ts +24 -0
- package/dist/components/molecules/Select2/Select2.style.d.ts +5 -0
- package/dist/components/molecules/Select2/index.d.ts +2 -0
- package/dist/components/molecules/Select2Async/Select2Async.d.ts +18 -0
- package/dist/components/molecules/Select2Async/index.d.ts +2 -0
- package/dist/components/molecules/StatusBanner/StatusBanner.d.ts +4 -0
- package/dist/components/molecules/StatusBanner/StatusBanner.style.d.ts +3 -0
- package/dist/components/molecules/StatusBanner/index.d.ts +2 -0
- package/dist/components/molecules/Table/Table.d.ts +4 -0
- package/dist/components/molecules/Table/Table.style.d.ts +19 -0
- package/dist/components/molecules/Table/components/TableCell.d.ts +3 -0
- package/dist/components/molecules/Table/components/TableHelpers.d.ts +4 -0
- package/dist/components/molecules/Table/components/TableRow.d.ts +3 -0
- package/dist/components/molecules/Table/index.d.ts +2 -0
- package/dist/components/molecules/UpsellCard/OfferText.d.ts +2 -0
- package/dist/components/molecules/UpsellCard/UpsellCard.d.ts +4 -0
- package/dist/components/molecules/UpsellCard/UpsellCard.style.d.ts +15 -0
- package/dist/components/molecules/UpsellCard/index.d.ts +2 -0
- package/dist/components/molecules/UpsellCards/UpsellCards.d.ts +4 -0
- package/dist/components/molecules/UpsellCards/UpsellCards.style.d.ts +1 -0
- package/dist/components/molecules/UpsellCards/index.d.ts +2 -0
- package/dist/components/molecules/VideoWithControls/VideoWithControls.d.ts +4 -0
- package/dist/components/molecules/VideoWithControls/VideoWithControls.style.d.ts +2 -0
- package/dist/components/molecules/VideoWithControls/index.d.ts +2 -0
- package/dist/components/molecules/index.d.ts +19 -3
- package/dist/components/organisms/AnchorTabBar/AnchorTabBar.style.d.ts +4 -3
- package/dist/components/organisms/ModalWindow/ModalWindow.d.ts +68 -0
- package/dist/components/organisms/ModalWindow/ModalWindow.style.d.ts +4 -0
- package/dist/components/organisms/ModalWindow/index.d.ts +2 -0
- package/dist/components/organisms/Navigation/Navigation.style.d.ts +6 -2
- package/dist/components/organisms/StickyBar/StickyBar.style.d.ts +5 -1
- package/dist/components/organisms/UpsellSection/UpsellSection.d.ts +4 -0
- package/dist/components/organisms/UpsellSection/UpsellSection.style.d.ts +3 -0
- package/dist/components/organisms/UpsellSection/index.d.ts +2 -0
- package/dist/components/organisms/index.d.ts +3 -3
- package/dist/helpers/arrays.d.ts +6 -0
- package/dist/helpers/aspectRatio.d.ts +2 -0
- package/dist/helpers/defaultValues.d.ts +7 -0
- package/dist/helpers/devices.d.ts +3 -0
- package/dist/helpers/formatStrings.d.ts +2 -0
- package/dist/helpers/generateDomElementId.d.ts +8 -0
- package/dist/helpers/htmlStrings.d.ts +5 -1
- package/dist/helpers/keyboards.d.ts +3 -0
- package/dist/helpers/urls.d.ts +2 -0
- package/dist/index.d.ts +9 -4
- package/dist/styles/themes.d.ts +1188 -104
- package/dist/styles/viewports.d.ts +3 -0
- package/dist/types/auxiliaryNav.d.ts +39 -0
- package/dist/types/buttonTypes.d.ts +18 -0
- package/dist/types/card.d.ts +44 -0
- package/dist/types/carousel.d.ts +22 -1
- package/dist/types/creditListing.d.ts +13 -0
- package/dist/types/editorial.d.ts +80 -56
- package/dist/types/formTypes.d.ts +328 -0
- package/dist/types/iconTypes.d.ts +6 -0
- package/dist/types/image.d.ts +3 -0
- package/dist/types/impactHeader.d.ts +135 -0
- package/dist/types/index.d.ts +7 -2
- package/dist/types/information.d.ts +17 -12
- package/dist/types/miniCard.d.ts +27 -0
- package/dist/types/modalWindow.d.ts +20 -0
- package/dist/types/navigation.d.ts +68 -4
- package/dist/types/passwordStrength.d.ts +51 -0
- package/dist/types/progress.d.ts +33 -0
- package/dist/types/promoWithTags.d.ts +81 -0
- package/dist/types/tableTypes.d.ts +47 -0
- package/dist/types/tickbox.d.ts +35 -0
- package/dist/types/timer.d.ts +37 -0
- package/dist/types/types.d.ts +168 -10
- package/dist/types/typography.d.ts +18 -2
- package/dist/types/upsell.d.ts +78 -0
- package/dist/types/utility.d.ts +4 -0
- package/package.json +15 -4
- package/README.GIT +0 -122
- package/dist/components/atoms/Basket/Basket.d.ts +0 -3
- package/dist/components/organisms/Carousel/Carousel.d.ts +0 -5
- package/dist/components/organisms/Carousel/Carousel.style.d.ts +0 -6
- package/dist/components/organisms/Carousel/index.d.ts +0 -2
- package/dist/components/organisms/HighlightsCarousel/HighlightsCarousel.d.ts +0 -5
- package/dist/components/organisms/HighlightsCarousel/HighlightsCarousel.style.d.ts +0 -12
- package/dist/components/organisms/HighlightsCarousel/HighlightsCinema.d.ts +0 -4
- package/dist/components/organisms/HighlightsCarousel/HighlightsCore.d.ts +0 -4
- package/dist/components/organisms/HighlightsCarousel/HighlightsStream.d.ts +0 -4
- package/dist/components/organisms/HighlightsCarousel/index.d.ts +0 -5
- /package/dist/components/{atoms → molecules}/Basket/Basket.style.d.ts +0 -0
- /package/dist/components/{atoms → molecules}/Basket/index.d.ts +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AnchorHTMLAttributes, MouseEvent, MouseEventHandler } from 'react';
|
|
1
|
+
import React, { AnchorHTMLAttributes, MouseEvent, MouseEventHandler } from 'react';
|
|
2
2
|
import { DirectionType, IconNameType } from './iconTypes';
|
|
3
3
|
import { Colors, IOptionItem } from './types';
|
|
4
4
|
import { ReactNode } from 'react';
|
|
@@ -20,7 +20,7 @@ export interface IAccountProps {
|
|
|
20
20
|
*/
|
|
21
21
|
iconName?: IconNameType;
|
|
22
22
|
/**
|
|
23
|
-
* The
|
|
23
|
+
* The link of the title
|
|
24
24
|
*/
|
|
25
25
|
titleLink?: string;
|
|
26
26
|
/**
|
|
@@ -33,6 +33,10 @@ export interface IBasketProps {
|
|
|
33
33
|
* The value of the text
|
|
34
34
|
*/
|
|
35
35
|
text?: string;
|
|
36
|
+
/**
|
|
37
|
+
* The unix timestamp when basket items will be released.
|
|
38
|
+
*/
|
|
39
|
+
expiryTime?: number;
|
|
36
40
|
/**
|
|
37
41
|
* The value of the link
|
|
38
42
|
*/
|
|
@@ -42,9 +46,14 @@ export interface IBasketProps {
|
|
|
42
46
|
*/
|
|
43
47
|
selected?: boolean;
|
|
44
48
|
/**
|
|
45
|
-
* The number of items of the Basket
|
|
49
|
+
* The number of items of the Basket (eg. Tickets)
|
|
46
50
|
*/
|
|
47
51
|
numItems?: number;
|
|
52
|
+
/**
|
|
53
|
+
* The number of 'virtual' items of the Basket (eg. Stream subscription)
|
|
54
|
+
* These items remain in the basket after expiryTime is reached
|
|
55
|
+
*/
|
|
56
|
+
numVirtualItems?: number;
|
|
48
57
|
/**
|
|
49
58
|
* Function to be called when is clicked
|
|
50
59
|
*/
|
|
@@ -53,6 +62,10 @@ export interface IBasketProps {
|
|
|
53
62
|
* The primary color
|
|
54
63
|
*/
|
|
55
64
|
colorPrimary?: string;
|
|
65
|
+
/**
|
|
66
|
+
* For changing the color of the basket icon & text (when not in hover state)
|
|
67
|
+
*/
|
|
68
|
+
isActive?: boolean;
|
|
56
69
|
}
|
|
57
70
|
export interface ISearchProps {
|
|
58
71
|
/**
|
|
@@ -96,6 +109,10 @@ export interface INavTopProps {
|
|
|
96
109
|
* The text of Basket component
|
|
97
110
|
*/
|
|
98
111
|
basketText?: string;
|
|
112
|
+
/**
|
|
113
|
+
* The unix timestamp when basket items will be released.
|
|
114
|
+
*/
|
|
115
|
+
basketExpiryUnixTimestamp?: number;
|
|
99
116
|
/**
|
|
100
117
|
* The link of Basket component
|
|
101
118
|
*/
|
|
@@ -104,6 +121,15 @@ export interface INavTopProps {
|
|
|
104
121
|
* The number of items of Basket component
|
|
105
122
|
*/
|
|
106
123
|
basketNumItems?: number;
|
|
124
|
+
/**
|
|
125
|
+
* The number of 'virtual' items of the Basket (eg. Stream subscription)
|
|
126
|
+
* These items remain in the basket after expiryTime is reached
|
|
127
|
+
*/
|
|
128
|
+
basketNumVirtualItems?: number;
|
|
129
|
+
/**
|
|
130
|
+
* For changing the color of the basket icon & text (when not in hover state)
|
|
131
|
+
*/
|
|
132
|
+
basketIsActive?: boolean;
|
|
107
133
|
/**
|
|
108
134
|
* To know if search component is showed or not
|
|
109
135
|
*/
|
|
@@ -179,7 +205,7 @@ export interface ISearchBarProps {
|
|
|
179
205
|
/**
|
|
180
206
|
* Function to be called when is closed
|
|
181
207
|
*/
|
|
182
|
-
onClose
|
|
208
|
+
onClose?: (e?: React.MouseEvent) => void;
|
|
183
209
|
}
|
|
184
210
|
export declare type TitleCTALink = AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
185
211
|
/**
|
|
@@ -218,6 +244,16 @@ export declare type AnchorBarTab = AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
|
218
244
|
*/
|
|
219
245
|
color?: Colors;
|
|
220
246
|
};
|
|
247
|
+
export interface IAnchorBarAbsolutePositionParams {
|
|
248
|
+
/**
|
|
249
|
+
* Navigation height that we need to calculate AnchorTabBar position properly
|
|
250
|
+
*/
|
|
251
|
+
navigationHeight: number;
|
|
252
|
+
/**
|
|
253
|
+
* Height of the content that is located in place before AnchorTabBar
|
|
254
|
+
*/
|
|
255
|
+
topOffset: number;
|
|
256
|
+
}
|
|
221
257
|
export interface IAnchorBarProps {
|
|
222
258
|
/**
|
|
223
259
|
* Tabs displayed in the anchor bar
|
|
@@ -231,6 +267,14 @@ export interface IAnchorBarProps {
|
|
|
231
267
|
* Set the id of the tab actived
|
|
232
268
|
*/
|
|
233
269
|
activeTab?: string;
|
|
270
|
+
/**
|
|
271
|
+
* Only for IOS devices that do not fully support sticky position, in case a keyboard is opened on the device
|
|
272
|
+
*/
|
|
273
|
+
absolutePositionParams?: IAnchorBarAbsolutePositionParams;
|
|
274
|
+
/**
|
|
275
|
+
* Boolean to set bottom border
|
|
276
|
+
*/
|
|
277
|
+
bottomBorder?: boolean;
|
|
234
278
|
}
|
|
235
279
|
export interface ITitleCTAProps {
|
|
236
280
|
/**
|
|
@@ -261,6 +305,22 @@ export interface IAnchorTabsListProps {
|
|
|
261
305
|
* Boolean to determine that the list tab is overflowed
|
|
262
306
|
*/
|
|
263
307
|
tabsOverflow: boolean;
|
|
308
|
+
/**
|
|
309
|
+
* Boolean to determine if there are two arrows displayed
|
|
310
|
+
*/
|
|
311
|
+
hasTwoArrows: boolean;
|
|
312
|
+
}
|
|
313
|
+
export interface IAnchorTabBarBorderProps {
|
|
314
|
+
/**
|
|
315
|
+
* Boolean to set bottom border
|
|
316
|
+
*/
|
|
317
|
+
bottomBorder: boolean;
|
|
318
|
+
}
|
|
319
|
+
export interface IAnchorTabArrowsBoxProps {
|
|
320
|
+
/**
|
|
321
|
+
* Boolean to determine width of the arrows container
|
|
322
|
+
*/
|
|
323
|
+
fullWidth: boolean;
|
|
264
324
|
}
|
|
265
325
|
export interface ITabLinkProps extends AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
266
326
|
children: ReactNode;
|
|
@@ -307,4 +367,8 @@ export interface IStickyBarProps {
|
|
|
307
367
|
* Set columnSpam in Device
|
|
308
368
|
*/
|
|
309
369
|
columnSpanDevice?: number;
|
|
370
|
+
/**
|
|
371
|
+
* Hide bottom border line
|
|
372
|
+
*/
|
|
373
|
+
hideBottomBorder?: boolean;
|
|
310
374
|
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { Colors } from './types';
|
|
2
|
+
export interface IPasswordStrengthProps {
|
|
3
|
+
/**
|
|
4
|
+
* Number of sections to show
|
|
5
|
+
*
|
|
6
|
+
* Default: 6
|
|
7
|
+
*/
|
|
8
|
+
sections?: number;
|
|
9
|
+
/**
|
|
10
|
+
* Number of active sections
|
|
11
|
+
*
|
|
12
|
+
* Default: 0
|
|
13
|
+
*/
|
|
14
|
+
activeSections?: number;
|
|
15
|
+
/**
|
|
16
|
+
* Color of non-active sections
|
|
17
|
+
*
|
|
18
|
+
* Default: Colors.MidGrey
|
|
19
|
+
*/
|
|
20
|
+
sectionsColor?: Colors;
|
|
21
|
+
/**
|
|
22
|
+
* Color of active sections
|
|
23
|
+
*
|
|
24
|
+
* Default: Colors.Black
|
|
25
|
+
*/
|
|
26
|
+
activeSectionsColor?: Colors;
|
|
27
|
+
/**
|
|
28
|
+
* Text
|
|
29
|
+
*
|
|
30
|
+
* Default: ""
|
|
31
|
+
*/
|
|
32
|
+
text?: string;
|
|
33
|
+
/**
|
|
34
|
+
* Text color
|
|
35
|
+
*
|
|
36
|
+
* Default: Colors.Black
|
|
37
|
+
*/
|
|
38
|
+
textColor?: Colors;
|
|
39
|
+
/**
|
|
40
|
+
* Strength label text
|
|
41
|
+
*
|
|
42
|
+
* Default: ""
|
|
43
|
+
*/
|
|
44
|
+
strengthLabel?: string;
|
|
45
|
+
/**
|
|
46
|
+
* Strength label text
|
|
47
|
+
*
|
|
48
|
+
* Default: Colors.Black
|
|
49
|
+
*/
|
|
50
|
+
strengthLabelColor?: Colors;
|
|
51
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { Colors } from './types';
|
|
2
|
+
export interface IProgressSteps {
|
|
3
|
+
/**
|
|
4
|
+
* Number of the steps
|
|
5
|
+
*/
|
|
6
|
+
quantity: number;
|
|
7
|
+
/**
|
|
8
|
+
* Current step
|
|
9
|
+
*/
|
|
10
|
+
current: number;
|
|
11
|
+
}
|
|
12
|
+
export interface IProgressProps {
|
|
13
|
+
/**
|
|
14
|
+
* The progress percentage
|
|
15
|
+
*/
|
|
16
|
+
progress?: number;
|
|
17
|
+
/**
|
|
18
|
+
* The progress bar height
|
|
19
|
+
*/
|
|
20
|
+
height?: number;
|
|
21
|
+
/**
|
|
22
|
+
* Color of the elapsed line
|
|
23
|
+
*/
|
|
24
|
+
elapsedLineColor?: Colors;
|
|
25
|
+
/**
|
|
26
|
+
* Color of the pending line
|
|
27
|
+
*/
|
|
28
|
+
pendingLineColor?: Colors;
|
|
29
|
+
/**
|
|
30
|
+
* Number of the steps
|
|
31
|
+
*/
|
|
32
|
+
steps?: IProgressSteps;
|
|
33
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
import { EditorialLink, PromoLinks } from './editorial';
|
|
3
|
+
import { IntegratedTimerProps } from './timer';
|
|
4
|
+
import { Image } from './types';
|
|
5
|
+
export interface IPromoWithTagsProps {
|
|
6
|
+
/**
|
|
7
|
+
* Text placed in the editorial component
|
|
8
|
+
*/
|
|
9
|
+
text?: string;
|
|
10
|
+
/**
|
|
11
|
+
* Title placed in the editorial component
|
|
12
|
+
*/
|
|
13
|
+
title: string;
|
|
14
|
+
/**
|
|
15
|
+
* Title size
|
|
16
|
+
*/
|
|
17
|
+
titleSize?: 'small' | 'large';
|
|
18
|
+
/**
|
|
19
|
+
* Subtitle placed in the editorial component
|
|
20
|
+
*/
|
|
21
|
+
subtitle?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Position of the image in the editorial component
|
|
24
|
+
*/
|
|
25
|
+
imagePosition?: 'left' | 'right';
|
|
26
|
+
/**
|
|
27
|
+
* Image to be displayed in the editorial component with aspect ratio 4:3
|
|
28
|
+
*/
|
|
29
|
+
image?: Image;
|
|
30
|
+
/**
|
|
31
|
+
* Component to be displayed instead of the image after clicking on the button
|
|
32
|
+
*/
|
|
33
|
+
children?: ReactElement<HTMLElement>;
|
|
34
|
+
/**
|
|
35
|
+
* Array of buttons props. First one should have PrimaryButton attributes, second one Tertiary button attributes
|
|
36
|
+
*/
|
|
37
|
+
links?: PromoLinks;
|
|
38
|
+
/**
|
|
39
|
+
* Array of buttons props that will be displayed above the main buttons
|
|
40
|
+
*/
|
|
41
|
+
textLinks?: EditorialLink[];
|
|
42
|
+
/**
|
|
43
|
+
/**
|
|
44
|
+
* Array of tags in the editorial component
|
|
45
|
+
*/
|
|
46
|
+
aboveTitleTags?: string[];
|
|
47
|
+
/**
|
|
48
|
+
* Array of tags in the editorial component
|
|
49
|
+
*/
|
|
50
|
+
belowTitleTags?: string[];
|
|
51
|
+
/**
|
|
52
|
+
* Text in the middle
|
|
53
|
+
*/
|
|
54
|
+
middleText?: string;
|
|
55
|
+
/**
|
|
56
|
+
* Text in the bottom
|
|
57
|
+
*/
|
|
58
|
+
bottomText?: string;
|
|
59
|
+
/**
|
|
60
|
+
* Display with reduced height & font size for use as card
|
|
61
|
+
*/
|
|
62
|
+
asCard?: boolean;
|
|
63
|
+
/**
|
|
64
|
+
* Make CTA appear disabled
|
|
65
|
+
*/
|
|
66
|
+
disableCTA?: boolean;
|
|
67
|
+
/**
|
|
68
|
+
* Copy to show on disabled CTA
|
|
69
|
+
*/
|
|
70
|
+
disabledCTACopy?: string;
|
|
71
|
+
/**
|
|
72
|
+
* Params for Timer component
|
|
73
|
+
*/
|
|
74
|
+
timerParams?: IntegratedTimerProps;
|
|
75
|
+
}
|
|
76
|
+
export interface IPromoWithTagsStyledProps {
|
|
77
|
+
/**
|
|
78
|
+
* Sets margin for the tags container
|
|
79
|
+
*/
|
|
80
|
+
marginBottom?: number;
|
|
81
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { Colors } from './types';
|
|
3
|
+
export interface ContentProps {
|
|
4
|
+
content: string | ReactNode;
|
|
5
|
+
}
|
|
6
|
+
export interface CellProps {
|
|
7
|
+
cell: ReactNode;
|
|
8
|
+
cellIndex: number;
|
|
9
|
+
columns: number;
|
|
10
|
+
lineColor: Colors;
|
|
11
|
+
}
|
|
12
|
+
export interface RowProps {
|
|
13
|
+
row: any[];
|
|
14
|
+
rowIndex: number;
|
|
15
|
+
columns: number;
|
|
16
|
+
lineColor: Colors;
|
|
17
|
+
}
|
|
18
|
+
export interface ITableProps {
|
|
19
|
+
/**
|
|
20
|
+
* Number of columns in table
|
|
21
|
+
*/
|
|
22
|
+
columns: number;
|
|
23
|
+
/**
|
|
24
|
+
* Headings array
|
|
25
|
+
*/
|
|
26
|
+
headings?: string[];
|
|
27
|
+
/**
|
|
28
|
+
* Table content
|
|
29
|
+
*/
|
|
30
|
+
children: ReactNode;
|
|
31
|
+
/**
|
|
32
|
+
* Line divider color
|
|
33
|
+
*/
|
|
34
|
+
lineColors?: Colors;
|
|
35
|
+
/**
|
|
36
|
+
* Rows in table per page for pagination
|
|
37
|
+
*/
|
|
38
|
+
rowsPerPage: number;
|
|
39
|
+
/**
|
|
40
|
+
* Pagination
|
|
41
|
+
*/
|
|
42
|
+
pagination?: boolean;
|
|
43
|
+
/**
|
|
44
|
+
* Description - for Accessibility, aria-describedby prop
|
|
45
|
+
*/
|
|
46
|
+
description?: string;
|
|
47
|
+
}
|
package/dist/types/tickbox.d.ts
CHANGED
|
@@ -15,6 +15,12 @@ export interface ITickboxProps {
|
|
|
15
15
|
* Mode to determine colors of text and checkmark
|
|
16
16
|
*/
|
|
17
17
|
mode?: TickboxMode;
|
|
18
|
+
/**
|
|
19
|
+
* Use a white background and black checkmark for the tickbox,
|
|
20
|
+
* regardless of mode?
|
|
21
|
+
* PREFERRED in new components, but not default
|
|
22
|
+
*/
|
|
23
|
+
whiteBox?: boolean;
|
|
18
24
|
/**
|
|
19
25
|
* Callback called when tickbox change
|
|
20
26
|
*/
|
|
@@ -23,22 +29,51 @@ export interface ITickboxProps {
|
|
|
23
29
|
* Data label for tickbox
|
|
24
30
|
*/
|
|
25
31
|
dataLabel?: string;
|
|
32
|
+
/**
|
|
33
|
+
* Element is disabled
|
|
34
|
+
*/
|
|
35
|
+
disabled?: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Error message, default is undefined. To show the tickbox
|
|
38
|
+
* in an error state without any text, pass in an empty string.
|
|
39
|
+
*/
|
|
40
|
+
error?: string;
|
|
26
41
|
}
|
|
27
42
|
export interface TickboxLabelProps {
|
|
28
43
|
/**
|
|
29
44
|
* Dark mode or not
|
|
30
45
|
*/
|
|
31
46
|
dark: boolean;
|
|
47
|
+
/**
|
|
48
|
+
* Element is disabled
|
|
49
|
+
*/
|
|
50
|
+
disabled?: boolean;
|
|
32
51
|
}
|
|
33
52
|
export interface TickboxInputProps {
|
|
34
53
|
/**
|
|
35
54
|
* Dark mode or not
|
|
36
55
|
*/
|
|
37
56
|
dark: boolean;
|
|
57
|
+
/**
|
|
58
|
+
* Use a white background for the tickbox (regardless of mode)
|
|
59
|
+
*/
|
|
60
|
+
whiteBox?: boolean;
|
|
61
|
+
/**
|
|
62
|
+
* Element is disabled
|
|
63
|
+
*/
|
|
64
|
+
disabled?: boolean;
|
|
38
65
|
}
|
|
39
66
|
export interface TickboxCheckmarkProps {
|
|
40
67
|
/**
|
|
41
68
|
* Dark mode or not
|
|
42
69
|
*/
|
|
43
70
|
dark: boolean;
|
|
71
|
+
/**
|
|
72
|
+
* Element is disabled
|
|
73
|
+
*/
|
|
74
|
+
disabled?: boolean;
|
|
75
|
+
/**
|
|
76
|
+
* Display the border of the tickbox in errorstate style
|
|
77
|
+
*/
|
|
78
|
+
error?: boolean;
|
|
44
79
|
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { Colors } from './types';
|
|
2
|
+
export interface IntegratedTimerProps {
|
|
3
|
+
/**
|
|
4
|
+
* End date
|
|
5
|
+
*/
|
|
6
|
+
endDate: string;
|
|
7
|
+
/**
|
|
8
|
+
* Text that appears once end date is reached
|
|
9
|
+
*/
|
|
10
|
+
endDateText?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Title that is diplayed when timer is active
|
|
13
|
+
*/
|
|
14
|
+
title?: string;
|
|
15
|
+
}
|
|
16
|
+
export interface ITimerProps {
|
|
17
|
+
/**
|
|
18
|
+
* Timer title
|
|
19
|
+
*/
|
|
20
|
+
title?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Timer bottom border
|
|
23
|
+
*/
|
|
24
|
+
bottomLine?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* End date
|
|
27
|
+
*/
|
|
28
|
+
endDate: string;
|
|
29
|
+
/**
|
|
30
|
+
* Timer color theme
|
|
31
|
+
*/
|
|
32
|
+
color?: Colors;
|
|
33
|
+
/**
|
|
34
|
+
* Function to fire once end date is reached
|
|
35
|
+
*/
|
|
36
|
+
endDateHandler?: VoidFunction;
|
|
37
|
+
}
|